CASE 05
8 weeks
RAG Knowledge Base for a Legal Firm
Associates find precedent in minutes, not hours, with every answer cited.
- Python
- FastAPI
- Anthropic
- pgvector
- Postgres
THE PROBLEM
Associates spent hours grepping through thousands of briefs, memos, and contracts to answer partner questions. Results were inconsistent and hard to audit.
WHAT WE DID
- 01
Built an ingestion pipeline with careful chunking so citations always resolve to exact paragraphs.
- 02
Chose Anthropic for long-context synthesis with aggressive groundedness prompts — no confident answers without a cite.
- 03
Added a reviewer UI where partners can flag bad answers; flags feed a weekly retrieval-tuning loop.
- 04
Locked the whole thing behind SSO with full audit logs for compliance.
OUTCOME
Research tasks that took half a day now take under ten minutes. Partners report higher confidence because every answer links to the underlying passage.