A production-ready RAG system that detects retrieval failures and autonomously refines queries before generating answers.
Standard RAG systems are blind to retrieval failures. If search returns irrelevant chunks, the LLM generates a hallucinated answer using that bad context. This system detects poor retrieval and automatically retries with a better query before answering.