P42Parallel42· NC Law & Policy Search ← Back to search

Comprehensive evaluation · preliminary · public data only

How the tool was evaluated, and what it actually does

A detailed, measured account of the system's retrieval accuracy, answer quality, robustness, and speed — including where it is weak, and how it compares with how this research is done today. Every number below is measured on the live system, across a hand-curated benchmark and a 500-question machine-generated one. This is a preliminary evaluation; figures are indicative and will change as the benchmarks are expert-reviewed. Nothing here is a marketing claim — the most important finding is a limitation (§6).

Scope & disclaimer. Covers only public North Carolina child-welfare law and policy. A research aid, not legal advice; not a substitute for a licensed attorney or a full legal-research service. Every result links to the official source, which remains controlling.
0 · Headline results 1 · System & corpus 2 · Retrieval accuracy 3 · Component ablation 4 · Chunking quality 5 · Contextual-retrieval experiment 6 · Grounded-answer quality 7 · Robustness & refusal 8 · Latency 9 · Provenance & integrity 10 · Vs. business as usual 11 · Limitations & threats to validity 12 · Methods & reproducibility

0 · Headline results

DimensionResultNotes
Retrieval — governing statute in top-392%large benchmark, n=250
Retrieval — right policy doc in top-374–96%range across strict vs. lenient scoring (see §2)
Benchmark size500machine-generated questions (up from 70)
Grounded-answer rate (answers that cite sources)90%declines the rest
Answer faithfulness (automated audit)weakest link — verify answers against the source (§6)
Refusal on clearly off-topic queries3 / 3declines rather than fabricate
Search / answer latency (median)1.1 s / 13 ssearch is interactive
Results with full provenance100%source · section · page · hash

The headline: finding the right authority is strong and reliable; the generated answer is a convenience that must be checked against the cited source.

1 · System & corpus

Given a plain-English question, the tool retrieves the governing NC authority (each result cited to source, section, and page) and can write a short answer assembled only from those passages, with inline [n] citations, declining when the passages don't support one.

CollectionContentsDocumentsPassages
Statutes & regulationsNC General Statutes Ch. 7B (Juvenile Code) + NC Admin Code 10A NCAC 7028~7,450
Agency policyNCDHHS child-welfare policy manuals, protocols, forms, guidance (~4,150 pp)502~10,850

The statute set is curated (Chapter 7B core + supporting sections), not the entire NC General Statutes. Federal law and case law are out of scope.

2 · Retrieval accuracy

Retrieval was measured two ways: a small hand-curated set (70 questions) and a large machine-generated set (500 questions — a language model wrote realistic practitioner questions from sampled passages, with the source passage as the known-correct label). Recall@k = how often the governing authority is in the top-k results.

CorpusBenchmarknR@1R@3R@5MRR
Statuteshand-curated4273%90%92%0.83
Statutesmachine, n=25025085%92%94%0.89
Policyhand-curated (lenient)2882%96%96%0.87
Policymachine, n=250 (strict)25052%74%82%0.65

Statutes are strong and stable — ~90–92% top-3 on both the small and large benchmarks. Policy shows a wide range (74–96%) that is mostly a scoring artifact, not a retrieval failure: the strict machine benchmark only credits retrieving the exact same document, but NCDHHS has many overlapping documents. On manual inspection of the strict "misses," about half were sibling documents that legitimately answer the question (e.g. the SDM Intake policy instead of the CPS Intake policy; the in-home case-plan form instead of the permanency case-plan form) or auto-generated questions too vague to have one right answer. The lenient score (which credits any correct document) is the fairer estimate; the truth sits between the two.

Failure analysis

When the exact authority is not first, the results ranked above it are almost always closely-related provisions — for statutes, an adjacent section (the answer vs. the failure-to-answer section); for policy, a sibling document on the same topic. Fine distinctions, not random errors. Practical implication: scan the top few results, not just the first.

3 · Component ablation — what each stage contributes

Retrieval is a pipeline: keyword + meaning search, fused, then re-ranked. Turning the stages on one at a time (statute benchmark) shows where the accuracy comes from — the re-ranking step is the single largest contributor.

ConfigurationRecall@1Recall@3Recall@5
Hybrid only (keyword + meaning, fused)54%76%78%
+ rank-blend rerank54%80%90%
+ full re-rank (shipped)73%90%90%

The shipped configuration was chosen by measurement, not assumption: a full re-rank beat a rank-blend on this stack (statutes +10 pts R@3; policy 92%→96%).

4 · Chunking quality

Legal text was originally split at a fixed character length, which cut long statutory subsections mid-word. A boundary-aware re-chunker (splitting on section markers, enumerators, and sentence boundaries) fixed this:

Measure (statute corpus)BeforeAfter
Chunks ending mid-sentence (no terminal punctuation)23%7%
Chunks cut mid-wordpresent0%

Readability was verified independently of retrieval accuracy — the two are separate quality axes and both were checked.

5 · Contextual-retrieval experiment (an honest negative result)

We tested Anthropic's Contextual Retrieval — prepending an LLM-written context blurb to each passage before indexing. Measured A/B:

CorpusBaseline R@3Contextual R@3Verdict
Statutes90%92% (R@5 92→97)adopted for statutes
Policy89%85% (R@1 75→60)rejected — kept baseline

It helped the structured statutes but hurt the form-heavy policy corpus (the blurbs homogenized similar administrative chunks). Rather than apply a technique because it is fashionable, it was adopted only where it measurably helped. This is included to show the evaluation catches regressions, not just wins.

6 · Grounded-answer quality — the weakest link

The optional written answer was audited on 40 questions. Two things were measured: whether it produces a grounded, cited answer, and — harder — whether every claim in that answer is actually supported by the cited sources (judged by a separate language model, then spot-checked by hand).

MetricResult (n=40)
Produces a grounded answer with [n] citations90%
Declines when it should (in-scope but unsupported)5%
Every claim traceable to the cited sources (automated judge)~52%
This is the most important limitation in this report. An automated faithfulness audit could fully verify only about half of the grounded answers. Hand-inspection of the failures shows a mix of: (a) genuine over-reach — a claim attributed to a source that doesn't quite say it; (b) citation-number mismatches — the right facts, but the [n] points to the wrong passage; and (c) judge strictness — the auditor saw fewer passages than the answer generator did, so some correct claims were marked unverifiable. Even discounting (c), the answer feature over-reaches often enough that it should be treated as a draft to verify, not a citation of record. Retrieval — finding the right law — is the strong, dependable part; the generated summary is a convenience, and the citations exist precisely so a reader can confirm it in seconds. Median answer latency: 13 s.

7 · Robustness & refusal

A tool that answers questions it shouldn't is worse than one that declines. We probed with out-of-scope questions:

Takeaway. Treat every answer as a starting point that must be verified against the cited source, especially for anything touching federal law or topics adjacent to NC child welfare. The citations make that verification fast — which is the point.

8 · Latency

OperationMedianMax observed
Search (results only)1.1 s1.8 s
Grounded answer (search + generation)13 s~60 s

Search is interactive. Grounded answers are generation-bound and stream token-by-token so results appear while the answer is still being written.

9 · Provenance & integrity

10 · Compared with business as usual

Each conventional method has real strengths this tool does not.

ApproachStrengthsLimitations for this task
Manual PDF searchFree; exact; reads the controlling text directly. Slow across 238-page statutes + ~4,150 pp of policy; keyword-only (misses synonyms); no cross-document search.
Westlaw / LexisFar broader — all case law and statutes, annotations, citators, editorial analysis. The authoritative research tool. Subscription; and NCDHHS policy manuals are generally not indexed there, so the policy side is largely unaddressed.
General AI chatbotFast; plain language. May fabricate; typically no citation to the controlling text; can be outdated.
This toolSemantic search over both statutes and agency policy; every result cited + integrity-hashed; grounded answers that decline when unsupported; public. Narrow corpus; retrieval imperfect (§2); can over-answer adjacent-domain questions (§7); not legal advice.
Where it is most useful. The clearest gap it fills is agency policy — the NCDHHS manuals commercial databases don't index and that are painful to search by hand. For statutes it's a fast first-pass finder that always points back to the official text; it does not replace authoritative legal research.

11 · Limitations & threats to validity

12 · Methods & reproducibility

Two benchmarks were used: a small hand-curated set (70 questions, human-verified labels) and a large machine-generated set (500 questions — a language model wrote practitioner-style questions from sampled passages, the source passage serving as the label). Retrieval is scored by whether the correct authority appears in the top-k results of the live pipeline (hybrid keyword + meaning, re-ranked); statutes are matched at the section level, policy at the document level. Answer faithfulness was audited by having a separate language model judge whether each claim in a grounded answer follows from its cited sources, with a hand spot-check of the failures. Refusal and latency come from direct calls to the live service. All harnesses and question sets are versioned and re-runnable; figures reflect the system on the date below and will change as the corpus and test sets evolve.