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

In your Python script, 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 role, goal, backstory, and tools.

4

Define Tasks for 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.

6

Create Crew and Execute Process

Define the crew with the agent and tasks, then execute the process.

Putting it All Together