AI Systems · 2026
Large-Scale RAG Pipeline Construction
Hybrid retrieval pipeline over a heterogeneous document corpus with reranking, citation enforcement and an evaluation set that catches regressions.
Context
Naive vector search over mixed-format documents returned plausible but wrong passages. The requirement was grounded answers with citations and measurable quality.
Method
Ingestion normalises formats, strips boilerplate and preserves structural headings. Chunking is structure-aware rather than fixed-width, with overlap tuned on a sample set.
Retrieval combines dense vectors with BM25 and fuses rankings, then reranks with a cross-encoder. Answers must cite retrieved chunk identifiers; uncited claims are flagged.
An evaluation set of question/answer pairs measures recall@k, MRR and citation accuracy on every pipeline change.
Outcome
Citation accuracy and top-k relevance both improved markedly against the naive baseline, and the evaluation harness makes regressions visible before deployment.
Notes
Corpus-specific tuning means the numbers are not portable; the harness is.