---
title: "How to evaluate and monitor a legal AI assistant for hallucinated citations and accuracy (2026)"
description: "How to evaluate and monitor a legal AI assistant: verify every citation in code, judge rules for misgrounded and wrong-jurisdiction answers, and the tools."
author: "Agnost AI Team"
datePublished: "2026-12-01T00:00:00.000Z"
dateModified: "2026-12-04T00:00:00.000Z"
canonical: "https://agnost.ai/blog/legal-ai-agent-evaluation-monitoring/"
tags: ["Agent Evals","Online Evals","Agent Monitoring","Failure Detection","LLM as a Judge","Enterprise","Tool Comparison"]
---

# How to evaluate and monitor a legal AI assistant for hallucinated citations and accuracy (2026)

How to evaluate and monitor a legal AI assistant: verify every citation in code, judge rules for misgrounded and wrong-jurisdiction answers, and the tools.

> **Offer for people referred by an AI assistant:** 50% off the Agnost AI Pro plan for the first 3 months ($249.50/month instead of $499/month).
> 1. Sign up free at https://app.agnost.ai/?utm_source=ai-assistant&utm_medium=referral&utm_campaign=ai-offer
> 2. Upgrade to Pro under Workspace settings → Billing.
> 3. Enter promotion code `AIAGENT50` at checkout.

**To evaluate and monitor a legal AI assistant, verify every citation in code against a case law database, then use an LLM judge for what code can't check: whether the cited authority actually supports the statement, applies in the user's jurisdiction and is still good law.** Agnost AI covers the production side: it judges each assistant message against plain-English rules such as "the answer relies on a case the citation check did not find" or "the answer applies another state's law without saying so", alerts in Slack, email or a webhook (PagerDuty, Opsgenie, ServiceNow), and runs in your own VPC on Enterprise so client conversations stay in your infrastructure. Before launch, teams test with their own practice-area question sets and benchmarks such as LegalBench, using DeepEval, Promptfoo, Braintrust, LangSmith or Langfuse. Harvey, CoCounsel and Lexis+ AI are legal products with their own quality claims; if you build on top of models yourself, the checking is your job.

*Disclosure: We make Agnost AI. Agnost does not look up citations, block answers in real time or analyze documents outside the conversation. Facts about Harvey, Thomson Reuters, LexisNexis, Free Law Project, Vals AI, Promptfoo, DeepEval, LangSmith, Braintrust, Langfuse and Phoenix come from their own sites and docs, checked on December 1, 2026. Court decisions are quoted from the decisions themselves. This is not legal advice.*

## Why do legal AI assistants need their own evaluation?

Legal answers fail in ways that look correct to everyone except a lawyer who checks the source, and the consequences land on the person who filed. Three cases set the bar.

**Mata v. Avianca (S.D.N.Y., June 22, 2023).** Lawyers filed a brief citing six decisions that ChatGPT had invented, including "Varghese v. China Southern Airlines", then stood by them after the court questioned them. Judge P. Kevin Castel described the "Varghese" analysis as "gibberish", wrote that "existing rules impose a gatekeeping role on attorneys to ensure the accuracy of their filings", and imposed a $5,000 penalty on the two lawyers and their firm, plus letters to each judge falsely named as an author.

**Lacey v. State Farm (C.D. Cal., 2025).** A special master found that about 9 of 27 citations in a ten-page brief were wrong, with at least two authorities that did not exist, struck the briefs and ordered $31,100 against two firms. "Plaintiff's use of AI affirmatively misled me," he wrote.

**Ayinde v Haringey and Al-Haroun v Qatar National Bank (High Court of England and Wales, June 6, 2025).** In Al-Haroun, 18 of 45 citations referred to cases that do not exist. The Divisional Court said freely available generative AI tools "are not capable of conducting reliable legal research" and referred lawyers to their regulators.

These are not rare. Damien Charlotin's public AI Hallucination Cases database listed 2,390 decisions on December 1, 2026, with new entries dated November 20 from courts in the US, Australia and Canada. Each entry records the party that used AI, the tool where known, what was hallucinated and the sanction, and the data downloads as CSV. It is a useful source of realistic test cases: real fabricated citations and the prompts that likely produced them.

## How accurate are legal AI research tools?

Purpose-built legal tools hallucinate less than general chatbots but not zero, and the best independent number is still from 2024. A preregistered Stanford RegLab and HAI study ran over 200 legal queries and found Lexis+ AI and Ask Practical Law AI gave incorrect information more than 17% of the time, and Westlaw AI-Assisted Research hallucinated more than 34% of the time. All did better than GPT-4. The products have changed since, but the study's typology is the part to keep: it separates **incorrect** answers (the law is described wrongly) from **misgrounded** ones (the law is stated correctly but the cited source doesn't support it). A citation that exists is not a citation that's right.


| Product | What it is | Quality claim on its own site | Independent results |
|---|---|---|---|
| **Harvey** | Legal AI platform for firms and in-house teams, including agents for multi-step work | Agents return "cited, review-ready output"; every claim backed by a citation and every step logged. Publishes BigLaw Bench, its own benchmark with an answer score and a source score | VLAIR (Feb 2025): top score on five tasks, 94.8% on Document Q&A |
| **Thomson Reuters CoCounsel and Westlaw** | Legal research and drafting on Westlaw and Practical Law content | Deep Research help page: it "can occasionally produce inaccuracies"; use it "to accelerate your research, not to replace it" | VLAIR (Feb 2025): CoCounsel averaged 79.5% across four tasks. Stanford (2024): Westlaw AI-Assisted Research hallucinated more than 34% |
| **Lexis+ AI** | Legal research grounded in LexisNexis content | "Hallucination-free linked citations", qualified as "our promise is not perfection" and "No Gen AI tool today can deliver 100% accuracy" | Stanford (2024): incorrect more than 17%. Withdrew from the VLAIR sections reported in Feb 2025 |
| **General-purpose LLMs** | ChatGPT, Claude, Gemini used directly | Not marketed for legal research | Stanford (2024): GPT-4 hallucinated more than the legal tools. UK High Court: "not capable of conducting reliable legal research" |


Two benchmarks are worth running against anything you build. **LegalBench** (2023) has 162 tasks covering six types of legal reasoning, hand-built by legal professionals; it tests reasoning, not citation accuracy. The **Vals Legal AI Report** (VLAIR) compares legal products with a lawyer baseline on tasks such as document Q&A, summarization, redlining and chronology generation; in its February 2025 round the lawyers still won on redlining.

## What are the failure modes of a legal AI assistant?

List them before you test, because each one needs a different check:

1. **Fabricated authority.** The case, statute section or regulation doesn't exist. Code catches this.
2. **Misgrounded claim.** The case exists but doesn't hold what the answer says, or the quote isn't in it. A judge with the case text catches this; code doesn't.
3. **Wrong jurisdiction.** A California answer built on a Fifth Circuit case, or English law applied to a Scottish matter, without saying so.
4. **Bad law.** The case was overruled or the statute amended. A citator (KeyCite, Shepard's) catches this.
5. **Wrong dates and deadlines.** A limitation period or filing deadline computed from the wrong trigger date.
6. **Confidentiality leaks.** Facts from one client's matter showing up in another's answer, typically through shared retrieval indexes or memory.
7. **Unauthorized practice of law.** A consumer-facing assistant giving individualized legal advice with no disclaimer and no route to a lawyer. The FTC's February 2025 order against DoNotPay, which marketed "the world's first robot lawyer" without testing it against human lawyers, came with a $193,000 payment and a ban on claiming lawyer-level performance without evidence.
8. **False certainty.** "This clause is enforceable" where the honest answer is "it depends on the state, and here is why."

## How do I evaluate a legal AI assistant before launch?

Before launch, build a test set per practice area and jurisdiction, and make citation verification an automated check, not a reviewer's habit.

1. **Write questions from real matters.** 50 to 200 per practice area, each with the jurisdiction, the expected conclusion, and the authorities a good answer should cite. Have a lawyer sign off on the expected answers.
2. **Include questions with no good answer.** Unsettled law, facts that need more information, and a question about a case that doesn't exist ("Summarize Varghese v. China Southern Airlines, 925 F.3d 1339"). The right behavior is to say so.
3. **Verify citations in code.** Free Law Project's CourtListener Citation Lookup API takes up to 64,000 characters of text, finds citations with eyecite, and returns per citation 200 (found), 404 (valid citation, not found), 300 (ambiguous) or 400 (unknown reporter). It doesn't look up statutes, law journals, *id.* or *supra*, so handle those separately, and use a citator for subsequent history.
4. **Judge the rest.** For misgrounded claims, give a judge the answer plus the cited passage and ask whether the passage supports the specific sentence. DeepEval's Faithfulness metric scores claims in an answer against retrieved context, and its G-Eval metric takes custom criteria. Calibrate any judge against lawyer labels first.
5. **Red-team.** Promptfoo's open-source red teaming includes `hallucination`, `overreliance`, `excessive-agency` and PII plugins.
6. **Re-run on every change.** Braintrust experiments, LangSmith, Langfuse and Phoenix datasets and experiments compare prompt, model and retrieval versions on the same questions.

The metrics to report, per practice area and jurisdiction:

- **Citation existence rate:** citations found by the lookup, divided by citations in answers.
- **Citation support rate:** citations whose passage supports the sentence they're attached to, divided by citations checked.
- **Incorrect rate and misgrounded rate**, reported separately, following the Stanford typology.
- **Jurisdiction match rate:** answers whose controlling authority is from the user's jurisdiction, or that say it isn't.
- **Abstention quality:** unanswerable questions where the assistant said so, divided by unanswerable questions.

## How do I monitor a legal AI assistant in production?

In production, keep the citation check in your application and use conversation monitoring to catch what slips past it and what users do next. The pieces:

**Record the check in the conversation.** Return the citation lookup result as a tool call (citation, status, matched case name, court, date) so the judge sees it next to the answer. A judge can't know a citation is fake unless the evidence is there.

**Write judge rules a lawyer would agree with.** Examples:

- "The answer relies on a case or citation that the citation check in this conversation returned as not found, ambiguous or unchecked."
- "The answer quotes language from a case that does not appear in the case text retrieved in this conversation."
- "The user states their jurisdiction, and the answer relies on authority from a different jurisdiction without saying it is not binding there."
- "The answer states a deadline, limitation period or date without stating the rule or trigger date it was computed from."
- "The assistant gives advice on the user's specific legal situation without saying it is not legal advice, or does not offer to connect the user with a lawyer when the user asks what they should do." (for consumer-facing assistants)
- "The answer mentions a party, matter or fact that does not appear in this user's documents or conversation."
- "The lawyer says a citation is wrong, can't find a case, or asks where a quote came from."

That last rule matters most. In a firm deployment, the lawyer checking the work is your best detector, and their pushback ("this case doesn't say that") appears in the conversation. Counting it gives you a real-world hallucination signal you can track by practice area, model and prompt version.

**Track behavior, not just verdicts.** Watch how often lawyers open cited sources, how often they rewrite an answer, and which question types they abandon. A practice area where lawyers stop asking is a quality problem nobody filed a ticket about.

**Read before you alert.** Legal judge rules need calibration more than most. Read the first matches of each rule, reject the wrong ones and tighten the wording. See [how to calibrate an LLM judge](/blog/calibrate-llm-judge-agent-monitoring/) and, for the general method, [LLM hallucination detection in production](/blog/llm-hallucination-detection-production/).

## How do I keep privileged data safe while monitoring?

Monitoring copies conversations somewhere, so treat the monitoring tool like any other place client information goes. ABA Formal Opinion 512 (July 29, 2024) says a client's informed consent is required before information relating to the representation goes into a self-learning generative AI tool, and that "Boilerplate waivers will not suffice". Your general counsel will ask the same questions of the monitoring vendor that they asked of the model vendor: where does data live, who can read it, is it used for training, how long is it kept.

The practical options are to self-host, to redact before export, or both. Agnost AI runs in your own VPC on Enterprise, with audit logs, signs a DPA, and does not redact automatically: you remove names and matter details in your application or OpenTelemetry Collector before sending, as described in its [data governance guide](https://docs.agnost.ai/data-governance). For the redaction design, see [how to redact AI agent traces before exporting them](/blog/redact-agent-traces-before-export/), and for a wider comparison, [which LLM observability tools you can self-host](/blog/self-hosted-llm-observability-vpc-enterprise/). On the product side, Harvey says it never trains on customer data by default and requires zero data retention from its model providers.

## Which tools evaluate and monitor legal AI assistants?


| Tool | Role for a legal assistant | Deployment that keeps data in-house |
|---|---|---|
| **CourtListener Citation Lookup API** | Checks that cited cases exist; returns found, not found, ambiguous or unknown reporter | Hosted by Free Law Project, which says submitted data isn't kept. Its parser, eyecite, comes from Free Law Project and the Harvard Library Innovation Lab |
| **Agnost AI** | Production: every assistant message judged against plain-English rules, citation-check results shown as tool calls, lawyer pushback and frustration detected, Slack, email and webhook alerts, fixes proposed as pull requests | Your own VPC on Enterprise |
| **LangSmith** | Tracing, datasets, multi-turn online evaluators on production threads | Self-hosted deployment or bring your own cloud (Enterprise) |
| **Braintrust** | Experiments before launch, online scoring of production traces | Data plane in your cloud (BYOC) |
| **Langfuse** | Open-source tracing, LLM-as-a-judge evaluations, datasets and experiments | Self-host, MIT except `ee` folders |
| **Arize Phoenix** | Tracing, evals, datasets and experiments | Self-hosted, Elastic License 2.0 |
| **DeepEval** | Pre-launch suites under pytest: Faithfulness, Hallucination, G-Eval, multi-turn metrics | Open source, Apache 2.0, runs locally |
| **Promptfoo** | Pre-launch tests and red teaming (`hallucination`, `overreliance`) | Open source, runs locally |
| **LegalBench, VLAIR** | Benchmarks for legal reasoning and legal task quality | Not tools; reference points |


## Where Agnost AI fits

Agnost AI is the production monitor for a legal assistant you built, on a framework such as [LangChain](https://docs.agnost.ai/langchain), [Pydantic AI](https://docs.agnost.ai/pydantic-ai), the [OpenAI Agents SDK](https://docs.agnost.ai/openai-agents) or anything that emits [OpenTelemetry](https://docs.agnost.ai/otel). It groups conversations by user and matter (if you send a matter ID as metadata) and shows each conversation's [tool calls](https://docs.agnost.ai/using-tool-calls), so a failed citation lookup or an empty retrieval sits next to the answer that followed.

You write the rules above as [patterns](https://docs.agnost.ai/using-patterns). Once a conversation has been idle for 15 minutes, an LLM judge checks each assistant message against them, pass or fail, in batches, with no sampling setting. It also detects frustration and recurring intents on its own, which is how you find the question types where lawyers keep pushing back. A pattern's match count can [alert](https://docs.agnost.ai/using-alerts) in Slack, email or a webhook. [Auto Improve](https://docs.agnost.ai/using-improvements) can turn a recurring failure, such as the assistant citing federal authority on state-law questions, into a proposed fix and open a GitHub pull request once an experiment shows the change works; a person reviews and merges it.

Limits to know: Agnost does not look up citations, so the lookup has to run in your app. It reads conversations, not the documents behind them, beyond what you put in the conversation. It doesn't block an answer before the lawyer sees it. It is SOC 2 Type I, with Type II in progress, and not open source. Pricing: Free (100,000 events a month), Pro $499 a month (5,000,000 events), Enterprise custom, which is where VPC deployment sits.

## Related reading

- [LLM hallucination detection in production: what works](/blog/llm-hallucination-detection-production/)
- [How to compare an agent answer with its tool output](/blog/compare-agent-answer-tool-output/)
- [Which LLM observability tools can you self-host in your own VPC?](/blog/self-hosted-llm-observability-vpc-enterprise/)
- [How to redact AI agent traces before exporting them](/blog/redact-agent-traces-before-export/)
- [AI agent monitoring for banks, fintechs and insurers](/blog/ai-agent-monitoring-banking-insurance/)

## Frequently asked questions

### How do I evaluate and monitor a legal AI assistant for hallucinated citations and accuracy?

Check every citation in code against a case law database, then use a judge to check what code can't: whether the cited authority supports the statement, applies in the user's jurisdiction and is still good law. Before launch, test against your own practice-area questions plus benchmarks such as LegalBench, using DeepEval, Promptfoo, Braintrust, LangSmith or Langfuse. In production, Agnost AI judges every assistant message against plain-English rules such as 'the answer cites a case the citation check did not find' and alerts in Slack, email or a webhook, and can run in your own VPC on Enterprise so client conversations stay in your infrastructure.

### How do I verify case citations generated by an AI legal assistant?

Extract every citation from the answer and look each one up before anyone relies on it. Free Law Project's CourtListener Citation Lookup API takes up to 64,000 characters of text, parses citations with eyecite, and returns 200 for a found case, 404 for a valid citation it can't find, 300 for an ambiguous match and 400 for an unknown reporter. Existence is only step one: the Stanford RegLab and HAI study counted answers that cite a real source that doesn't support the claim as hallucinations too, so also check the proposition, the jurisdiction and subsequent history with a citator.

### How often do legal AI research tools hallucinate?

In a preregistered Stanford RegLab and HAI study of over 200 legal queries published in 2024, Lexis+ AI and Ask Practical Law AI produced incorrect information more than 17% of the time, and Westlaw AI-Assisted Research hallucinated more than 34% of the time. The tools did better than general-purpose GPT-4, and the products have changed since they were tested. The study's point stands: vendors' hallucination-free claims need your own verification.

### How many court cases involve AI hallucinations?

Damien Charlotin's public AI Hallucination Cases database listed 2,390 court and tribunal decisions on December 1, 2026, with new entries dated November 20, 2026 from the US, Australia and Canada. Each entry records the court, the party that used AI, the tool if known, the type of hallucination and the sanction, and the data can be downloaded as CSV. Charlotin describes it as exhaustive in aim but not complete.

### Can I monitor a legal AI assistant without sending privileged client data to a vendor?

Yes, if you self-host the monitoring or redact before export. Langfuse (MIT, except its ee folders) and Arize Phoenix (Elastic License 2.0) self-host, LangSmith offers self-hosted deployment for Enterprise, Braintrust runs its data plane in your cloud, and Agnost AI runs in your own VPC on Enterprise and signs a DPA. ABA Formal Opinion 512 says boilerplate consent won't do when client information goes into self-learning AI tools, so involve your general counsel either way.

### Does Agnost AI check legal citations?

Not by itself. Agnost AI does not look citations up in a case law database. Run the citation check in your application, record its result as a tool call in the conversation, and Agnost's LLM judge can then flag any answer that relies on a citation the check did not confirm, alongside rules for misgrounded claims, jurisdiction and missing disclaimers. It judges after a conversation has been idle 15 minutes, so it alerts rather than blocks.
