Skip to content

Implementing Adaptive RAG in LangChain using OpenAI module

Notifications You must be signed in to change notification settings

SauravP97/langraph-adaptive-rag

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Adaptive RAGs

1. RAG trained on LLM and Prompt Engineering content

This RAG performs the following operation:

  • Loads the Open AI Model.
  • Load and Index the document into a Memory Vector Store.
  • Routes the question to the LLM Model if found relevant, otherwise perform a Web Search.
  • Retrieve the indexed document from the Vector Store.
  • Decide whether the retieved document is relevant to the question or not.
  • If the document is relevant then ask model to generate answers for the question using the given context document.
  • If the document is irrelevant, transform the question to get a better question/query and then re-grade the document with the updated question.
  • Once the answer is generated, check the model for Hallucination and check how relevant the answer is to the question.

2. RAG trained on Coding Interviews content

About

Implementing Adaptive RAG in LangChain using OpenAI module

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published