# GraphRAG: The Marriage of Knowledge Graphs and RAG

Emil Eifrem

AI Engineer World's Fair 2024

[Talk page](https://ai.engineer/talks/knDDGYHnnSI-graphrag) · [Video](https://www.youtube.com/watch?v=knDDGYHnnSI)

## GraphRAG: Combining Knowledge Graphs and Vector Search for Better Retrieval

Emil Eifrem explains how knowledge graphs add explicit relationships, richer context, and interpretability to retrieval-augmented generation, while acknowledging the practical difficulty of constructing those graphs.

![Selected presentation frame from GraphRAG: The Marriage of Knowledge Graphs and RAG: Emil Eifrem at 563 seconds](https://ai.engineer/api/talk-essay-media/4336f9603108d48e5127e578f5b12acd2e4952b51cd33d77318b8c1ea135692f)

GraphRAG: Combining Knowledge Graphs and Vector Search for Better Retrieval

### Why relationships matter in search

[0:14](https://www.youtube.com/watch?v=knDDGYHnnSI&t=14s)

Emil Eifrem frames **GraphRAG** as part of a longer progression in search: moving from isolated data points and matching text toward systems that use relationships between pieces of information. Early web search engines relied on keyword-oriented methods, including inverted indexes and BM25-like approaches. As online content expanded, these systems could return thousands of matches, leaving users to identify the relevant results themselves. [0:14](https://www.youtube.com/watch?v=knDDGYHnnSI&t=14s) [1:00](https://www.youtube.com/watch?v=knDDGYHnnSI&t=60s)

The next step, in Eifrem’s account, was **PageRank**: a graph algorithm that uses the structure connecting web pages to surface important results earlier. He then describes the introduction of **knowledge graphs**, which represent concepts found within documents rather than treating the documents and links alone as the complete search substrate. [1:55](https://www.youtube.com/watch?v=knDDGYHnnSI&t=115s) [3:01](https://www.youtube.com/watch?v=knDDGYHnnSI&t=181s)

A knowledge graph consists of **nodes**, **relationships**, and key-value properties attached to both. Eifrem points to search results that combine unstructured descriptive text with structured facts as an illustration of how a graph-backed representation can connect different forms of information. His central argument is that generative applications can similarly benefit when language models retrieve information through explicit relationships. [3:01](https://www.youtube.com/watch?v=knDDGYHnnSI&t=181s) [4:19](https://www.youtube.com/watch?v=knDDGYHnnSI&t=259s)

![Selected presentation frame from GraphRAG: The Marriage of Knowledge Graphs and RAG: Emil Eifrem at 139 seconds](https://ai.engineer/api/talk-essay-media/1830d0aa1bf294c97486054c12c9965813fdf8d4a1184d80f497f3816179eae0)

Why relationships matter in search

- Keyword search and inverted indexes can overwhelm users with large volumes of matching results.
- PageRank uses a graph algorithm to prioritize important search results.
- Knowledge graphs represent concepts as nodes connected by relationships, with properties attached to both.
- GraphRAG combines language models with knowledge-graph retrieval and can incorporate vector search.

### The basic GraphRAG retrieval pattern

[4:19](https://www.youtube.com/watch?v=knDDGYHnnSI&t=259s)

Eifrem defines **GraphRAG** as retrieval-augmented generation that uses a knowledge graph somewhere along the retrieval path. This definition does not require replacing other retrieval methods: graph retrieval can be combined with **vector search**, allowing similarity-based discovery and relationship-based expansion to contribute to the same answer. [4:19](https://www.youtube.com/watch?v=knDDGYHnnSI&t=259s)

His example is a customer-support assistant for a company that builds Wi-Fi routers. Support articles become graph nodes with their text stored as properties. Each article can also connect to a specific product, a hierarchy of related products, and the support engineer who wrote it. The graph therefore preserves relationships that would otherwise remain implicit in the article text or external application logic. [5:25](https://www.youtube.com/watch?v=knDDGYHnnSI&t=325s)

When a user asks about flashing yellow lights and dropped connections, the system first embeds the question and uses vector search to retrieve relevant articles. It then traverses the graph to gather additional context, such as articles concerning related products or signals indicating that a particular engineer’s material should rank more highly. The expanded context and the original question are passed to the language model to generate an answer. [6:28](https://www.youtube.com/watch?v=knDDGYHnnSI&t=388s)

Graph expansion introduces its own selection problem: following relationships may produce thousands of nodes. Eifrem therefore describes an optional ranking stage that selects the **top K** results according to graph structure, potentially using PageRank, before sending the final context to the model. The resulting pattern is vector retrieval, graph traversal, optional graph-aware ranking, and language-model generation. [6:28](https://www.youtube.com/watch?v=knDDGYHnnSI&t=388s) [7:40](https://www.youtube.com/watch?v=knDDGYHnnSI&t=460s)

![Selected presentation frame from GraphRAG: The Marriage of Knowledge Graphs and RAG: Emil Eifrem at 287 seconds](https://ai.engineer/api/talk-essay-media/a19c0895b877f542e0a876b51f00e770a14fe6b65b91d437aab5b02dbe6458f6)

The basic GraphRAG retrieval pattern

- GraphRAG uses a knowledge graph along the retrieval path without requiring vector search to be replaced.
- Support articles can connect explicitly to products, product hierarchies, and their authors.
- Vector search finds initial articles, while graph traversal expands retrieval to related context.
- Graph-aware ranking can reduce large expansions to the top K results before language-model generation.

GraphRAG retrieval and generation
Vector retrieval seeds graph expansion, with optional ranking before generation.
- User question — Question about a support issue
- Vector search — Retrieve initial article nodes
- Graph traversal — Expand into related products and articles
- Optional ranking — Select top K using graph structure
- Language model — Generate an answer from selected context
- User question → Vector search (Embed and search)
- Vector search → Graph traversal (Seed initial nodes)
- Graph traversal → Optional ranking (Optionally narrow expanded results)
- Optional ranking → Language model (Provide top K context)
- Graph traversal → Language model (Provide context directly)

### What graphs can add to answer quality

[6:28](https://www.youtube.com/watch?v=knDDGYHnnSI&t=388s)

The first benefit Eifrem emphasizes is **accuracy**. He describes research and examples in which combining graph-based retrieval with vector search improved response quality relative to a vector-only or baseline retrieval approach. The proposed mechanism is straightforward: relationships help the retrieval system assemble relevant context that similarity search alone might not return. [6:28](https://www.youtube.com/watch?v=knDDGYHnnSI&t=388s) [7:40](https://www.youtube.com/watch?v=knDDGYHnnSI&t=460s) [8:53](https://www.youtube.com/watch?v=knDDGYHnnSI&t=533s)

He cites a data.world example involving approximately 43 questions and describes an average response-quality improvement of roughly threefold when a knowledge graph was combined with vector search. He also references work from LinkedIn that he recalls as showing an accuracy increase of approximately 75% or 77%. These figures are presented as his descriptions of individual examples, not as a universal performance guarantee. [8:53](https://www.youtube.com/watch?v=knDDGYHnnSI&t=533s)

Eifrem also describes Microsoft’s argument that GraphRAG can address an additional class of questions that baseline vector search or baseline RAG cannot answer. He does not specify those question types in detail, so the supported conclusion is limited: graph-based retrieval may change not only answer quality but also the kinds of questions a retrieval system can support. [9:53](https://www.youtube.com/watch?v=knDDGYHnnSI&t=593s)

![Selected presentation frame from GraphRAG: The Marriage of Knowledge Graphs and RAG: Emil Eifrem at 565 seconds](https://ai.engineer/api/talk-essay-media/2da664c4e7a8091b2a4fc674a5f50a5d99b6e2bc6d08eed8a755f1f9672277bc)

What graphs can add to answer quality

- Graph traversal retrieves relevant relationship-based context beyond the initial vector-search results.
- One data.world example reported approximately threefold higher response quality across roughly 43 questions.
- A LinkedIn example reported an approximately 75% or 77% accuracy improvement.
- GraphRAG may support additional question classes that baseline vector search or baseline RAG cannot answer.

### Explicit structure improves development and oversight

[9:53](https://www.youtube.com/watch?v=knDDGYHnnSI&t=593s)

Eifrem’s second claimed benefit is **easier application development**, but he attaches an important condition: the advantage applies once a usable knowledge graph already exists. Teams must first learn how to construct that graph, and he acknowledges that this initial step can be difficult. The development benefit should therefore be understood as conditional rather than as a promise that GraphRAG is always simpler end to end. [9:53](https://www.youtube.com/watch?v=knDDGYHnnSI&t=593s)

He describes an unnamed fintech company that moved an existing application from a vector database to **Neo4j**. In his account, the company found that related actions could be retrieved by following relationships, embeddings could be calculated at the database level, and a visual representation of the application’s data helped identify bugs. The example illustrates how explicit graph structure can make application behavior easier for developers to inspect. [11:00](https://www.youtube.com/watch?v=knDDGYHnnSI&t=660s)

To explain why, Eifrem contrasts the statement that apples and oranges are both fruit when represented in a graph versus in vector space. A graph can explicitly represent the relationships between apple, orange, and fruit, whereas the internal meaning of a vector representation is not readily interpretable by a person. He emphasizes that graph and vector representations are **complementary**, while arguing that graphs offer a clearer working representation during application development. [11:00](https://www.youtube.com/watch?v=knDDGYHnnSI&t=660s) [12:11](https://www.youtube.com/watch?v=knDDGYHnnSI&t=731s)

The same explicitness also supports operational concerns beyond programming. Eifrem connects visible relationships and inspectable data structures with **explainability**, **auditability**, and **governance**, especially when an organization needs to understand why a production system produced a particular result. These are presented as benefits of representation and traceability, not as proof that every GraphRAG system automatically satisfies a particular governance standard. [13:19](https://www.youtube.com/watch?v=knDDGYHnnSI&t=799s)

![Selected presentation frame from GraphRAG: The Marriage of Knowledge Graphs and RAG: Emil Eifrem at 709 seconds](https://ai.engineer/api/talk-essay-media/8bdda0e3ef3e4840e1df38bec24b65a0ede217dfa88bc91e133b9e34f220ede8)

Explicit structure improves development and oversight

- Development becomes easier only after teams overcome the initial challenge of building a usable knowledge graph.
- A fintech application used Neo4j relationships, database-level embeddings, and graph visualization to simplify retrieval and debugging.
- Graphs make relationships human-readable, while vectors remain opaque; the two representations are complementary.
- Explicit graph structures can improve explainability, auditability, and governance in production systems.

### Building the knowledge graph is the central implementation challenge

[13:19](https://www.youtube.com/watch?v=knDDGYHnnSI&t=799s)

Eifrem divides graph-construction inputs into three categories: **structured data**, **unstructured data**, and mixed data consisting of structured records with some long-form text fields. His structured examples include systems such as Snowflake, Postgres, MySQL, and Oracle; his unstructured examples include PDF files and raw webpage text. He argues that mixed data accounts for many enterprise production use cases. [13:19](https://www.youtube.com/watch?v=knDDGYHnnSI&t=799s) [14:32](https://www.youtube.com/watch?v=knDDGYHnnSI&t=872s)

In his assessment, converting structured data into a **property graph** is comparatively straightforward, while extracting a useful graph from unstructured content is difficult both conceptually and because tooling has historically been immature. He briefly identifies **lexical graphs** and **domain graphs** as relevant distinctions but does not explain them, so the transcript does not support a more detailed account of their differences. [14:32](https://www.youtube.com/watch?v=knDDGYHnnSI&t=872s)

To demonstrate an approach to unstructured inputs, Eifrem introduces the **Knowledge Graph Builder**. He says it can ingest PDF files, YouTube links, Wikipedia links, and cloud-service buckets, then extract information and construct a graph. His example inputs include Andrew Ng’s newsletter The Batch, the Wikipedia page for OpenAI, and a Latent Space podcast episode he identifies as Four Wars. [15:42](https://www.youtube.com/watch?v=knDDGYHnnSI&t=942s) [15:56](https://www.youtube.com/watch?v=knDDGYHnnSI&t=956s)

The live demonstration initially struggles with connectivity and rendering before displaying a graph. Eifrem shows a document connected to chunks, describes expanding those chunks into extracted concepts such as machine learning, and mentions that embeddings are included. He also notes that the tool contains a chatbot with introspectable results, but time constraints prevent him from demonstrating that functionality in detail. [15:56](https://www.youtube.com/watch?v=knDDGYHnnSI&t=956s) [17:38](https://www.youtube.com/watch?v=knDDGYHnnSI&t=1058s)

![Selected presentation frame from GraphRAG: The Marriage of Knowledge Graphs and RAG: Emil Eifrem at 1127 seconds](https://ai.engineer/api/talk-essay-media/2c70f999fd5810a57d961e00e151b9b8bf705108af923592e57f143445d0b6ef)

Building the knowledge graph is the central implementation challenge

- Graph-construction inputs fall into structured, unstructured, and mixed categories; mixed records contain long-form text fields.
- Structured databases map comparatively easily into property graphs, while unstructured extraction remains more difficult.
- Knowledge Graph Builder accepts PDFs, YouTube links, Wikipedia links, and cloud-service buckets.
- Generated graphs connect documents to chunks and extracted concepts, and can include embeddings.

Document-to-concept graph construction
Uploaded source material becomes a graph linking documents, chunks, and extracted concepts.
- Source inputs — PDFs, links, and cloud buckets
- Document — Uploaded document represented in the graph
- Document chunks — Document-associated text chunks
- Extracted concepts — Concepts such as machine learning
- Source inputs → Document (Upload and create graph)
- Document → Document chunks (Contains associated chunks)
- Document chunks → Extracted concepts (Expand into extracted concepts)

## Key takeaways

- **GraphRAG** means using a knowledge graph on the retrieval path, potentially alongside vector search rather than instead of it. [4:19](https://www.youtube.com/watch?v=knDDGYHnnSI&t=259s)
- A practical retrieval pipeline starts with vector search, expands relevant nodes through graph relationships, optionally ranks the expanded set, and sends the selected context to the language model. [6:28](https://www.youtube.com/watch?v=knDDGYHnnSI&t=388s) [7:40](https://www.youtube.com/watch?v=knDDGYHnnSI&t=460s)
- Reported accuracy gains come from specific examples cited in the talk; the transcript does not establish that the same improvements apply universally. [8:53](https://www.youtube.com/watch?v=knDDGYHnnSI&t=533s) [9:53](https://www.youtube.com/watch?v=knDDGYHnnSI&t=593s)
- Explicit graph relationships can make retrieval behavior easier to visualize, debug, explain, and audit, while remaining complementary to vector representations. [11:00](https://www.youtube.com/watch?v=knDDGYHnnSI&t=660s) [12:11](https://www.youtube.com/watch?v=knDDGYHnnSI&t=731s) [13:19](https://www.youtube.com/watch?v=knDDGYHnnSI&t=799s)
- The main implementation tradeoff is that GraphRAG becomes easier to develop against only after a useful knowledge graph exists, and constructing one from unstructured material can be difficult. [9:53](https://www.youtube.com/watch?v=knDDGYHnnSI&t=593s) [14:32](https://www.youtube.com/watch?v=knDDGYHnnSI&t=872s)
- The **Knowledge Graph Builder** demonstration illustrates ingestion of documents and links, extraction into document chunks and concepts, and graph visualization, while leaving its chatbot functionality largely undemonstrated. [15:56](https://www.youtube.com/watch?v=knDDGYHnnSI&t=956s) [17:38](https://www.youtube.com/watch?v=knDDGYHnnSI&t=1058s)

## Slides

### Presenting Sponsor: Microsoft

Microsoft is the presenting sponsor.

[0:05](https://www.youtube.com/watch?v=knDDGYHnnSI&t=5s) [Microsoft logo beneath the words Presenting Sponsor.](https://assets.ai.engineer/sites/aiecode2025/sha256/144b52c4e136cf512dfeb336355ec5c150e24373cec2705fc5d8b0649e7bb1de.webp)

PRESENTING SPONSOR
Microsoft

### Innovation and Platinum Sponsors

AWS is the innovation sponsor; MongoDB, Google Cloud, and Neo4j are platinum sponsors.

[0:10](https://www.youtube.com/watch?v=knDDGYHnnSI&t=10s) [AWS is the innovation sponsor; MongoDB, Google Cloud, and Neo4j are platinum sponsors.](https://assets.ai.engineer/sites/aiecode2025/sha256/8666798d6d267be8ba90ccb35dc7959c085d8e74ed86fda602cb8a3019c49a96.webp)

INNOVATION SPONSOR
aws

PLATINUM SPONSORS
MongoDB®
Google Cloud
neo4j

### GraphRAG: The Marriage of Knowledge Graphs and RAG

Emil Eifrem introduces applying data connected by relationships to LLMs and generative AI.

[0:15](https://www.youtube.com/watch?v=knDDGYHnnSI&t=15s) [Title slide naming Emil Eifrem, founder and CEO of Neo4j.](https://assets.ai.engineer/sites/aiecode2025/sha256/c73e7524f190ac8c6299fdce62b101d304e9e2a5858be5488385333c3f7af78b.webp)

neo4j

GraphRAG: The Marriage of Knowledge Graphs and RAG

Emil Eifrem
Founder & CEO, Neo4j

### The Evolution of Web Search: Google

Eifrem opens his history of web search with Google, which he says handles the vast majority of web searches today.

[0:49](https://www.youtube.com/watch?v=knDDGYHnnSI&t=49s) [A Google search homepage under the heading The Evolution of Web Search.](https://assets.ai.engineer/sites/aiecode2025/sha256/b6be9aeed9e88f2047da18fcef2aa20df33d0edbacce4a9cc44f9fe65966bbcb.webp)

The Evolution of... Web Search

2  Neo4j Inc. All rights reserved 2024

Interface text:
Google
Google Search
I'm Feeling Lucky

### The Evolution of Web Search: Lycos

Lycos’s 1996 homepage surrounds its search box with ads and directory links. The speaker recalls dozens of mid-1990s search companies using keyword-based text search and inverted indexes.

[0:55](https://www.youtube.com/watch?v=knDDGYHnnSI&t=55s) [A historical Lycos search homepage under the heading The Evolution of Web Search.](https://assets.ai.engineer/sites/aiecode2025/sha256/30d1c6cae4dedd68dab5c92e0ce22b99c0fd2c3760b81e96e7bfe69e69450d9a.webp)

The Evolution of... Web Search

Serious Sports Fans Only $1,000,000 in Cash and Prizes!
For serious sports fans only! Play Fantasy Football!

LYCOS
It’s amazing where Go Get It will get you.

Find: Go Get It

Enhance your search.

NETSCAPE Now! 3.0
INVEST $100K
FREE Microsoft Internet Explorer

New Search • TopNews • Sites by Subject • Top 5% Sites • City Guide • Pictures & Sounds
PeopleFind • Point Review • Road Maps • Software • About Lycos • Club Lycos • Help

Add Your Site to Lycos

Copyright © 1996 Lycos™, Inc. All Rights Reserved.
Lycos is a trademark of Carnegie Mellon University.
Questions & Comments

3   Neo4j Inc. All rights reserved 2024

### The Evolution of Web Search: Full-Text Era

In the mid-1990s, many search companies used keyword-based text search. Users could receive thousands of hits and page through them to find a relevant result.

[1:13](https://www.youtube.com/watch?v=knDDGYHnnSI&t=73s) [A chart labels the full-text era as 1994–2000 and shows early search company logos beside a rising curve.](https://assets.ai.engineer/sites/aiecode2025/sha256/a85c8aff4791a66f8fa64538f9035e917a83200cc37e49a4775b2ae0fd41937c.webp)

The Evolution of... Web Search
Full text Era: 1994 - 2000

Full Text Search

Yahoo!
Netscape
Ask Jeeves
LYCOS
AOL

4  Neo4j Inc. All rights reserved 2024

[1:20](https://www.youtube.com/watch?v=knDDGYHnnSI&t=80s) [A timeline chart labels the full-text search era from 1994 to 2000 and shows early search company logos.](https://assets.ai.engineer/sites/aiecode2025/sha256/5ddfb5dab2d6617f02219615a1379c138477c8781456b2eb013a6888bb30a8d8.webp)

The Evolution of... Web Search
Full text Era: 1994 - 2000

Full Text Search

Yahoo!
Netscape
Ask Jeeves
LYCOS
AOL

[illegible]served 2024

Interface text:
AIE
Microsoft
smol ai
aws

### Google's 2000 Announcement and PageRank

Google’s June 2000 announcement paired an index of more than 1 billion URLs with PageRank, which it said put the most important search results first.

[2:09](https://www.youtube.com/watch?v=knDDGYHnnSI&t=129s) [Google's June 2000 search engine announcement appears above a quotation describing text matching and PageRank.](https://assets.ai.engineer/sites/aiecode2025/sha256/3eb87e6a3c13c3159f192d8a42bc72b506d7c32ffcb65bd91d7b21dda1102929.webp)

Google Launches World’s Largest Search Engine

Google Now Enables Internet Users to Search More Than 1 Billion URLs, Providing Quick and Easy Access to 560 Million Full-Text Indexed Web Pages and 500 Million Partially Indexed URLs

MOUNTAIN VIEW, Calif. – June 26, 2000 – Google Inc., one of the fastest growing search engines on the web, today announced it has released the largest search engine on the Internet. Google’s new index, comprising more than 1 billion URLs, offers users the web’s most comprehensive collection of websites, which can be easily searched with Google’s fast and highly relevant search technology. Available now at www.google.com, Google’s portal and destination site customers can also license this new index for integration with their own websites.

Google is based on a variety of innovative technologies, including sophisticated text matching and its advanced, patent-pending technology called PageRank™, which ensures that the most important results always come up first.

[illegible]served 2024

Interface text:
Subscribe
AIE
Microsoft
smol ai
aws

### PageRank

PageRank estimates a page’s importance from the number and quality of links to it. The diagram shows pages as circles and hyperlinks as arrows, with larger circles representing greater perceived importance.

[2:23](https://www.youtube.com/watch?v=knDDGYHnnSI&t=143s) [A Wikipedia PageRank article explains ranking by links alongside a diagram of linked pages.](https://assets.ai.engineer/sites/aiecode2025/sha256/b7f214845382040c675655545608d881a4c235ed3e057101408962325feb25c8.webp)

PageRank

From Wikipedia, the free encyclopedia

PageRank (PR) is an algorithm used by Google Search to rank web pages in their search engine results. It is named after both the term "web page" and co-founder Larry Page. PageRank is a way of measuring the importance of website pages. According to Google:

PageRank works by counting the number and quality of links to a page to determine a rough estimate of how important the website is. The underlying assumption is that more important websites are likely to receive more links from other websites.[1]

Currently, PageRank is not the only algorithm used by Google to order search results, but it is the first algorithm that was used by the company, and it is the best known.[2][3] As of September 24, 2019, all patents associated with PageRank have expired.[4]

Diagram labels: A 3.3%; B 38.4%; C 34.3%; D 3.9%; E 8.1%; F 3.9%; 1.6% (five nodes)

A simple illustration of the Pagerank algorithm. The percentage shows the perceived importance, and the arrows represent hyperlinks.

Description [edit]

Interface text:
Wikipedia
The Free Encyclopedia
Search Wikipedia
Search
Create account
Log in
42 languages
Contents
hide
(Top)
Description
History
Algorithm
Variations
Other uses
nofollow
See also
References
Relevant patents
External links
Article
Talk
Read
Edit
View history
Tools

AIE
Microsoft
smol ai
aws
[illegible]served 2024

### The Evolution of Web Search: PageRank Era

After full-text search, Google applied the PageRank graph algorithm at web scale. The slide places the PageRank era at 2000–2012.

[2:40](https://www.youtube.com/watch?v=knDDGYHnnSI&t=160s) [A timeline shows full-text search followed by Google's PageRank era, 2000–2012.](https://assets.ai.engineer/sites/aiecode2025/sha256/2dc27386d9a7959c17df41797b5aac6abff6ff2772b33716d25506631c268ab1.webp)

The Evolution of... Web Search
PageRank Era: 2000 - 2012

Full Text Search
PageRank

Google
Yahoo!
Netscape
Ask Jeeves
LYCOS
AOL

Diagram labels: A 3.3%; B 38.4%; C 34.3%; D 3.9%; E 8.1%; F 3.9%; [illegible] 1.6%

[illegible]erved 2024

AIE
neo4j
Graph Database & Analytics
Microsoft
smol ai
aws

### Introducing the Knowledge Graph

The speaker describes Google’s 2012 Knowledge Graph as a search upgrade that stored concepts in documents alongside text and links.

[2:51](https://www.youtube.com/watch?v=knDDGYHnnSI&t=171s) [A screenshot of Google's 2012 announcement titled Introducing the Knowledge Graph: things, not strings.](https://assets.ai.engineer/sites/aiecode2025/sha256/f180cec86bb00d3e04c33a1fb4b8117ca9c4fdc113dcaa4254f0791d78b236b5.webp)

SEARCH

Introducing the Knowledge Graph: things, not strings

May 16, 2012 · 4 min read

Amit Singhal
SVP, Engineering

Search is a lot about discovery—the basic human need to learn and broaden your horizons. But searching still requires a lot of hard work by you, the user. So today I’m really excited to launch the Knowledge Graph, which will help you discover new information quickly and easily.

Take a query like [taj mahal]. For more than four decades, search has essentially been about

Interface text:
Share
AIE
neo4j
Graph Database & Analytics
Microsoft
smol ai
aws
[illegible]erved 2024

### Google Search Knowledge Panel

Google’s right-hand knowledge panel combines a Wikipedia description of Moscone Center with structured facts such as its address and owner, alongside the search results.

[3:23](https://www.youtube.com/watch?v=knDDGYHnnSI&t=203s) [Google search results for Moscone Center, with the knowledge panel outlined on the right.](https://assets.ai.engineer/sites/aiecode2025/sha256/72adcdb83d69518e3c3f7e0d19cb4c09ae92ed24a38693b19c6ffbc2f8dbfc0a.webp)

Moscone Center: Homepage
Featured Events · SEMICON® WEST · Config 2024 / Figma · Design Automation Conference · SEMICON® WEST · Config 2024 / Figma · Design Automation Conference.

Events
Skip to main content. Click to open the Menu. Moscone Center ...

Floor Plans
Moscone North & South Floor Plans · Moscone North/South ...

Explore the Neighborhood
Nearby Neighborhood Area Attractions ... Located in the ...

Directions and Parking
BART offers fast, convenient regional service and MUNI ...

Contact Us
You must have JavaScript enabled to use this form. ... How can we ...

More results from moscone.com »

People also ask
Which BART stop for Moscone Center?
Who owns the Moscone Center?

Moscone Center
4.5 · 6,062 Google reviews
Convention center in San Francisco, California

The George R. Moscone Convention Center, popularly known as the Moscone Center, is the largest convention and exhibition complex in San Francisco, California, United States. The complex consists of three main halls spread out across three blocks and 87 acres in the South of Market neighborhood. Wikipedia

Address: 747 Howard St, San Francisco, CA 94103
Parking: Pay parking nearby
Owner: City and County of San Francisco
Phone: (415) 974-4000
Hours: Open · Closes 11 PM
Construction cost: $157 million (Moscone North); $158 million [illegible]

Interface text:
Google
moscone center
All · Maps · Images · News · Videos · More · Tools
Moscone Center
https://www.moscone.com
See more · See outside
Website · Directions · Save · Share · Call
AIE
neo4j
Graph Database & Analytics
Microsoft · smol ai · aws
[illegible] reserved 2024

### Knowledge Panel Details

The Moscone Center knowledge panel combines a Wikipedia description with structured facts such as its address and owner.

[3:32](https://www.youtube.com/watch?v=knDDGYHnnSI&t=212s) [The Moscone Center search results are dimmed behind a callout highlighting the knowledge panel's descriptive text and structured facts.](https://assets.ai.engineer/sites/aiecode2025/sha256/ddc9d00dbfe5aa77f705302b5421a28bbe8dd5a8435607cf4bb7856e7f138f5c.webp)

Moscone Center
4.5 ★★★★★ 6,062 Google reviews
Convention center in San Francisco, California
Website  Directions  Save  Share
Call

The George R. Moscone Convention Center, popularly known as the Moscone Center, is the largest convention and exhibition complex in San Francisco, California, United States. The complex consists of three main halls spread out across three blocks and 87 acres in the South of Market neighborhood. Wikipedia

Address: 747 Howard St, San Francisco, CA 94103
Parking: Pay parking nearby
Owner: City and County of San Francisco
Phone: (415) 974-4000
Hours: Open · Closes 11 PM
Construction cost: $157 million (Moscone North); $158 million [illegible]

Interface text:
Google
moscone center
All  Maps  Images  News  Videos  More  Tools
[illegible]mepage
WEST · Config 2024 / Figma · Design Automation Conference ·
[illegible]24 / Figma · Design Automation Conference.
[illegible]to open the Menu. Moscone Center ...
[illegible]oor Plans · Moscone North/South ...
[illegible]orhood
[illegible] Attractions ... Located in the ...
[illegible]king
[illegible]nt regional service and MUNI ...
[illegible]enabled to use this form. ... How can we ...
[illegible]e.com »
See more  See outside
People also ask
Which BART stop for Moscone Center?
Who owns the Moscone Center?
[illegible]served 2024
AIE
neo4j
Microsoft
smol ai
aws

### The Evolution of Web Search: Knowledge Graph Era

The timeline places Google’s Knowledge Graph era, 2012–2024, after full-text search and PageRank. Its graph connects nodes through relationships; both can carry properties.

[4:10](https://www.youtube.com/watch?v=knDDGYHnnSI&t=250s) [The web-search timeline adds Google's Knowledge Graph era, 2012–2024, after full-text search and PageRank.](https://assets.ai.engineer/sites/aiecode2025/sha256/32021753c0560bdcfe459f6b8372292a2ca49ee7fc79acbdc1b2242e179a591d.webp)

The Evolution of... Web Search
The Knowledge Graph Era: 2012 - 2024

Full Text Search
Yahoo!
Netscape
Ask Jeeves
LYCOS
AOL

PageRank
Google
[Diagram labels: illegible]

Google
Node
Relationship
Property
[Other diagram text: illegible]

[illegible]erved 2024

Interface text:
AIE
Microsoft
smol ai
aws

### Google I/O travel-planning example

A Google I/O example asks for a Miami weekend plan using Gmail flight and hotel details and family preferences. The speaker describes it as an LLM combined with a knowledge graph.

[4:21](https://www.youtube.com/watch?v=knDDGYHnnSI&t=261s) [A Google I/O stage screen shows a request to plan a Miami trip using flight and hotel information.](https://assets.ai.engineer/sites/aiecode2025/sha256/6868cd549889cb7dacb18362bb6f745308db5b37ea855b1b6130a8d0933217b2.webp)

Google I/O ‘24 Keynote

My family and I are going to Miami for Labor Day. My son loves art and my husband really wants fresh seafood. Can you pull my flight and hotel info from Gmail and help me plan the weekend?

[illegible]served 2024

AIE
Microsoft
smol ai
aws

### Travel-planning knowledge graph

The speaker describes Google’s travel-planning demo as an LLM combined with a knowledge graph. The diagram connects Miami and Labor Day with Gmail, art, seafood and activities.

[4:41](https://www.youtube.com/watch?v=knDDGYHnnSI&t=281s) [A Google I/O stage screen shows a graph connecting Miami travel details, activities and other information.](https://assets.ai.engineer/sites/aiecode2025/sha256/c346c0b21eac0d769ab93da0d714d5caa62942e5171a5eb648b2c817459e175b.webp)

Google I/O ‘24 Keynote

Museums
Sunny, 87°
MIA ✈ SFO
SFO ✈ MIA
Art Exhibits
Miami
Labor Day
Your booking
Things to do
art
fresh seafood
Gmail
Activities
Ceviche
South Beach
Menu
[illegible]

[illegible]served 2024

Interface text:
AIE
neo4j
Graph Database & Analytics
Microsoft
smol ai
aws

### Introduction to GraphRAG

The talk turns to whether and how to use GraphRAG in RAG-based applications.

[4:49](https://www.youtube.com/watch?v=knDDGYHnnSI&t=289s) [Section title slide reading Introduction to GraphRAG.](https://assets.ai.engineer/sites/aiecode2025/sha256/a960993a84e67e92251f74e9a8584f65fdcc840ad3b80e5434657d3d3b54ffac.webp)

Introduction to GraphRAG

AIE
Microsoft
smol ai
aws
neo4j

### What is GraphRAG?

GraphRAG uses a knowledge graph on the retrieval path, potentially alongside other technologies such as vector search.

[5:10](https://www.youtube.com/watch?v=knDDGYHnnSI&t=310s) [GraphRAG is RAG whose retrieval path includes a knowledge graph.](https://assets.ai.engineer/sites/aiecode2025/sha256/de4c0f461b3544162bd42bb178be905765c068bbbf5bd76a5d2f8f2c92736ae9.webp)

What IS GraphRAG?

Very Simple.

GraphRAG is RAG where the R path includes a Knowledge Graph.

[illegible] served 2024

AIE
Microsoft
smol ai
aws

### GraphRAG workflow

The application embeds the user's question, searches a knowledge graph, and adds context by traversing it. It sends the question and retrieved material to an LLM, then returns the answer.

[7:20](https://www.youtube.com/watch?v=knDDGYHnnSI&t=440s) [A user asks an application a question. An embedding generator produces a vector used to retrieve documents and context from a knowledge graph. An LLM summarizes the material and the application returns an answer.](https://assets.ai.engineer/sites/aiecode2025/sha256/604a6533da9992d7d62fb5075bf397c3b9108f7b2f6336a9efc30c19dd294ee6.webp)

Q: What...?
The answer is...
User

1
Your Application

2
“Q”
Embedding Generator
“V”

3
Vector search for V”
Relevant Documents and Context
Knowledge Graph With Vector Support

4
Documents and Context + “Q”
LLM
Summary

5

18  Neo4j Inc. All rights reserved 2024

### GraphRAG Retrieval Patterns

Vector search finds starting nodes, then graph traversal adds context. The results can optionally be ranked using the graph before the top-k documents go to the LLM.

[7:53](https://www.youtube.com/watch?v=knDDGYHnnSI&t=473s) [Vector search finds initial nodes, graph traversal adds context, and optional graph-based ranking selects documents for the LLM.](https://assets.ai.engineer/sites/aiecode2025/sha256/433bb1bb6d24ef77bc93c4161b2194b0a6533351a3e242253329026df37bd026.webp)

GraphRAG Retrieval Patterns

The core GraphRAG pattern is very simple, yet powerful.

1. Do a vector search to find an initial set of nodes
2. Traverse the graph around those nodes to add context
3. (Optional: Rank the results using the graph and pass the top-k documents to the LLM)

19  Neo4j Inc. All rights reserved 2024

### The Benefits of GraphRAG

The speaker turns to when to use GraphRAG and identifies accuracy as its first benefit.

[8:24](https://www.youtube.com/watch?v=knDDGYHnnSI&t=504s) [Section title introducing the benefits of GraphRAG.](https://assets.ai.engineer/sites/aiecode2025/sha256/2269989ab292c14d6e5d547ce0a3c665aaa891d0579414f24277519cc2cd2d2a.webp)

The Benefits of GraphRAG

AIE
Microsoft
smol ai
aws
neo4j

## Full transcript

[0:00](https://www.youtube.com/watch?v=knDDGYHnnSI&t=0s) [on-hold music] I've basically dedicated my professional life towards getting developers to be able to build better applications and build applications better by leveraging not

[0:25](https://www.youtube.com/watch?v=knDDGYHnnSI&t=25s) just individual data points kind of retrieved at once, like one at a time, or summed up or grouped calculated averages, but individual data points connected by relationships. Right? And today I'm gonna talk about that applied in the world of LLMs and GenAI.

[0:44](https://www.youtube.com/watch?v=knDDGYHnnSI&t=44s) So before I do that, though, I'm gonna take a little bit of a detour. I'm gonna talk about search, the evolution of search. Everyone here in this room knows that the vast majority of web searches today are handled with Google.

[0:54](https://www.youtube.com/watch?v=knDDGYHnnSI&t=54s) But some of you know that it didn't start that way. It started this way. Who here recognizes this webpage? Right, yeah. Who here recognizes AltaVista as a name? Like, a few, a few people, right?

[1:05](https://www.youtube.com/watch?v=knDDGYHnnSI&t=65s) Um, back in the mid-'90s, there was dozens of web search company. Dozens plural, like 30, 40, 50 web search companies, and they all used basically the same technology. They use, used keyword-based text search, inverted index-type search, BM25-like, for those of you who know what that means.

[1:22](https://www.youtube.com/watch?v=knDDGYHnnSI&t=82s) And it worked really, really well until it didn't. And the AltaVista effect kicked in which was the notion that you search for something, you got a th- thousand or thousands of hits back, and you had to look through page after page until you found the result that was relevant to you.

[1:40](https://www.youtube.com/watch?v=knDDGYHnnSI&t=100s) The AltaVista effect. You got too much back from the internet. That wasn't a problem in the beginning because m- most of the things you searched for when I went on, onto the internet in the beginning got zero results back 'cause there was no content about that on the internet, right?

[1:55](https://www.youtube.com/watch?v=knDDGYHnnSI&t=115s) But the AltaVista effect, too many search results, was solved by Google. This is Google's press release mid, you know, mid-2000. They talk about a billion URLs they've indexed, right?

[2:06](https://www.youtube.com/watch?v=knDDGYHnnSI&t=126s) But they also talk about the, the technology that they use behind the scenes, the technology called PageRank that delivers the most important search results really early on. In fact, the first, the top 10 blue links on that first page.

[2:20](https://www.youtube.com/watch?v=knDDGYHnnSI&t=140s) Right? That technology, PageRank, is actually a graph algorithm which is ... Actually, it's called Eigenvector centrality. And the innovation that Google did was applying that to the scale of the internet and the scale of the web.

[2:35](https://www.youtube.com/watch?v=knDDGYHnnSI&t=155s) Right? PageRank. That ushered in and created honestly the most valuable company on the planet for, uh, quite, quite some while, the PageRank era. Right? That lasted for about a decade, about a dozen years until in 2012 Google wrote this blog post, which is an amazing blog post, introducing the Knowledge Graph, "Things, not strings," where they said, "You

[3:00](https://www.youtube.com/watch?v=knDDGYHnnSI&t=180s) know what, guys? We've done an upgrade on the backend of our search technology, the biggest one since we invented PageRank, where we're mo- moving away from not just storing the text and the links between the documents, but also the concepts embedded in those documents.

[3:17](https://www.youtube.com/watch?v=knDDGYHnnSI&t=197s) Things, not just strings." And we all know what the Knowledge Graph looks like visually. When you search for something on, on, on Google today, Moscone Center just around the, the corner from here, you're gonna get this little panel right on the right-hand side.

[3:32](https://www.youtube.com/watch?v=knDDGYHnnSI&t=212s) If you look at that panel, it has a combination of unstructured text, in this case from Wikipedia, with structured text. It has the address, the owner of the Moscone building, you know, that kind of stuff.

[3:46](https://www.youtube.com/watch?v=knDDGYHnnSI&t=226s) This thing is backed on the backend by the data structure looking like this, right? It has these concept, the rings that we call nodes that are connected to other nodes through relationships.

[3:58](https://www.youtube.com/watch?v=knDDGYHnnSI&t=238s) And the, both the nodes and the relationships have key value properties. You can attach two, three, a thousand, 10,000 on both the nodes and very importantly also on the relationships.

[4:09](https://www.youtube.com/watch?v=knDDGYHnnSI&t=249s) This is a knowledge graph, and that was the next decade or so, 12 years, of Google's dominance until a few months ago. A few months ago at Google I/O, they took the next step ushered in by the AI Engineers conference a year ago.

[4:27](https://www.youtube.com/watch?v=knDDGYHnnSI&t=267s) Well, not quite, but of course the entire craze around GenAI. And this was one of the example that they did, the classic travel itinerary. They helped me plan out this, this travel.

[4:37](https://www.youtube.com/watch?v=knDDGYHnnSI&t=277s) Everyone here in this room knows that this is backed by an LLM, and it is backed by an LLM in combination with this knowledge graph data structure, GraphRAG. This is ushering in the next era of web search, the GraphRAG era.

[4:54](https://www.youtube.com/watch?v=knDDGYHnnSI&t=294s) What I'm gonna talk to you about today is how can you use ... Well, first of all, should you, and if so, how can you use GraphRAG for your own RAG-based applications?

[5:06](https://www.youtube.com/watch?v=knDDGYHnnSI&t=306s) So what is GraphRAG, right? It is very, very simple. GraphRAG is RAG where on the retrieval path you use a knowledge graph. Very, very simple. It doesn't say you only use a knowledge graph, but you use a, a knowledge graph maybe in combination with other technologies like vector search.

[5:25](https://www.youtube.com/watch?v=knDDGYHnnSI&t=325s) So let's take the classic example of a customer service bot, right? And let's say that you are working at a company that is building Wi-Fi routers, for example, right?

[5:36](https://www.youtube.com/watch?v=knDDGYHnnSI&t=336s) And you have a bunch of support articles, right? And they've been stored in text files, right? And then you are tasked with building a bot that either is-- gives direct end users access to it or your own customer service agents, employees, like, access to this information.

[5:53](https://www.youtube.com/watch?v=knDDGYHnnSI&t=353s) And you know how to do this because you live in the LLM world, in the GenAI world, so you're gonna use RAG for this, right? And so you have that data.

[6:01](https://www.youtube.com/watch?v=knDDGYHnnSI&t=361s) It's text documents. You've added that text onto the properties of particular nodes, right? So you have a node per article, but then you've also said that, "You know what?

[6:11](https://www.youtube.com/watch?v=knDDGYHnnSI&t=371s) This article is about this particular Wi-Fi product," right? You have a relation to that Wi-Fi product, and that Wi-Fi product sits in a hierarchy of other Wi-Fi products, and it's written by this particular customer service engineer, you know, that kind of stuff.

[6:26](https://www.youtube.com/watch?v=knDDGYHnnSI&t=386s) And then the end user has a question. "Hey, my Wi-Fi lights are flashing yellow, and my connection drops. Like, what should I do?" Something like that. I think we all know how we do this.

[6:37](https://www.youtube.com/watch?v=knDDGYHnnSI&t=397s) We vectorize the search, right? We get a, some kind of vector embedding back. We use vector search to get the core documents. But here's where the GraphRAG part kicks in.

[6:47](https://www.youtube.com/watch?v=knDDGYHnnSI&t=407s) You'd get those core articles back which are linked to the nodes. Actually, the text is on the nodes. But then you use the graph to traverse from there and retrieve more context around it.

[6:57](https://www.youtube.com/watch?v=knDDGYHnnSI&t=417s) Maybe it's not just that particular articl- article for that particular Wi-Fi, but something else in that family. Maybe you use the fact that this particular engineer has very highly ranked content, and then you rank that higher, right?

[7:11](https://www.youtube.com/watch?v=knDDGYHnnSI&t=431s) You retrieve more context than what you get out of the ANN-based search from your, from your vector store, and you pass that on to the LLM along with the question.

[7:21](https://www.youtube.com/watch?v=knDDGYHnnSI&t=441s) You get an answer back, and you hand it to the user.

[7:26](https://www.youtube.com/watch?v=knDDGYHnnSI&t=446s) So the core pattern is actually really, really simple but really, really powerful, right? You start with doing a vector search. I think of this almost as a primary key.

[7:36](https://www.youtube.com/watch?v=knDDGYHnnSI&t=456s) It's of course not a primary but almost like a primary key lookup into the graph. You use that vector search. You get a, an initial set of nodes. Then you walk the graph, and you expand that and find relevant content based on the structure of the graph.

[7:52](https://www.youtube.com/watch?v=knDDGYHnnSI&t=472s) Then you take that, and you return it to the LLM, or optionally, maybe that gives you a thousand or ten thousand nodes back, and then you do what Google did.

[8:00](https://www.youtube.com/watch?v=knDDGYHnnSI&t=480s) You rank that. You get the top K based on the structure of the graph. Maybe you even use PageRank, right? You get that. You pass it on to the LLM.

[8:09](https://www.youtube.com/watch?v=knDDGYHnnSI&t=489s) Really, really simple but really, really powerful. And then there's a number more advanced patterns, but that's kinda the next, the next talk I, I'll do in a year. The, like, the, it's more sophisticated graph retrieval patterns, right?

[8:21](https://www.youtube.com/watch?v=knDDGYHnnSI&t=501s) But the core one, very, very simple. Okay.

[8:27](https://www.youtube.com/watch?v=knDDGYHnnSI&t=507s) So if that's what GraphRAG is, what are the benefits of GraphRAG? When should you use it? When should you not use it? The first and most stark benefit is accuracy.

[8:38](https://www.youtube.com/watch?v=knDDGYHnnSI&t=518s) It's directly correlated to the quality of the answer. There's been a ton of research articles about this in the last six months, something like that. I believe the first one was this one by data.world.

[8:49](https://www.youtube.com/watch?v=knDDGYHnnSI&t=529s) I just picked out three at, at, at random here that I, that I, that I like. This is the first one that I know of by data.world, which is a data cataloging company based on a knowledge graph, and they proved out across, I think, forty-three different questions that on average the response quality, the accuracy was three times

[9:09](https://www.youtube.com/watch?v=knDDGYHnnSI&t=549s) higher if they use a knowledge graph in combination with, with vector search.

[9:15](https://www.youtube.com/watch?v=knDDGYHnnSI&t=555s) I love this paper by LinkedIn. Uh, it's, uh, shows a very similar type. I think it's, like, seventy-five percent or seventy-seven percent increase in, in accuracy, um, but it also has a great architecture view, so you can take a, the, the QR code right there and look at that paper which combines various components and also the flow

[9:34](https://www.youtube.com/watch?v=knDDGYHnnSI&t=574s) through that that I thought it was just really pedagogical. Um, but by and large, it's showing the same thing, a little bit of different numbers but significantly higher accuracy when it used graph in combination with vector search.

[9:47](https://www.youtube.com/watch?v=knDDGYHnnSI&t=587s) And then Microsoft did a fantastic blog post and subsequently I think two academic papers, the blog post was in February of this year, where they also talk about the increased quality of response but also beyond that, "Hey, you know what?

[10:02](https://www.youtube.com/watch?v=knDDGYHnnSI&t=602s) GraphRAG enables us to answer another important class of do- of questions that we couldn't even do with vector search alone or baseline vector search," that's what they, "or baseline RAG alone."

[10:15](https://www.youtube.com/watch?v=knDDGYHnnSI&t=615s) So first benefit, higher quality response back. The second one is easier development, and this one is a little bit interesting 'cause there's an asterisk in there because what we hear very clearly from our users is that it's easier to build RAG applications with GraphRAG compared to baseline RAG, but we also hear it's, like, it's actually hard. [laughs]

[10:37](https://www.youtube.com/watch?v=knDDGYHnnSI&t=637s) And what's the nuance there? Well, the nuance is if you already have a knowledge graph up and running. So there's a learning curve where people need to learn, "How do I create the knowledge graph in the first place?"

[10:47](https://www.youtube.com/watch?v=knDDGYHnnSI&t=647s) Once you have that, it's a lot easier, but how do you create that knowledge graph, right? So let's put a little pin in that. If I rush through the next few slides quickly enough, I'm gonna show you hopefully a demo on, on, on, on that, but let's put a little pin in that.

[11:02](https://www.youtube.com/watch?v=knDDGYHnnSI&t=662s) So this is an example. This is from a, um, a very high growth stage fintech company that is very cutting edge in AI, and they started playing around with GraphRAG a few-- about six months ago.

[11:16](https://www.youtube.com/watch?v=knDDGYHnnSI&t=676s) And they took an existing application, and they said, "You know what? We are gonna port this from a vector database to Neo4j," and most of the operations yield a better result.

[11:26](https://www.youtube.com/watch?v=knDDGYHnnSI&t=686s) They can calculate the embeddings on a database level. Getting related actions is as simple as following the relationships between nodes. And this one I love. The cache, and the cache here is their application, they call it the cache, can be visualized.

[11:40](https://www.youtube.com/watch?v=knDDGYHnnSI&t=700s) This is an extremely valuable debugging tool, and in the parenthesis, I actually already fixed a couple of bugs just thanks to this.

[11:48](https://www.youtube.com/watch?v=knDDGYHnnSI&t=708s) Right? Amazing. Like, once you've been able to create that graph, it's a lot easier to build your RAG application. And why is that? Right? So let's talk a little bit about representation.

[12:02](https://www.youtube.com/watch?v=knDDGYHnnSI&t=722s) Let's say we have the phrase in there, "Apples and oranges are both fruit," and we wanna represent that in vector l- space and in graph space. In graph space, we already talked about this.

[12:13](https://www.youtube.com/watch?v=knDDGYHnnSI&t=733s) Apple is a fruit. Orange is a fruit. Pretty easy. That's the representation in graph space. In vector space, it looks like this. Maybe, or maybe this is something else, like we actually don't know.

[12:27](https://www.youtube.com/watch?v=knDDGYHnnSI&t=747s) Two different ways of representing that phrase, and then we can run similarity calculations in different ways using these both, both representations that I'm not gonna go through right now.

[12:38](https://www.youtube.com/watch?v=knDDGYHnnSI&t=758s) We can search in different ways. These are not competing ways of doing it. They're complementary ways of doing it, right? One is not better than the other, except I will make one statement, which is

[12:51](https://www.youtube.com/watch?v=knDDGYHnnSI&t=771s) when you sit down and you write your application, when you build your application, I'm actually gonna make the statement that one of them is superior. This vector space representation is completely opaque to a human being.

[13:04](https://www.youtube.com/watch?v=knDDGYHnnSI&t=784s) But the graph representation is very, very clear. It is explicit. It's deterministic. It's visual. You can see it. You can touch it as you build your applications. This is the, "I already fixed a couple of bugs thanks to this," just by porting it from a vector-only store to GraphRAG, they were able to see and work with the

[13:24](https://www.youtube.com/watch?v=knDDGYHnnSI&t=804s) data, and that is really fricking powerful. That shows up in development time as you're building your applications. It's also showing up for our friends in IT who worry about things maybe that is not directly related to building the application, which is explainability, which is auditability, which is governance.

[13:47](https://www.youtube.com/watch?v=knDDGYHnnSI&t=827s) That explicit data structure has knock-on effects over there that are really, really powerful once you're up and running in production and you need to build- be able to explain why something happened.

[14:02](https://www.youtube.com/watch?v=knDDGYHnnSI&t=842s) So higher accuracy, better answers, easier to build once you're through the hump of creating the knowledge graph, and then increased explainability and governance for IT and the business, right?

[14:14](https://www.youtube.com/watch?v=knDDGYHnnSI&t=854s) Those are the three things. So how do you get started with, with GraphRAG? Well, I've talked a lot about this already. Like, how do you create the knowledge graph in the first place?

[14:24](https://www.youtube.com/watch?v=knDDGYHnnSI&t=864s) So a little bit of nuance here. So basically, there are three types of data out in the world that I care about when I think about knowledge graph creation.

[14:32](https://www.youtube.com/watch?v=knDDGYHnnSI&t=872s) The first one is structured data. So this is your data in your Snowflake or something like that, or Postgres, right?

[14:40](https://www.youtube.com/watch?v=knDDGYHnnSI&t=880s) The other one is unstructured data, PDF files, raw text from a webpage. And the other one, the third one is mixed. People tend to call this semi-structured, but it's not.

[14:49](https://www.youtube.com/watch?v=knDDGYHnnSI&t=889s) Hit me up afterwards and I'll tell you why it's not. But basically what this one is, is structured data where some of the fields are long-form text, right? Basically, we're great in the first bucket in the graph world.

[15:02](https://www.youtube.com/watch?v=knDDGYHnnSI&t=902s) It's very easy to go from Snowflake or Postgres or MySQL or Oracle into a property graph model.

[15:10](https://www.youtube.com/watch?v=knDDGYHnnSI&t=910s) The unstructured one is really fricking hard, right? It's hard to do in theory. It's also had immature tooling for a long time. The middle one is actually where the majority of at least enterprise production use cases are in the real world.

[15:29](https://www.youtube.com/watch?v=knDDGYHnnSI&t=929s) So, man, two and a half minutes. This is rough. Um, there are two types of graphs, and I'm not gonna talk about them. I wanna talk about them. Lexical graphs and domain graphs is actually really relevant, but I really wanna get to this demo.

[15:42](https://www.youtube.com/watch?v=knDDGYHnnSI&t=942s) So I've talked about creating graphs with unstructured information. So we just built this new tool that we launched just a few weeks ago called the Knowledge Graph Builder, and you see it here.

[15:54](https://www.youtube.com/watch?v=knDDGYHnnSI&t=954s) I... Can, can you see the screen okay? Yeah. So basically here you can drag and drop your PDF files. You can put in YouTube links, Wikipedia links. You can point it to your kind of [REDACTED:username] service bucket, right?

[16:06](https://www.youtube.com/watch?v=knDDGYHnnSI&t=966s) And it's gonna extract the data from there and create the graph. So here I added a few things. I added, um, a PDF of Andrew Ng's newsletter, The Batch.

[16:17](https://www.youtube.com/watch?v=knDDGYHnnSI&t=977s) I added the Wikipedia page for OpenAI, and I added the YouTube from swyx and Alessio's, you know, the Four Wars, uh, Latent Space podcast. So I added all that, and I uploaded it into this Knowledge Graph Builder, and when I do that, it creates if-- Let's see here.

[16:36](https://www.youtube.com/watch?v=knDDGYHnnSI&t=996s) I knew the Ethernet connection was gonna do it. It auto-magically created a little knowledge graph if it renders. Wait for it. I- it says one minute here. [laughs] So it better render pretty soon.

[16:53](https://www.youtube.com/watch?v=knDDGYHnnSI&t=1013s) All right. Let me do this again. Please work. [laughs]

[17:00](https://www.youtube.com/watch?v=knDDGYHnnSI&t=1020s) Oh, no. [laughs] Yeah. Oh, man, my Wi-Fi isn't... Oh. [laughs] Oh, crap. Oh, no. [laughs]

[17:11](https://www.youtube.com/watch?v=knDDGYHnnSI&t=1031s) And it's ticking down. All right. Wait for it. Wait for it. All right.

[17:20](https://www.youtube.com/watch?v=knDDGYHnnSI&t=1040s) You can do it. Didn't do it. And I was, like, trying to keep it alive in the, in the thing too. All right. Okay. Let's see. I think we are here, and then it says, "Show me a graph," and it's not gonna show me the graph.

[17:38](https://www.youtube.com/watch?v=knDDGYHnnSI&t=1058s) Oh, yeah, it will. Come on. I think we can do it. All right. Yes. [clapping] [cheering]

[17:45](https://www.youtube.com/watch?v=knDDGYHnnSI&t=1065s) So what we have here, check this shit out. I would love to sit here and just drink in your applause, but we need to look at this data. So check this out.

[17:54](https://www.youtube.com/watch?v=knDDGYHnnSI&t=1074s) This is the document, the Four Wars document. Here are the various chunks, and then you can take a chunk, and you can expand that. This I put in the, the, the embedding, and you can-- I'll zoom out here, and you can see that it takes the, the logical concept elements out of that chunk, right?

[18:14](https://www.youtube.com/watch?v=knDDGYHnnSI&t=1094s) Machine learning. They talk about something that is developed in a similar fashion. I don't even know. There's some company there, right? And you get that entire graph of all this information.

[18:26](https://www.youtube.com/watch?v=knDDGYHnnSI&t=1106s) On top of that, I really don't have time to show it, but there's also-- I really don't have time to show it. [laughs] There's a chatbot in here that you can use, and you can introspect the result that gets back.

[18:37](https://www.youtube.com/watch?v=knDDGYHnnSI&t=1117s) I'll-- One more second. Take out your phones. If you think this looks cool, take a photo of this QR code, and you're gonna have an amazing landing page where you have access to all of this information.

[18:49](https://www.youtube.com/watch?v=knDDGYHnnSI&t=1129s) You can get up and running yourself. Thank you for the additional minute. Thank you, Emil. Thanks, everyone, for paying attention. [clapping] [upbeat music]
