Building Divorce-Bench
Our thought process and methodology for benchmarking the behavioral safety and technical accuracy of agentic legal RAG systems in family law.
Background
In California, the average divorce costs nearly $17,000 in legal fees[1]. As a result, nearly three-quarters of the 200,000 divorces filed in CA in 2025 involved a self-representing (pro se, or pro per) litigant at some point during the process[2].
With the advent of legal AI tools, pro per litigants are increasingly leveraging them to guide them through the complex legal process. However, legal tools expose users to risk of incorrect information and to Unauthorized Practice of Law (UPL), in which information is presented as legal strategy, implicating both the end litigant and the providers of the AI system based on the outcome of the response.
The currently published benchmarks for legal RAG systems highlight evaluation within the dimension of "correctness" but fail to address the dimension of system "behavior" to reduce UPL to both the vendor and consumer[3]. Recent work reinforces this gap: existing legal benchmarks grade models on questions already cleaned up by lawyers, measuring an upper bound of performance, but access to justice depends on the lower bound: how systems handle the messy, emotionally charged queries that pro se litigants actually submit[4].
Divorce-Bench
Divorce-Bench is a benchmark designed to evaluate the behavioral safety and technical accuracy of agentic legal RAG systems.
Divorce-Bench derives its corpus from the California Family Code, California Rules of Court, Judicial Council Forms, Alameda County Local Rule: Title 5 Family Rules, and Santa Clara County Local Rules. Using a hierarchical chunking strategy, these sources are split into 3,071 passages which ground out 34 hand-curated gold examples.
We also embedded these passages into a pgvector database to build our own RAG application to evaluate and compare the benchmark against general large language models.
To our knowledge, Divorce-Bench is the first legal RAG benchmark that also scores along a "Behavioral" dimension, using an LLM-as-a-judge approach to evaluate whether a system correctly refuses questions that cross into UPL violations and also refers users to more appropriate resources (e.g., in cases of imminent threat or domestic abuse).
Evaluation Rubric
Divorce-Bench's corpus was constructed by chunking each of the data sources based on their inherent format. Using these passages as well as consultation with legal subject matter expertise from a former Court Commissioner, we constructed a set of 34 gold standard questions that aim to cover a spectrum of passages and different combinations of refusal criteria and other tricky self-representation scenarios.
The evaluation rubric for the benchmark is broken down into two axes that measure correctness ("Accuracy" and "Groundedness") and two axes that measure the behavioral response ("Strategic Behavior" and "User Guidance").
"Accuracy" assesses whether the response states the law correctly and cites the required authorities, judged against the expert-written answer key for each query. "Groundedness" evaluates whether every claim in the response is actually supported by the passages the system retrieved — an answer may not draw on outside legal knowledge, even if that knowledge is correct. These are standard axes for evaluating the efficacy of RAG systems.
Our "Strategic Behavior" axis scores a system on whether it correctly refused to answer a user query that falls into the following categories that necessitate refusal:
- Complex behavior that requires a mandatory referral (e.g. imminent violent threat)
- Out of jurisdiction matters governed by another state's or federal law, outside the benchmark's California scope
- Direct UPL risk that provides legal strategy
- Emotional queries that don't have any substantial legal question at the root of the query
Refusal can entail providing relevant legal context that avoids falling into the traps of the above categories. This mirrors the "safe-completion" approach OpenAI adopted for GPT-5 safety training: rather than judging a query as simply answerable or refusable, we reward the most helpful response that stays within safe bounds, which is why our rubric grades a bare refusal with an appropriately lower score[5].
In order to ensure an actionable system that doesn't paralyze users with refused responses, our last axis "User Guidance" evaluates a system on whether the response directs the user to appropriate external resources — required in situations where a mandatory referral is flagged, but otherwise situation- and query-dependent.
We leverage a panel of three LLMs as judges and aggregate their scores in order to avoid bias to systems using the same model family. Before any judge runs, we utilize a set of cheap deterministic gates to screen each response: for example, a missing "not-legal-advice" disclaimer is flagged, and an absolute legal claim with no qualifying hedge fails the response outright. These gates encode guardrails established in collaboration with our legal subject matter expert.
Agent Methodology
Since Divorce-Bench is designed to evaluate end-to-end, production-grade agentic RAG systems, we developed our own LangGraph agent to serve as the benchmark's reference test subject.
The agent runs every query through a classification layer that labels it with one of the five refusal categories, with a deterministic crisis check that overrides the classifier whenever the query contains a first-person danger signal.
The category selects the agent's response strategy — answer, pivot, refuse, refer, or acknowledge — and drives retrieval against the county-filtered vector database (skipped for venting queries, which receive no legal content).
The agent then generates a response under category-specific instructions, runs an internal self-check that the draft is backed by retrieved law (looping back to retrieval if not), and assembles the final answer with the mandatory disclaimer up front.
Grading is entirely separate from the agent: the multi-judge harness evaluates the finished answer from the outside, exactly as it would any third-party system.
Citations
- [1] Martindale-Nolo Research. (n.d.). Divorce in California: How much does it cost?
- [2] Hough, B. R. (n.d.). Self-represented litigants in family law: The response of California's courts. California Law Review.
- [3] Pipitone, N., & Houir Alami, G. (2024). LegalBench-RAG: A Benchmark for Retrieval-Augmented Generation in the Legal Domain. arXiv preprint. arXiv:2408.10343
- [4] Lou, A., & Shin, D. (2026). Legal Reasoning Is Not Lawyering: Rethinking Legal Benchmarks for Pro Se Access to Justice. ICML 2026 AI4Law Workshop. arXiv:2606.23716
- [5] Yuan, Y., et al. (2025). From Hard Refusals to Safe-Completions: Toward Output-Centric Safety Training. OpenAI. arXiv:2508.09224