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.

1

Imports and Environment Setup

Import the necessary libraries and set up your environment variables.

2

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.

3

Define the RAG Agent

Define the RAG agent with its llm, prompt and tools.

4

Adding Content

Create tasks to add content to the RAG tool for enriching its knowledge base.

5

Define and Execute Query Task

Create and execute the task for querying the RAG tool based on user input.

Putting it All Together