All projects

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.

Illustrative stock imagery · Project screenshots coming later

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.

  1. 01Route query
  2. 02Hybrid retrieve
  3. 03Grade evidence
  4. 04Generate
  5. 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.

Read the engineering note: A retrieval loop needs an exitTry the browser playground
NEXT BUILDShift-Aware Restricted-Zone Monitoring

YOUR GUIDE TO MY WORK

Ask Atharva’s AI

A conversation is a good place to start.

Explore my work, experience, and engineering decisions. Answers use my portfolio information.

AI can make mistakes. Check linked sources. Free portfolio fallback available.