Capstone: build a production-grade RAG system
Put every module together into one system over your own data, with evals and operations from day one.
Build a question-answering system over a real corpus you care about, such as your notes, a documentation site or a set of papers. The goal is not a demo that answers three questions well, but a system you can defend with numbers.
Work in milestones. One: ingest with metadata, hashes and incremental updates. Two: chunk and embed, with the model name stored and a rebuild script. Three: hybrid retrieval with fusion and a reranker. Four: assembly and grounded generation with claim-level citations and a refusal path. Five: a golden set of at least 60 questions with retrieval and generation metrics. Six: permissions, logging, a latency budget and a cost per answer figure.
Finish with a short write-up: your architecture, your eval table before and after each change, what you tried that did not help, and the failures that remain. That write-up is the deliverable that shows you can build RAG, not just call an API.
Key points
- Define the corpus and a golden set before tuning anything.
- Change one stage at a time and record the metric movement.
- Ship with citations, refusal, permissions and logging, not as an afterthought.
- Document what failed as carefully as what worked.
Answer these out loud
- 1Write the acceptance criteria for your capstone as measurable thresholds for recall, faithfulness, p95 latency and cost per answer.
- 2List three failures you expect to remain at the end and why you accept them.
Build it
Deliver a repository with the full pipeline, a reproducible eval run, a README with your results table, and a deployed endpoint you can query with citations.
Use this from an agent
Any MCP client, including Grok, can read this lesson. See how to connect.
curl https://engineeros-delta.vercel.app/api/v1/topics/rag-capstone-build