Open navigation menu

Enterprise Knowledge Systems: Knowledge Graphs, Vector Databases, GraphRAG, and Governed AI

Graph versus vector is the wrong argument. The right one is about which questions your users ask, whether your entities already exist in systems of record, and whether permissions survive every copy of the data.

By INVISOMJuly 23, 202614 min read

The wrong argument

Since Microsoft Research published GraphRAG in April 2024, many enterprise AI roadmaps have acquired a line item for a knowledge graph. Vendors of graph databases, vector databases and search engines each argue that their engine is the natural home for enterprise knowledge. The debate is usually framed as a technology choice.

Our argument is that the technology choice comes third. First, classify the questions users actually ask. Second, check whether the entities those questions are about already exist, curated, in systems of record. Only then pick the store. Most enterprises will find that the bulk of their questions are answered well by hybrid search over well-chunked documents, that a small set of high-value questions genuinely needs a graph, and that the cheapest good graph is the one assembled from master data and existing relationships rather than extracted from text by a language model.

There is a fourth point that matters more than the other three in regulated organizations. Every knowledge system makes copies: chunks, embeddings, extracted entities, community summaries. Each copy must carry the classification, permissions and lineage of the record it came from. A knowledge graph that summarizes ten restricted documents into one unrestricted node is a data leak with good recall.

Three ways to represent enterprise knowledge

The three approaches store different things and answer different questions.

Vector indexes store embeddings of text passages and find passages whose meaning is close to the question. They need no schema, ingest anything, and are strong at "find me the part of the policy that covers this". They are weak at questions whose answer is spread across many documents, and at exact constraints such as part numbers, dates or names, which is why production systems combine them with keyword search. The BEIR benchmark, published at NeurIPS 2021, found BM25 keyword ranking to be a strong zero-shot baseline across 18 datasets, while dense retrievers often underperformed other approaches on unfamiliar domains.

Knowledge graphs store entities and typed relationships: this supplier provides that component, which is used in this product, which is governed by that regulation. They are strong at questions that follow relationships across several steps, at questions about a specific entity and everything connected to it, and at enforcing the same identity for "Saudi Aramco", "Aramco" and "أرامكو". Google popularised the idea for search in 2012, launching its Knowledge Graph with more than 500 million objects and 3.5 billion facts, drawing on curated public sources such as Freebase, Wikipedia and the CIA World Factbook rather than on free-text extraction alone. The standards are mature: RDF and SPARQL at the W3C, with RDF 1.2 at Candidate Recommendation in April 2026, and ISO/IEC 39075 GQL for property graphs, published in April 2024 as the first new ISO database query language since SQL.

GraphRAG and its relatives use a language model to build a graph from unstructured text, then use the graph during retrieval. Microsoft's version extracts entities and relationships from every chunk, clusters the graph into hierarchical communities and pre-writes a summary of each community. That last step is what lets it answer questions about a whole corpus.

Figure 1

The question decides the store, not the other way round

Which knowledge representation suits which kind of enterprise question

  • Find a passage

    What does the travel policy say about grade 12?

    • Hybrid vector + keywordBest fit
    • Curated knowledge graphWeak
    • GraphRAG-style indexWorkable
  • Exact constraint

    Contracts mentioning part 7731-B

    • Hybrid vector + keywordBest fit
    • Curated knowledge graphWorkable
    • GraphRAG-style indexWeak
  • Entity profile

    Everything linked to supplier X

    • Hybrid vector + keywordWorkable
    • Curated knowledge graphBest fit
    • GraphRAG-style indexWorkable
  • Multi-hop

    Which customers are exposed if this component is recalled?

    • Hybrid vector + keywordWeak
    • Curated knowledge graphBest fit
    • GraphRAG-style indexWorkable
  • Global sensemaking

    Main themes across 3,000 incident reports

    • Hybrid vector + keywordWeak
    • Curated knowledge graphWeak
    • GraphRAG-style indexBest fit
INVISOM analysis drawing on Edge et al. (2024), Han et al. (2025), Gutiérrez et al. (NeurIPS 2024) and Thakur et al. (NeurIPS 2021).

What the evidence says about GraphRAG

The GraphRAG paper by Edge and colleagues is specific about what it tested. It targeted global sensemaking questions, such as "what are the main themes across these transcripts", which conventional retrieval handles badly because no single passage contains the answer. On two corpora of roughly one million and 1.7 million tokens, a podcast transcript set and a news dataset, GraphRAG's answers beat a vector RAG baseline on comprehensiveness in 72 to 83 percent of head-to-head comparisons, and on diversity in 62 to 82 percent, with an LLM acting as the judge.

Figure 2

On global questions, GraphRAG answers won most head-to-head comparisons

Share of pairwise comparisons in which GraphRAG beat vector RAG, range across GraphRAG configurations. 50% is parity.

Comprehensiveness · Podcast transcripts (~1M tokens)72–83%

Comprehensiveness · News articles (~1.7M tokens)72–80%

Diversity · Podcast transcripts (~1M tokens)75–82%

Diversity · News articles (~1.7M tokens)62–71%

0%50% parity100%

The test covered questions about whole corpora. It says nothing about ordinary lookup questions, where a 2025 systematic evaluation found RAG and GraphRAG each win on different tasks.

Source: Edge et al., “From Local to Global: A Graph RAG Approach to Query-Focused Summarization”, Microsoft Research, arXiv 2404.16130 v2. LLM-judged comparisons on global sensemaking questions only.

Three qualifications matter for enterprise use.

  1. It was a test of global questions. The authors say their evaluation covered sensemaking questions on two corpora of about a million tokens each, and that generalization to other domains needs more work. It is not evidence that graphs improve ordinary lookup questions.
  2. Independent comparisons are mixed. A 2025 systematic evaluation by Han and colleagues compared RAG and GraphRAG on standard question-answering and summarization tasks and found that each wins on different task types, with the best results from routing between them or combining them.
  3. Other graph methods target other question types. HippoRAG, presented at NeurIPS 2024, uses a knowledge graph and Personalized PageRank for multi-hop questions, reporting gains of up to 20 percent over prior methods and single-step retrieval 10 to 30 times cheaper than iterative retrieval. "Graph-based retrieval" is a family of techniques, not one product.

The best-documented enterprise deployment is not a corpus-summary use case at all. LinkedIn's customer service team built a knowledge graph from historical support tickets, keeping each ticket's internal structure and the links between related tickets, and used it for retrieval. Their SIGIR 2024 paper reports a 77.6 percent improvement in mean reciprocal rank over a text-only baseline and a 28.6 percent reduction in median per-issue resolution time after about six months in use. The graph worked because tickets are entity-centric, structured and linked, which is the profile to look for.

What graphs cost to build and keep

The paper's indexing run on the podcast corpus took 281 minutes using GPT-4-turbo, producing 8,564 nodes and 20,691 edges from about one million tokens. Every chunk passes through the model at least once to extract entities and relationships, again to summarize each entity and relationship, and again to summarize each community. Microsoft's own repository warns that indexing "can be an expensive operation" and tells users to start small.

Figure 3

Most of a graph's cost is in how you build it

Language-model work at indexing time, from least to most

  1. 01Vector indexLLM work: None at indexing; embedding model onlyBaseline cost
  2. 02Curated graph from master dataLLM work: Little or none; entities and relationships come from systems of recordStable identities and lineage
  3. 03LazyGraphRAGLLM work: Deferred to query timeIndexing cost identical to vector RAG, about 0.1% of full GraphRAG
  4. 04Full GraphRAGLLM work: Every chunk: extract entities, summarize entities and relationships, summarize each communityPodcast corpus (~1M tokens): 281 minutes, 8,564 nodes, 20,691 edges

Not shown: the recurring costs of entity resolution, refresh when documents change, and keeping relationship types under an ontology.

Sources: Edge et al. (2024, v2); Microsoft Research LazyGraphRAG blog (25 November 2024); microsoft/graphrag repository. Curated-graph row is INVISOM analysis.

Microsoft Research's follow-up, LazyGraphRAG, published in November 2024, is the clearest statement of the trade-off. It defers language-model work to query time and reports indexing costs identical to vector RAG and 0.1 percent of full GraphRAG's, with comparable quality on global questions at more than 700 times lower query cost than GraphRAG's global search. As of 23 July 2026, the open-source GraphRAG repository describes itself as a demonstration, not an officially supported Microsoft offering, and as largely in maintenance mode. Teams that adopted it as a platform should plan accordingly.

The larger cost is not tokens. It is maintenance:

  • Entity resolution. An LLM extracting entities from text will create "Ministry of Health", "MoH" and "وزارة الصحة" as three nodes unless something reconciles them. In bilingual Gulf organizations this is the main source of graph quality problems. Master data already solves it for customers, suppliers, products and sites.
  • Refresh. When a document changes, its extracted entities, their summaries and every community summary that included them may be stale. Full re-indexing is expensive; incremental updates are hard to get right.
  • Schema drift. Free extraction produces whatever relationship types the model invents. Without an ontology, the graph becomes hard to query and impossible to govern.

INVISOM analysis: this is why we recommend building the first graph from structured sources (master data, reference data, the CMDB, contract and asset registers, the org chart) and using LLM extraction only to attach documents and passages to entities that already exist. That gives a graph with stable identities and known lineage at a fraction of the cost, and LLM extraction becomes an enrichment step rather than the foundation.

Choosing where vectors live

For the vector side, there are three families, and the choice is mostly about where your data and operations already are.

OptionExamplesFits whenWatch for
Vector extension on an existing databasepgvector for PostgreSQLModerate volumes; data and access rules already in that database; one fewer system to secureIndex build time and memory at scale; tuning filtered queries
Search engine with vector supportOpenSearch, Elasticsearch, SolrHybrid keyword and vector search is needed, which is most document use cases; search skills exist in-houseOperational complexity of the cluster; relevance tuning is real work
Dedicated vector databaseMilvus, Qdrant, Weaviate, Pinecone and othersVery large or high-throughput workloads; multi-tenant AI productsAnother copy of sensitive data with its own security model to keep aligned
Graph database with vector indexSeveral property-graph and RDF storesThe graph is the primary structure and vectors attach to its nodesFewer engineers with graph skills; query languages still settling around GQL

pgvector illustrates how far the general-purpose route now goes. As of version 0.8 it supports HNSW and IVFFlat indexes, half-precision, binary and sparse vectors, six distance functions, and iterative index scans that keep returning results when a metadata filter removes candidates, which matters directly for permission filtering. OpenSearch offers vector search through Faiss and Lucene engines, hybrid lexical and vector queries, and filtering in the same request.

Our view is that the default should be the store your organization already operates, secures and backs up, unless measured scale or latency says otherwise. A new database is a new place where permissions can drift from the source.

Governance: permissions, provenance and lineage

The governance problem is the same for graphs and vectors, and it is sharper than in a data warehouse because the transformations are probabilistic and the outputs are copies.

Access control must be enforced at retrieval, from the source. The OWASP 2025 Top 10 for LLM applications lists vector and embedding weaknesses as a distinct risk, including unauthorized access through weak access controls and leaks between tenants or groups, and recommends permission-aware vector stores with strict partitioning. In practice that means each chunk, node and edge carries the access-control list or classification of its source record, and every query filters on the requesting user's entitlements before results reach the model.

Derived artefacts inherit the strictest source. A community summary, an entity description merged from several documents, or a cached answer is only as open as the most restricted input it used. Few toolkits enforce this by default; it has to be designed in.

Embeddings are not anonymization. Morris and colleagues showed at EMNLP 2023 that text can be reconstructed from embeddings, recovering 92 percent of 32-token inputs exactly and extracting full names from clinical notes. Treat a vector index as holding the same data as its source, with the same classification and residency obligations.

Provenance must reach the answer. Every passage, node and relationship should record the source document, version, extraction method and date, so an answer can cite its sources and a reviewer can trace a wrong answer back to a wrong document or a wrong extraction.

Retrieved content is untrusted input. Greshake and colleagues demonstrated in 2023 that instructions planted in documents an AI system retrieves can steer its behaviour. Ingestion pipelines that feed a knowledge base from email, tickets or the web need the same scrutiny as any other untrusted input.

Figure 4

Every copy must carry its source's permissions

What each artefact in a knowledge system should inherit, and the typical failure

  1. Source record

    Carries: Owner, classification, ACL, residency

    Fails when: Unclassified source enters the index

  2. Chunk

    Carries: Source ID and version, inherited ACL and label

    Fails when: Chunks lose the parent's permissions

  3. Embedding

    Carries: Same classification and residency as the source

    Fails when: Treated as anonymized; it is not

  4. Graph node or edge

    Carries: Strictest label of every contributing source, extraction method

    Fails when: Merged entity is more open than its inputs

  5. Summary or cached answer

    Carries: Strictest label of all inputs, list of sources

    Fails when: Community summary leaks restricted facts

  6. Answer to user

    Carries: Citations, filtered to the user's entitlements before generation

    Fails when: Filtering after the model has already read it

INVISOM framework, informed by OWASP LLM08:2025 Vector and Embedding Weaknesses and Morris et al. (EMNLP 2023).

For Saudi public entities and their suppliers, this maps directly onto the NDMO standards: every dataset receives an impact-based classification of Top Secret, Secret, Confidential or Public, recorded as metadata. That label has to follow the data into chunks, embeddings and graph nodes, and the vector store and graph have to be in the residency scope that the source classification requires. Our guide to the NDMO standards covers the classification method.

A decision table

Question patternExampleStart withAdd a graph when
Find a passage"What is the travel allowance for grade 12?"Hybrid keyword and vector search with rerankingRarely needed
Entity profile"Everything we know about supplier X"Search filtered by entity identifiers from master dataRelationships are needed in the answer, not just documents
Multi-hop"Which contracts are affected if this component is recalled?"Structured queries over systems of recordThe hops cross systems that are not already joined
Global sensemaking"What themes recur across 3,000 incident reports?"Map-reduce summarization over a filtered setThe question recurs and the corpus is stable enough to index
Compliance trace"Which policies implement this regulation article?"A curated mapping tableThe mapping is many-to-many and changes often

What to do in the next 90 days

  1. Log real questions. Collect 200 to 500 questions from users or pilot logs and tag each with the pattern from the table above. The distribution decides the architecture.
  2. Fix hybrid retrieval first. Measure keyword-plus-vector search with reranking on the logged questions before building any graph. It sets the baseline any graph must beat.
  3. Build the first graph from master data. Use entities and relationships you already govern, then attach documents to them. Defer free LLM extraction.
  4. Pilot GraphRAG-style indexing on one bounded corpus where global questions recur, and record indexing cost, refresh cost and answer quality against the baseline.
  5. Carry permissions into every artefact. Put source ACLs and classification on every chunk, node and summary, and filter before generation. Test it with users of different entitlements.
  6. Record provenance and lineage from source document to answer, and require citations in the user interface.
  7. Use the store you already run unless measured scale says otherwise, and put any new store through the same security review as the source systems.

For the related choice between retrieval and changing the model itself, see RAG, fine-tuning, continued pretraining or a custom LLM. For the platform underneath, see data warehouse, lake, lakehouse or mesh.

Frequently asked questions

Do I need a knowledge graph for enterprise RAG?

Usually not to start. Most enterprise questions are answered by hybrid keyword and vector search over well-prepared documents. A graph earns its cost for multi-hop, entity-centric or corpus-wide questions, and is cheapest when built from master data you already govern.

Is GraphRAG better than vector RAG?

For global sensemaking questions over a corpus, Microsoft's evaluation found GraphRAG answers more comprehensive and diverse. For ordinary lookup questions the evidence is mixed, and independent studies find each approach wins on different tasks. Routing between them works best.

How expensive is GraphRAG indexing?

Full GraphRAG passes every chunk through a language model several times to extract and summarize entities and communities. Microsoft's own repository warns it can be expensive. Microsoft Research reports that LazyGraphRAG indexing costs about 0.1 percent of full GraphRAG.

Should I use pgvector or a dedicated vector database?

Start with the database or search engine you already operate and secure, unless measured scale or throughput requires otherwise. pgvector and search engines with vector support cover many enterprise workloads, and fewer copies of sensitive data mean fewer places for permissions to drift.

Sources and further reading

Work with INVISOM

Decide where a knowledge graph earns its cost in your AI estate

Start a conversation

Related Insights

Continue the Topic

View all insights

Knowledge IntelligenceImplementation Guide

Building Trustworthy Enterprise RAG

Most RAG teams tune prompts and swap models. The measurable gains are in retrieval, and the failures you cannot undo are in permissions and injected content. Build from the index outward, and let evaluation decide what ships.

Jul 26, 2026 · 14 min read

Knowledge IntelligenceArchitecture Guide

The Enterprise Context Layer

Models are now interchangeable; context is not. Organizations that build context once, as a governed shared layer with permissions attached, will reuse it across every assistant and agent. Those that wire it per project will rebuild it every time.

Aug 19, 2026 · 13 min read

Knowledge IntelligenceComparison

RAG, Fine-Tuning or a Custom LLM?

Retrieval owns facts. Tuning owns behaviour. Almost nobody should train their own model. And in 2026 the market itself has started making the decision for you.

Aug 16, 2026 · 10 min read