Corrective RAG Walkthrough: A Compliance Assistant That Grades Its Own Retrieval and Answers

Affectionate_Slip654 · reddit · 2026-09-28

An open-source tutorial project building a "Veltra Pay Compliance Assistant" with Corrective RAG (CRAG): unlike vanilla RAG that answers with whatever it retrieved, this pipeline self-checks before responding.

Core mechanics

Stack: Python, LangGraph (StateGraph, conditional edges, bounded retry loops), Qdrant, pdfplumber PDF chunking, LLM-based grading/rewriting/validation, SSE streaming backend, and a real-time web dashboard. GitHub repo and YouTube walkthrough included.

Original post →

More from coding & agent

coding & agent channel →