Zero-AGPL GraphRAG MCP vs Naive Vector Top-K: Closing the Cross-Document Retrieval Gap
Engineering compliance and security teams routinely deploy vector RAG pipelines that pass single-paragraph lookups yet silently fail cross-framework audits. Here is how entity-edge Graph traversal + RRF + AST license quarantine resolves both accuracy and IP bottlenecks.
1. Why Naive Chunk Similarity Drops Multi-Hop Links
Consider an engineering audit query asking which NIST AI RMF MANAGE control governs third-party foundation model updates and how it connects to EU AI Act Art. 12/15 logging. A chunk embedding top-k lookup retrieves isolated glossary paragraphs mentioning "third-party vendor agreements" while dropping the statutory engineering controls (SI-7, LLM05) stored in another PDF.
Using clean-room 1-hop entity-relation traversal merged via Reciprocal Rank Fusion (RRF) at equal top_k=2, vaultgraph-core raises bundled Golden Sample Coverage@2 by +50.00 percentage points in under 1 second at $0 external API cost, and our pre-baked 7-framework Pro Brain achieves 91.11% Precision@5 (+27.22 pp over vector baseline) in 2.33s cold boot across 36 multi-hop evaluation queries.
2. Hidden AGPL Contamination in Python Document Stacks
Many commercial RAG starters silently pull in PyMuPDF (import fitz), whose AGPL-3.0 license can taint proprietary SaaS distributions unless commercial seats are purchased. A deterministic AST dependency audit detects fitz/pymupdf imports and substitutes clean permissive parsers:
- Text & Tables: MIT
pdfplumber+ MITDocling - Geometry, OCR & Splitting: BSD-3-Clause
pypdf(5.9.0) + Apache-2.0pypdfium2&RapidOCR
3. Reproduce Locally via Official MCP Registry (0 Config)
uvx --from git+https://github.com/qwnzkkldsfai/vaultgraph-core vaultgraph-core self-check