Study interactive :: Progress tools open in the Study Hub reader.

All lessons in this module

Previous lesson. Project 3: Time Series Forecasting (Advanced) · Next lesson. Project 5: Object Detection

Project 4: LLM Chatbot & RAG System

Build a document Q&A chatbot with retrieval-augmented generation (RAG), citations, and a small evaluation set. A seq2seq-only dialog model without retrieval is a different exercise. Keep that as an optional baseline, not the main deliverable.

Difficulty

Advanced

Time Estimate

2-3 weeks

Skills You'll Practice

Learning Objectives

Dataset

Public docs (Python, FastAPI, scikit-learn docs, OWASP notes) or this curriculum’s own markdown. Optional dialog baseline only: Cornell Movie Dialog.

Project Steps

  1. Choose a GDPR-safe corpus (public docs or this repo’s markdown). No private company dumps.
  2. Chunk documents and store embeddings in FAISS, Chroma, or similar.
  3. Wire query → retrieve top-k → prompt with context → LLM answer + citations.
  4. Create 30–80 eval questions answerable from the corpus (include multi-chunk and “should refuse” cases).
  5. Score primary RAG quality: retrieval hit-rate, faithfulness / groundedness, citation coverage. Treat BLEU/ROUGE as optional secondary checks only.
  6. Add basic guardrails (answer only from context, refuse when evidence is missing).
  7. Demo locally or on staging (FastAPI, Streamlit, or Hugging Face Spaces). Log latency and token cost for a short sample of queries.

Acceptance checklist

Resources

All lessons in this module

Previous lesson. Project 3: Time Series Forecasting (Advanced) · Next lesson. Project 5: Object Detection