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
5.1 Adding Resources Tool
Create a tool to add and embed resources to your knowledge base.
5.2 Multi-Step Tool Calls
Configure multi-step tool calls for better user experience and confirmation.
5.3 Retrieving Information Tool
Implement a tool to search and retrieve relevant information from your
knowledge base.
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.