Use Case 4: Course Notes Search — Your Own Knowledge Base
"What week did we cover data drift?" — the LLM doesn't know your course.
Fix: a search_notes(query) tool backed by a dict of CS 203 topics.
topics = {
"data drift": "Week 10: KS test, PSI, distribution shift",
"profiling": "Week 11: cProfile, timeit, bottlenecks",
"quantization": "Week 11: INT8, ONNX, model compression",
"docker": "Week 10: containerization, Dockerfiles",
"agents": "Week 12: tool calling, Gemma 4, agent loop",
...
}
This is a tiny RAG system: retrieval (search the dict) + generation
(model writes a natural-language answer from the result).