Why 'GraphRAG' is overkill for 90% of engineering codebases—a well-tuned SQLite FTS5 + Ripgrep MCP server beats Neo4j
Every few months, teams get tempted to deploy a full GraphRAG stack (Neo4j + LLM entity/relationship extraction pipelines) to index their internal software repositories.
Two weeks and $300 of extraction tokens later, they discover three brutal truths:
- Stale Graph Drift: Code changes on every
git pull, meaning your expensive LLM-extracted knowledge graph is outdated within hours. - Lossy Extraction: An LLM summarizing
auth.pyinto(User)-[:CALLS]->(verify_jwt)drops critical parameter types, edge-caseifbranches, and line numbers. - Operational Overhead: Running a JVM graph database just to search a 40MB Git repo is absurd.
What Actually Beats GraphRAG for Code
A codebase already is an exact formal graph (imports, type definitions, function callers). Pair:
ripgrep(rg --json) for instant regex/symbol lookup in <15ms, and- SQLite FTS5 (BM25) over docstrings/commit messages in a single 5MB
.dbfile.
Zero cloud dependencies, zero stale entity graphs, and 100% deterministic line-number grounding.