MediumRAG
Walk through a RAG pipeline, end to end
It has seven stages. I ingest PDFs, tables and scans as clean text with metadata, because a parsing mistake spoils every step after it, then chunk with some overlap and index a vector per chunk, tagged with date and document type. Retrieval finds the top matches, often mixing vector and keyword search, and a re-ranker keeps the best few. The model answers from them with citations or admits the documents don’t cover it, and I score a fixed question set after every change.
Say your answer out loud first. Then check ours.