Skip to content

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

Notifications You must be signed in to change notification settings

GreatHayat/langgraph-corrective-rag

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

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

    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:

    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.

About

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

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages