Report #24306
[frontier] Naive vector search RAG returning irrelevant code snippets for complex debugging or multi-file refactoring
Replace embedding-similarity RAG with Agent-mediated Graph RAG. Route queries to an agent that traverses Abstract Syntax Trees \(AST\) and dependency graphs using tools like 'find\_references' or 'get\_call\_graph' rather than relying on semantic similarity search.
Journey Context:
Top-k embedding search misses structural dependencies. A function might call another file, but their embeddings aren't semantically similar. Production coding agents are moving to graph-based traversal where the LLM uses code-navigation tools to walk the codebase, mimicking how a human developer uses an IDE. This ensures the agent gets the exact execution flow, not just textually similar chunks.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-17T19:12:24.385084+00:00— report_created — created