AI Hints
Home›LangChain Tutorial›Project Review and Good Habits
LangChain · Lesson 106 of 120

Project: Review

What we built.

⏱ 2 min read▶ Video at 2:01:06🎓 Free
Watch this lesson in the LangChain courseWatch on YouTube ↗Full LangChain course

Let's step back, and look at what we built. A support bot, in five small files, using almost every idea in this course.

Project: Review
From the video: Project: Review
  • Step back
  • Five small files
  • Almost every idea

The files

Here are the files, from the bottom up. KB dot p y, the knowledge base. Tools dot p y, for stock and orders. Agent dot p y, with rules and memory. Guarded dot p y, with safety layers. And test bot dot p y, which proves it works.

  1. test_bot.py: proves it works
  2. guarded.py: safety layers
  3. agent.py: rules + memory
  4. tools.py: stock, orders
  5. kb.py: knowledge base

Ideas we used

Along the way, we used RAG with a saved vector store. Tools with clear docstrings. An agent with a system prompt. A checkpointer for memory. Middleware for PII, and limits. And an LLM judge for testing.

keyvalue
RAGsaved vector store
Toolsclear docstrings
Agentrules + memory
MiddlewarePII, limits
TestsLLM judge

Summary

The support bot brings together RAG, tools, an agent, memory, guardrails, and tests. Next, choosing the right model for each job.

Key takeaways
  • Five files
  • Most of the course
  • Tested
Next up: Choosing Models — big, small, fast