Big Circle · Client platform · Team of 10
Document intelligence platform
Research over large document collections, where every figure in an answer resolves to one table cell.
- Role
- Top contributor on backend and AI, team of 10
- Area
- RAG and evaluation
- Stack
- Python, TypeScript, Next.js, PostgreSQL, pgvector, BullMQ
The short version
A multi tenant platform for research over large document collections, built for an enterprise client by a team of 10. I own the retrieval, agent and evaluation layers: how documents are parsed, how answers are found, and how we know they are right.
The problem
Analysts ask questions across hundreds of reports, many answered by a number inside a table. A confident answer that cannot be checked is worse than none.
What I did
I own retrieval, agents and evaluation: hybrid search, Docling ingestion that keeps tables searchable, a LangGraph research agent, and RAGAS and DeepEval gates in CI.
What it protects now
Every figure in an answer resolves to one table cell, and a change that hurts quality fails the build.
How it is built
- Hybrid retrieval: BM25 and pgvector fused with Reciprocal Rank Fusion, then a cross encoder rerank with a safe fallback
- Docling and TableFormer ingestion that keeps tables and charts searchable, with page and bounding box provenance
- A LangGraph research agent with a six stage retrieval subgraph; an on demand findings store cut its context 10 to 20×
- Claim extraction and fact checking with five verdict states, resolved to word level highlights in the PDF
- RAGAS and DeepEval quality gates in CI on faithfulness, citation accuracy and numeric grounding
- Every model call routed through LiteLLM and traced in Langfuse; deployed to Azure AKS with KEDA autoscaling
- Python
- TypeScript
- Next.js
- PostgreSQL
- pgvector
- BullMQ
- Redis
- Docling
- LangGraph
- LiteLLM
- Langfuse
- RAGAS
- Azure
- Kubernetes
- Auth0
Metadata filtering, measured
Before ranking, retrieval narrows the candidate pool to the documents whose metadata matches the question: its date, type, section and the entities it mentions. Searching the right slice instead of the whole corpus is the single change that moved the eval scores most.
- Scored on a golden dataset of real questions
- RAGAS, DeepEval and custom citation metrics
- The same gates run in CI on every change