Self-reflection can greatly enhance RAG, enabling correction of poor quality retrieval or generations. Several recent RAG papers focus on this theme, but implementing the ideas can be tricky. Here, we show that LangGraph can be easily used for “flow engineering” of self-reflective RAG pipelines. We provide cookbooks for implementing ideas from two interesting papers, Self-RAG and C-RAG.

Code:
https://github.com/langchain-ai/langgraph/tree/main/examples/rag

Add comment

Your email address will not be published. Required fields are marked *

Categories

All Topics