AI Hints
Home›RAG Tutorial›Project: Plan, Ingestion and Retrieval
RAG · Lesson 106 of 120

Project: The Plan

Northwind help desk.

⏱ 2 min read▶ Video at 1:44:02🎓 Free
Watch this lesson in the RAG courseWatch on YouTube ↗Full RAG course

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.

Project: The Plan
From the video: Project: The Plan
  • 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.

  1. Ingest
  2. Retrieve
  3. Answer
  4. Chat
  5. API
The architecture
From the video: The architecture

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.

FileJobBuilt from
ingest.pydocs to chunksloading, headers
retrieve.pybest 3 chunkshybrid, rerank
answer.pygrounded replystructured output
chat.pyfollow-upscondensing
api.pyweb endpointFastAPI

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