Parse
Layout-aware extraction preserves headings, tables, and source lineage.
24 sourcesA retrieval system by Devi Prasad that makes every engineering decision visible—from ingestion and hybrid search to reranking, grounded citations, evaluation, and full-stack observability.
The public demo runs a deterministic hybrid retriever—no API key, no fake loading, no hidden score.
The system prevents unsupported answers with three gates: every claim must trace to retrieved context, at least two passages must agree, and low-confidence requests are refused below a 0.62 rerank threshold . Retrieved text is also treated as untrusted data, so embedded instructions cannot override the generation policy . Quality is continuously checked with faithfulness and abstention metrics in CI .
Every stage exposes an artifact you can inspect, benchmark, and replace through typed provider boundaries.
Layout-aware extraction preserves headings, tables, and source lineage.
24 sources420-token targets, 64-token overlap, content hashes, and deduplication.
162 chunksTwo candidate lists are balanced with reciprocal-rank fusion.
top 20Coverage, semantic fit, title affinity, and freshness reduce context noise.
top 4Citation validation and a confidence gate keep unsupported claims out.
0.62 gate08:42:01 discovered 24 source documents
08:42:04 parsed pdf=8 markdown=11 notion=5
08:42:08 removed 7 duplicate content blocks
08:42:12 produced 162 structure-aware chunks
08:42:19 indexed 68,124 tokens · 0 failures
08:42:19 ✓ index is query-ready
A fixed golden set, retrieval diagnostics, and ablation runs turn “it seems better” into a decision you can defend.
| Configuration | Faith. | Ctx. precision | MRR | Observation |
|---|---|---|---|---|
| BM25 only | 0.84 | 0.68 | 0.72 | Misses paraphrases |
| + semantic retrieval | 0.89 | 0.77 | 0.86 | Recall improves |
| + fusion & reranking | 0.96 | 0.88 | 0.95 | Current baseline |
+11 points of context precision for ~9ms p95 overhead.
Heading-aware chunks beat fixed windows on procedural questions.
Threshold 0.62 balanced answer coverage with unsupported-claim risk.
I build production-minded AI systems where retrieval quality, observability, and product experience are treated as one engineering problem. This project is an open, inspectable example of that approach.