Case study · AI · Legal
In progressdepo-poc
Deposition transcripts in, a 30-line summary out. Every line cited to page and line, checked by a second model, approved by a reviewer before export.
The hosted build is underway. The live demo, a recorded walkthrough and the results below go up when it ships.
The engagement
A litigation team gets a 300-page deposition and needs to know what it says, what the other side will do with it, and where the witness contradicted the record. By hand that takes a paralegal most of a day, and nothing is trusted without a page and line to check it against.
I scoped and built it the way I’d run it for a client, drawing on nine years of payroll, tax and data work at companies including Johnson & Johnson, JPMorgan Chase and Bristol Myers Squibb.
What I built
Give it the depositions from a case and get back the main points, what each side said about each, and where they conflict. Every row is an issue, a quote from each side with its page and line, and a status: Conflict (the sides disagree), Confirmed (they agree), Gap (one side only) or Admission (conceded against their own side).
| # | Issue | Defense says | Plaintiff says | Status |
|---|---|---|---|---|
| 1 | Youth marketing surveys | “We have not marketed to minors since the 1950s” Merlo 112:4 |
“Brand share among 12–17-year-olds tracked quarterly” Samet 58:19 |
Conflict |
| 2 | Magazine readership rule | “We skip titles with 15% or more under-21 readers” Merlo 140:2 |
— | Gap |
| 3 | Addiction | “Smoking is not addictive” Merlo 203:11 |
“Nicotine meets every criterion” Samet 77:3 |
Conflict |
Illustrative. Quotes and cites are placeholders until the first real run; the format is the real one. Each cite opens the transcript at that line.
Before a reviewer sees anything, a second model reads every statement against its cited lines and marks it supported, partial or unsupported. Unsupported statements are flagged, never dropped. Nothing exports to Word or PDF until every point is approved.
Ask the record (in progress): a chat panel per case. Ask in plain language and get answers with the same page:line citations, from that case’s transcripts only.
How it works
- Import — transcripts from the UCSF archive; metadata fills each witness’s side and role.
- Extract — one block per Q/A turn, so a cite can only land on real testimony.
- Merge and check — group by issue, set status, and a second model checks each line.
- Review — approve, edit or reject; every step goes in the audit log, and export only unlocks when everything is approved.
Stack: Python · FastAPI · Postgres + pgvector · Claude API · Docker Compose · Caddy · Cloudflare Tunnel + Access · DeepEval · GitHub Actions
Proof it works
Results publish here when the hosted build ships, including how much time a reviewer saves against summarizing by hand. The test set is 50 hand-labeled points across three transcripts, plus transcripts with planted contradictions. Evals run on every commit and fail the build when a metric drops.
| Metric | What it measures | First run | Current |
|---|---|---|---|
| Citation support | Cited testimony supports the statement | at launch | at launch |
| Hallucination rate | Statements marked unsupported | at launch | at launch |
| Conflict detection | Labeled disagreements caught (P / R) | at launch | at launch |
| Time saved | Review minutes per 100 pages vs. manual | at launch | at launch |
Bad numbers stay on this page with an explanation; the explanation is usually the interesting part.
Guardrails
Every step is logged: which model ran, what it was given, what it returned, what the check said and who approved what. Instructions hidden in a transcript are treated as text, and that is tested. The design is mapped to ABA Formal Opinion 512 and Florida Bar Advisory Opinion 24-1.
What’s next
- Ask the record ships as the last build phase.
- The air-gapped version. Porting the citation guarantees to a build that runs entirely on local models inside one network, for firms that can’t send transcripts out.
- Reviewer edits become test cases, so the eval set grows from use.
Transcripts are public court records from the UCSF Industry Documents Library. Names in the demo are pseudonymized.
Want the full walkthrough?
I'll do a live run on a case you pick and walk through the decisions behind it.