PROJECT / Agentic AI
Adaptive Corrective & Self-Reflective RAG
An agentic LangGraph pipeline that routes questions between hybrid FAISS/BM25 retrieval, web search, and direct answers. Document grading, query rewriting, and self-reflection check evidence and answer grounding, with citations and execution traces in Streamlit.
01 / THE PROBLEM
What this build explores
A single retrieval pass may miss exact identifiers, return irrelevant evidence, or produce an answer unsupported by its sources.
02 / THE APPROACH
How the pieces connect
LangGraph routes questions to hybrid FAISS/BM25 retrieval, web search, or a direct answer. Retrieved documents are graded, weak queries can be rewritten, and generated answers are checked for grounding and usefulness before returning citations.
- 01Route query
- 02Hybrid retrieve
- 03Grade evidence
- 04Generate
- 05Reflect / retry
03 / ENGINEERING JUDGMENT
The tradeoffs
Every grading or rewriting step adds latency and model calls. Bounded retries and explicit fallback paths matter as much as the quality of individual prompts.
A useful next question
Build a fixed evaluation set containing answerable, ambiguous, and unanswerable questions to compare faithfulness and latency.
SOURCE & SCOPE
The repository provides a Streamlit interface, source inspection, a CLI, and graph-node modules. The local playground illustrates retrieval using keyword scoring, not the full hosted LLM pipeline.
Detailed contribution stories and additional benchmarks will be added in a later update.