Graph Metadata vs Vector Search: 20 Enterprise RAG Questions
When a question requires resolving which entity a record belongs to, graph-held metadata beats nearest-neighbour search over embeddings — but only inside this corpus, this model and this question set, as the authors themselves insist.
On this page
Your team has 10 years of enterprise documents and one question: which companies flagged currency risk last year — but the default retrieval stack cannot answer it. The usual advice is to chunk the documents, embed each chunk, and pull the nearest neighbours at query time; it demos well because demo questions have answers sitting inside a single passage. Real questions require knowing which company a passage belongs to, and that attribution is not recoverable from semantic proximity, no matter how good the embedding model is. This paper measures the size of that gap on a one-quarter SEC EDGAR snapshot, then reports where the fix itself breaks down [1].
Attribute first, read second: the step similarity search skips
Enterprise documents are not written by one team. Legal produces some, finance produces others, business lines add more across years, and the facts that identify a document — author, filing, accession number — live in a document management system rather than in the prose. Retrieval-augmented generation (RAG, meaning the model looks things up before it answers) usually consumes only the prose: split the files into chunks, turn each chunk into a vector (a list of numbers standing in for meaning), and fetch the nearest chunks at query time. That compares semantic resemblance, never ownership.
The consequence is concrete. When two risk-factor paragraphs are worded almost identically, one from company A and one from company B, their vectors can sit very close together. Ask which companies discussed a topic and the model has nothing solid to hold: it holds similar passages, not the thread tying a passage back to a company identifier. The paper builds its whole experiment on that seam [1].
The test bed: one quarter of SEC EDGAR
SEC EDGAR is the public filing system of the U.S. Securities and Exchange Commission, where companies submit disclosures on a schedule. The authors snapshotted one quarter of it. Every figure below comes from the abstract, not from my own counting [1].
| Item | Count |
|---|---|
| Filings in the snapshot | 167,050 |
| Companies covered | 10,511 |
| Embedded risk-factor chunks | 508,714 |
| Knowledge graph nodes | 430,257 |
| Knowledge graph edges | 561,144 |
| Evaluation questions | 20 across 4 categories |
| Repeats per question | 3 |
What matters is what rides on the graph edges. Every edge carries an accession number, the registry ID the SEC assigns to a filing. Think of it as a document's identity card: however many chunks the filing is cut into, and whoever quotes it later, the number does not change. Metadata and fast-moving facts move into the graph, so the question of which filing and which company a passage came from becomes a lookup instead of a guess [1].
Three architectures: SQL, vectors, two-stage graph
| Architecture | Mechanism | In one phrase |
|---|---|---|
| text-to-SQL | Translates the question into a query over typed columns | Ask the fields, read the table |
| Dense-vector RAG | Embeds chunks, then runs HNSW cosine search | Ask the meaning, grab nearest passages |
| Two-stage GraphRAG | Resolves entities through the graph, then fetches text | Name the entity, then read |
HNSW here is an approximate nearest-neighbour index: it finds the closest few vectors among hundreds of thousands while trading a little recall for speed. Cosine similarity measures whether two vectors point the same way, which you can loosely read as the cosine of the angle between their meanings. All three architectures share one model and one temperature (the sampling setting; lower means steadier output), so the comparison isolates information organisation rather than model quality [1].
Results: 16 of 20, 10 of 20, 3 of 20
The 20 questions fall into four categories, each asked three times, and scoring is done programmatically by an LLM acting as judge (a second model grading answers against a rubric). GraphRAG solved 16 of the 20 on all three attempts. Text-to-SQL solved 10, and dense-vector RAG solved 3 [1].
The sharpest number is in the single-document category, the one vector search was expected to own, because the answer sits inside one passage. Vector RAG passed 3 of 15 while GraphRAG passed 15 of 15. The authors attribute this directly to scale: company attribution is simply not recoverable from cosine similarity here. One caveat the abstract leaves open is what that 15 counts — questions, or questions times the three attempts — and whether the 10 and the 3 are also scored on an all-three-attempts basis. The abstract does not say, so I am not filling it in.
GraphRAG is not undefeated. It lost on structured aggregation queries, the kind that group by a field and count. That is intuitive enough: once a question translates cleanly into a single query statement, routing it through a two-stage graph adds a detour with no payoff.
Six confident falsehoods, all from shared surnames
The benchmark contains six confident falsehoods: answers that were wrong and stated with full assurance. All six came from text-to-SQL, and the failure mode was conflating distinct people who share a surname. The authors note this is structurally prevented by resolving identity to an identifier before reading any text, which is why GraphRAG produced none [1].
For anyone doing evaluation work, that distribution is more informative than the headline score. A total tells you who ranks higher; a failure profile tells you what shape the errors will take when the corpus and the people change. This particular failure is entity resolution left undone — mapping names in text to unique identities — and it barely depends on model size. Swap in a stronger model that still aggregates directly over raw text, and the same hole stays open.
When this method does not apply
The authors draw their own line: they claim no advantage beyond this corpus, this model and this question set. What the abstract does not report, I do not invent — no cross-model replication, no build or maintenance cost for the graph, no difficulty stratification across the question set, no industry distribution for the corpus. Those three omissions are exactly where enterprise deployments stall, because a graph's value depends on who maintains the metadata and how often it is refreshed.
- Questions are almost all single-passage extraction: vector search's weakness never surfaces and the graph's structure is dead weight.
- Questions are almost all structured aggregation: go straight to text-to-SQL, because the two-stage graph adds a detour and loses.
- Entity attribution in the corpus is already unambiguous, one document per entity: similarity search will not misattribute companies in the first place.
- Entity names collide heavily (shared surnames, same-named subsidiaries, overlapping abbreviations): building the graph without entity resolution just relocates the error.
- No owner or process exists for maintaining metadata: the graph rots before the model does.
Stating the boundary does not weaken the result; it makes the result usable. The case for this path is narrow and clear — documents produced by many teams across many years, questions that require resolving an entity first, and someone willing to maintain that metadata for the long run. Outside that, do not start by building a graph [1].
