Retrieval-augmented generation
Build answers you can explain.
Give your app a few trusted documents. Can a classmate find the passage that supports its answer and spot the question the sources leave open?
Canvas and the original assignment set the requirements. Choose the examples you need from this optional guide.
- Teaching a class? Try the ten-minute source check with three fictional harbor reports.
- Designing a retrieval system? Explore the research design for tracing claims when sources disagree.

Model costs
Choose a model. Understand the cost.
Compare Groq, Gemini and other providers. Use the size of one question and one answer to estimate the cost of running your demo.
THE BASIC RAG LOOP
From source to answer.
- 01Ask a question
- 02Retrieve a passage
- 03Write an answer
- 04Check the source
YOUR STUDENT PROJECT
Find your next step.
Choose the step that matches what you have on your screen.
Research
Read a source your reader could use. Find what it answers and compare ways to retrieve that evidence.
Investigate a question 02Plan
Use what you found to choose a retrieval method and predict which passage it should return.
Sketch your first test 03Build
Connect your sources, retrieval and answer. Get one small path working first.
Build a working slice 04Test
Try questions your sources can answer, and one they cannot. Check the citations.
Check what really works 05Explain
Show your app, trace an answer to its source and explain the choices you made.
Prepare your walkthroughInstructor’s research notebook
Future research vision
My research asks how to keep citations, disagreements, and review decisions intact as a collection grows. Follow the proposed Rust workspace from a source document to a reviewed answer. The research application is not live.
Explore the research system
A contract lab is a small executable check of how two parts should work together. Use one to explore a design decision in the larger research proposal.
Find the code, fixtures and tests for the examples in the public project. View the repository