Problem
A legal AI assistant answers complex questions and cites sources, and only lawyers or tax experts can tell whether an answer is correct. Expert time is scarce, reviews arrive in batches, and each jurisdiction needs different expertise. A change that improves one practice area can quietly hurt another.
Example from the article: a tax attorney asks about the cross-border effects of a new multinational tax ruling, and the team must check that the answer is accurate, helpful and properly sourced.
Solution in brief
Harvey combines three layers. Experts build golden retrieval sets and review answers blind, in pairs or on a Likert scale. Automated model-based graders with expert rubrics run nightly and on production data. A separate service stores and versions the evaluation data.
Questions this case answers
- How to evaluate generative outputs that only scarce domain experts can judge, while still getting fast feedback on every code change
- How to keep evaluation datasets versioned, access-controlled and comparable across experiments when they contain confidential material
- How to evaluate an LLM research assistant when only domain experts can judge answer quality?
- How to measure retrieval quality of a search or agentic retrieval system against expert-curated golden queries?
Tools and methods
- Golden retrieval sets — expert-written queries with expert-marked relevant documents, scored with precision, recall and NDCG
- Side-by-side A/B preference tests — blind pairwise comparison of two answers by experts
- Likert-scale ratings — independent 1 to 7 scores for accuracy, helpfulness and clarity
- Model-based graders — LLM judge with a rubric that returns a grade and a confidence score
- Citation matching pipeline — metadata extraction, candidate retrieval, embedding search and an LLM match check
- Evaluation data service — isolated, versioned store with row-level access control
Google or a one-time email code. No password.