Session 7 — Workshop

Build a Knowledge Agent

45:00
45:00 30:00 15:00 0:00
Load Documents & Build Search
15 min · 45:00 – 30:01
  • Load company docs
  • Process into chunks
  • Build search_documents tool
Wire Agent Loop & Test
15 min · 30:00 – 15:01
  • Connect search tool to agent
  • Ask company questions
  • Compare RAG vs no-RAG
Edge Cases & Failures
15 min · 15:00 – 0:00
  • Test contradicting docs
  • Test outdated data
  • Make agent say "I don't know"
Open in Google Colab
  • API key not working? Runtime > Restart and re-run the API key cell
  • Import errors? Run all cells from the top in order
  • Agent not using tools? Check your tool definition matches the expected format
  • Wrong answers? Check your search function returns relevant chunks
  • Still stuck? Ask your neighbor, then raise your hand