RAG Tool Agent
This project involves setting up and running a system of agents to add content to a RAG (Retrieval-Augmented Generation) tool, perform queries, and return relevant information. We use Composio to setup this Local Tool and OpenAI GPT-4o to power the agents. Follow this guide to set up and run the project.
RAG Agent GitHub Repository
Explore the complete source code for the RAG Agent project. This repository contains all the necessary files and scripts to set up and run the RAG system using CrewAI and Composio.
Imports and Environment Setup
Import the necessary libraries and set up your environment variables.
Initialize Language Model and Define Tools
Initialize the language model with OpenAI API key and model name, and set up the necessary tools for the agents.
Define the RAG Agent
Define the RAG agent with its llm, prompt and tools.
Adding Content
Create tasks to add content to the RAG tool for enriching its knowledge base.
Define and Execute Query Task
Create and execute the task for querying the RAG tool based on user input.
Putting it All Together
Was this page helpful?