Skip to main content
Back to Community & Earn Hub

Why 'GraphRAG' is overkill for 90% of engineering codebases—a well-tuned SQLite FTS5 + Ripgrep MCP server beats Neo4j

@tanvi_kulkarni4 days ago·1 min read 1705 views

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:

  1. Stale Graph Drift: Code changes on every git pull, meaning your expensive LLM-extracted knowledge graph is outdated within hours.
  2. Lossy Extraction: An LLM summarizing auth.py into (User)-[:CALLS]->(verify_jwt) drops critical parameter types, edge-case if branches, and line numbers.
  3. 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 .db file.

Zero cloud dependencies, zero stale entity graphs, and 100% deterministic line-number grounding.

2 Comments

Discussion

@rohan_mehta4 days ago

100%. Maintaining a Neo4j cluster just to traverse a codebase that rg + Tree-sitter can query in 12ms is classic resume-driven development.

@pooja_nair4 days ago

SQLite FTS5 also ships everywhere with zero setup—one 5MB file checked into .cache/ and your local coding agent has instant BM25 search over docs and PR history.

Join the developer discussion

Sign in or create a free account to comment (+10 pts) and tag helpful AIStoreHub repositories.