Independent build · 2026
LexIntel
Legal research with an answer trust layer: a citation that does not resolve to a source is removed.
- Role
- Solo build, 2026
- Area
- RAG for legal research
- Stack
- Python, FastAPI, Celery, Qdrant, PostgreSQL, Redis
The short version
An independent build for lawyers, on a different stack from my day job to prove the patterns rather than the vendor: Qdrant, Celery and FastAPI, with four workflows shipped end to end from schema to React UI.
The problem
Lawyers cannot use an answer they cannot cite. Generated citations that point nowhere are a liability.
What I did
I built the answer trust layer: every citation is resolved to its source chunk or removed, and each answer carries a four factor confidence breakdown.
What it protects now
Four workflows end to end: contract risk review, grounded drafting, an audit trail and precedent search.
How it is built
- A format aware citation parser that maps every citation to its source chunk by line range overlap, and strips the ones that do not resolve
- A four factor confidence score shown to the lawyer as a per factor breakdown
- Per matter Qdrant collections with deterministic point IDs, so reprocessing is idempotent
- Redis pub/sub to SSE progress streaming that survives a page refresh, with Redis result and LRU embedding caching
- Four workflows: contract risk review, grounded drafting, an immutable audit trail and precedent search
- CourtListener case law added as retrieval chunks held out of reranking, so external authority is never evicted
- Python
- FastAPI
- Celery
- Qdrant
- PostgreSQL
- Redis
- Next.js
- Docker
The interface
Built end to end, desktop and mobile
Four lawyer facing workflows, from the database schema through the API to the React UI I designed and shipped.


