A RAG assistant you can prove works

What you'll build

Answer questions over a real document set (the docs of a tool you use), with citations, a golden set and measured quality, latency and cost.

Why it matters: Almost every AI interview asks you to design a RAG system. Having built one and measured it lets you answer with your own numbers and failures instead of a diagram from a blog.

Milestones

0/6
  1. Write a golden set

    Done when: At least 30 real questions, each with the passage that answers it, versioned next to the code. Include a few that the documents can't answer.

  2. Measure retrieval and improve it

    Done when: A table of recall@5 on your golden set for dense, BM25, hybrid and hybrid + reranking. You can say which one you kept and why.

  3. Grounded answers with citations

    Done when: Every answer cites the chunks it used and says it doesn't know when the context doesn't cover the question. Checked by deterministic graders plus an LLM judge you spot-checked by hand.

  4. Production basics

    Done when: Streaming responses; every request logs tokens, latency and cost; you report p50/p95 latency and the cost of answering the whole golden set once.

  5. Attack it

    Done when: You planted instructions inside a document and showed what happens; you added at least one mitigation and kept the test in your suite.

What you hand in 2
  • A repository with a README: architecture diagram, how to run it, the eval table and the cost and latency numbers.
  • A list of the failures you found and what you changed because of them.
How to tell it in an interview

Tell it as a measurement story: the baseline numbers, the failure that surprised you, the change you made, and the number that moved. Interviewers remember the trade-off you chose with evidence, not the stack.

If you want to go further 3
  • Permission-aware retrieval: two users who may see different documents.
  • Contextual retrieval or query rewriting, measured against your baseline.
  • Prompt caching for the shared prefix, with the latency and cost before and after.