RAG · Lesson 106 of 120
Project: The Plan
Northwind help desk.
Let's build the whole thing. A help desk assistant for Northwind Bikes. It reads the help centre and the Volt Pro manual, handles follow ups, cites its sources, and runs as a web API.

- Help centre + manual
- Follow-ups and sources
- A web API
The architecture
Ingestion loads the pages and the PDF, and makes chunks with headers. Retrieval runs hybrid search, then reranks. Answering writes a grounded reply with sources. Chat handles follow ups. And the API serves it all.
- Ingest
- Retrieve
- Answer
- Chat
- API

The files
We'll write one small file for each part. Each builds on the one before, and we'll test each as we go. Then we'll evaluate the whole system with our test set.
| File | Job | Built from |
|---|---|---|
| ingest.py | docs to chunks | loading, headers |
| retrieve.py | best 3 chunks | hybrid, rerank |
| answer.py | grounded reply | structured output |
| chat.py | follow-ups | condensing |
| api.py | web endpoint | FastAPI |
Summary
The help desk has five parts, ingestion, retrieval, answering, chat, and the API. Next, ingestion.
Key takeaways- Five files
- Each builds on the last
- Test as we go
Next up: Project: Ingestion — files to index