Comprehensive evaluation · preliminary · public data only
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).
| Dimension | Result | Notes |
|---|---|---|
| Retrieval — governing statute in top-3 | 92% | large benchmark, n=250 |
| Retrieval — right policy doc in top-3 | 74–96% | range across strict vs. lenient scoring (see §2) |
| Benchmark size | 500 | machine-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 queries | 3 / 3 | declines rather than fabricate |
| Search / answer latency (median) | 1.1 s / 13 s | search is interactive |
| Results with full provenance | 100% | 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.
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.
| Collection | Contents | Documents | Passages |
|---|---|---|---|
| Statutes & regulations | NC General Statutes Ch. 7B (Juvenile Code) + NC Admin Code 10A NCAC 70 | 28 | ~7,450 |
| Agency policy | NCDHHS 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.
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.
| Corpus | Benchmark | n | R@1 | R@3 | R@5 | MRR |
|---|---|---|---|---|---|---|
| Statutes | hand-curated | 42 | 73% | 90% | 92% | 0.83 |
| Statutes | machine, n=250 | 250 | 85% | 92% | 94% | 0.89 |
| Policy | hand-curated (lenient) | 28 | 82% | 96% | 96% | 0.87 |
| Policy | machine, n=250 (strict) | 250 | 52% | 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.
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.
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.
| Configuration | Recall@1 | Recall@3 | Recall@5 |
|---|---|---|---|
| Hybrid only (keyword + meaning, fused) | 54% | 76% | 78% |
| + rank-blend rerank | 54% | 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%).
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) | Before | After |
|---|---|---|
| Chunks ending mid-sentence (no terminal punctuation) | 23% | 7% |
| Chunks cut mid-word | present | 0% |
Readability was verified independently of retrieval accuracy — the two are separate quality axes and both were checked.
We tested Anthropic's Contextual Retrieval — prepending an LLM-written context blurb to each passage before indexing. Measured A/B:
| Corpus | Baseline R@3 | Contextual R@3 | Verdict |
|---|---|---|---|
| Statutes | 90% | 92% (R@5 92→97) | adopted for statutes |
| Policy | 89% | 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.
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).
| Metric | Result (n=40) |
|---|---|
Produces a grounded answer with [n] citations | 90% |
| Declines when it should (in-scope but unsupported) | 5% |
| Every claim traceable to the cited sources (automated judge) | ~52% |
[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.A tool that answers questions it shouldn't is worse than one that declines. We probed with out-of-scope questions:
| Operation | Median | Max observed |
|---|---|---|
| Search (results only) | 1.1 s | 1.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.
Each conventional method has real strengths this tool does not.
| Approach | Strengths | Limitations for this task |
|---|---|---|
| Manual PDF search | Free; 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 / Lexis | Far 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 chatbot | Fast; plain language. | May fabricate; typically no citation to the controlling text; can be outdated. |
| This tool | Semantic 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. |
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.