Normalise scores per source, then fuse
Mixing raw scores
More bookkeeping, but dense, sparse and graph scores live on different scales and can't be compared raw.
9 files open · click a tab, or use prev / next at the bottom of the page
A RAG system that checks every answer against its sources before the user sees it.
> Hybrid vector + graph retrieval with a critique loop that rewrites the query when an answer isn't grounded.
Most RAG demos retrieve some chunks, generate an answer and hope. When retrieval misses, the model fills the gap with something plausible, and nothing between the model and the user notices.
Talkative treats an answer as a draft: a critique agent checks every claim against the retrieved context, and a failed check turns into a specific fix (rewrite, decompose or re-retrieve) instead of a shrug.
abhay@os ~ % what did I actually do?
[ ok ] exit 0 · 5 tasks · owner: abhay
Three numbers I'd put on a slide. Measured in production, not in a benchmark I wrote the night before.
Two indexes, one answer. Vector search finds passages; the graph finds how things connect. Each leg can fail alone without failing the query.
Mixing raw scores
More bookkeeping, but dense, sparse and graph scores live on different scales and can't be compared raw.
Trusting the prompt
An extra round trip, but a regex blocks writes and a real EXPLAIN catches anything the regex missed.
Returning the last one
Slightly more state, but a rewrite that makes things worse never reaches the user.
The whole self-correcting loop as a graph: generate, critique, decide, rewrite and go round again, or finalize with the best answer so far.
If I built it again, I'd change…
lessons.txt (END) — press q to quit
Jul 2026