How do I implement a 'Corrective RAG' workflow using LlamaIndex and a Reranker?
My RAG pipeline often retrieves irrelevant chunks, causing the LLM to hallucinate. I want to add a step where a "Reranker" model validates the context before the final generation. How do I set this up in LlamaIndex, and which reranking models (like Cohere or BGE) are the most efficient for low-latency?
Write a Comment
Your email address will not be published. Required fields are marked (*)