An open API service indexing awesome lists of open source software.

https://github.com/greathayat/langgraph-corrective-rag

A repository to learn & explore the CRAG - A better version of RAG.
https://github.com/greathayat/langgraph-corrective-rag

agentic-ai agentic-rag ai langgraph langgraph-python

Last synced: about 2 months ago
JSON representation

A repository to learn & explore the CRAG - A better version of RAG.

Awesome Lists containing this project

README

        

# Corrective RAG (CRAG)

**Corrective RAG (CRAG)** is a strategy for Retrieval-Augmented Generation (RAG) that integrates self-reflection and self-grading mechanisms to enhance the accuracy of responses by evaluating the relevance of retrieved documents.

Screenshot 2025-01-13 at 7 38 14 AM

**Reference & Inspiration:**
[Learn more about CRAG in LangGraph](https://langchain-ai.github.io/langgraph/tutorials/rag/langgraph_crag/)

## Prerequisites

To get started with this project, ensure you have access to the following:

- **OpenAI API** – For language model operations.
- **Qdrant Vector Database** – For vector storage and retrieval.
- **Tavily API Key** – Required for specific integrations.

---

## Getting Started

Follow these steps to set up and run the project:

1. **Set up a virtual environment**
```bash
python -m venv env
source env/bin/activate # For Linux/macOS
env\Scripts\activate # For Windows
```

2. **Install dependencies**
Navigate to the project directory and run:
```bash
pip install -r my-agents/requirements.txt
```

3. **Open in LangGraph Studio**
- Launch the **LangGraph Studio** desktop application.
- Open the project folder within the application.