Takeaways

By the end of this module, you will be able to:
  • Create and configure tools that the AI model can call
  • Implement a tool to add resources to your knowledge base
  • Build a tool to retrieve relevant information from your knowledge base
  • Configure multi-step tool calls for better user experience
  • Test the complete RAG functionality end-to-end

Module structure

Prerequisites

Before starting this module, ensure you have:
  • Chat interface and API routes set up
  • Database schema and actions configured

What you’ll build

Resource Addition Tool

A tool that allows the AI to automatically add user-provided information to your knowledge base.

Information Retrieval Tool

A tool that searches your knowledge base for relevant content to answer user questions.