RAG
11 notes
Local RAG Design: Store the Evidence First, Then Retrieve
How mt_rag separates replayable evidence, rebuildable query views, verified graph paths, and bounded generation—and why current source still wins.
Why a Code Hit Is Not Yet an Answer
Engineering retrieval has to bind results to a repository, a commit, and a symbol; a hit that is missing, stale, or from the wrong repository is only a locating lead.
Turning Retrieval Candidates into an Engineering Conclusion You Can Deliver
Retrieval finds the entry point and the original source confirms the fact; the final answer must keep verified, inferred, and unknown apart.
One Question, Three Sources: How Far Code, Jira, and Confluence Can Each Answer It
The hard part of cross-source retrieval is not finding more text; it is judging what the requirement, the design, and the current code can each prove.
When Local RAG Is Worth Calling, and When Reading the Source Is Faster
Am I missing a fact, or an entry point? That one question decides whether to retrieve at all.
Why the LLM Controller Is Allowed at Most Two Retrieval Rounds
System Shadow starts from the original question; the LLM may rerank or request one supplementary retrieval, but it cannot override deterministic evidence checks or search without bound.
Why a Local Immutable CAS Holds the Evidence Foundation
Vector stores and graph databases are rebuildable projections; the CAS stores raw data, IR, and the CPG, and a Manifest Generation references those immutable objects.
Balancing 70/30 Hybrid Retrieval and the Graph Anchor
Vector, keyword, parent-child context, and verified graph paths are combined in layers so that similar content is never mistaken for proof of a call.
How Incremental Projection Lets Vector, Keyword, and Graph Evolve Independently
Layered hashes, a delta planner, consumer cursors, and shadow projections together handle updates, failure recovery, and rollback.
Why Vector, Keyword, and Neo4j Use Different Stores
Semantic similarity, exact identifiers, and relationship traversal are three different query problems; forcing them into one database sacrifices correctness and explainability.
Why DocumentIR, Issue IR, and CodeIR Have to Be Split
Documents, tickets, and code have different structures; only with a typed IR in place first can you chunk correctly, build the graph, and keep traceable locations.