SlideShare a Scribd company logo
Knowledge Graphs
and Generative AI
Data Science Solutions
Architect
Neo4j
1
Dr. Katie Roberts
© 2023 Neo4j, Inc. All ri hts reserved.
Agenda
Groundin LLMs with Knowled e
Graphs
● Knowled e Graphs
● Graph Data Science
● Semantic Search
Neo4j Grounded Chatbot Demo
2
Katie Roberts
Data Science Solution Architect
© 2023 Neo4j, Inc. All ri hts reserved. 3
LLMs Give Us an Amazing
Opportunity to:
Automate data
retrieval tasks
Improve customer
service experiences
Expedite readin ,
understandin , & summarizin
2
Generate
content & code
4
1
3
© 2023 Neo4j, Inc. All ri hts reserved.
Example…
Q: What was the impact o Hurricane Lee?
● A: Hurricane Lee was a lon -lastin tropical cyclone that
ormed in the Atlantic durin the 2017 hurricane season…..
4
© 2023 Neo4j, Inc. All ri hts reserved. 5
But There Are Challenges…
Knowledge
cut-off
1
Reasonable answers,
not always accurate
Can inherit bias throu h
trainin data
2 3
Lack of enterprise
domain knowledge
4
Inability to veri y or
attribute sources
5
© 2023 Neo4j, Inc. All ri hts reserved. 6
How can you take advantage of this
massive opportunity while
overcoming these challenges?
© 2023 Neo4j, Inc. All ri hts reserved. 7
Use a Knowledge Graph to
Ground LLMs
What was the
impact o
Hurricane
Lee?
Hurricane Lee
may impact
distribution
networks in
the ollowin
areas: MA, NY,
NH, ME…
© 2023 Neo4j, Inc. All ri hts reserved. 8
Grounding with Neo4j
Knowledge Graphs
Connect Enrich Consume
Context rich,
connected view o
your data that
enables easier
decision makin
Enhance your data
with raph data
science, text
embeddin s, and
additional derived
context
Ground responses
with in ormation and
context in the raph
Improve search
relevance combinin
vector search and
raph traversals
© 2023 Neo4j, Inc. All ri hts reserved.
Connected Data
9
With Knowled e Graphs
© 2023 Neo4j, Inc. All ri hts reserved.
Knowledge Graphs
10
Structured
Unstructured
Ontolo ies
Graph Al orithms and
Graph Queries
Semantics,
Derived Relationships and
Additional Context
Natural
Relationships
© 2023 Neo4j, Inc. All ri hts reserved. 11
What can you do with a knowledge graph?
Finance
How many fla ed accounts are
in the applicant’s network 4+
hops out?
How many lo in / account
variables in common?
Add these metrics to your
approval process
What completes the
connections rom enes to
diseases to tar ets?
What enes can be reached 4+
hops out rom a known dru
tar et?
What mechanisms in common
are there between two dru s?
Collaborative filterin : users
who bou ht X, also bou ht Y
What items make you more
likely to buy additional items in
subsequent transactions?
Traverse hierarchies-what items
are similar 4+ hops out?
Li e Sciences
Marketin &
Recommendations
© 2023 Neo4j, Inc. All ri hts reserved.
Enrich
12
With Cypher Patterns, Graph Data Science &
Text Embeddin s
© 2023 Neo4j, Inc. All ri hts reserved.
Graph Enrichment
13
Human-cra ted query, human-readable result
MATCH (p1:Person)-[:ENEMY]->(:Person)<-[:ENEMY]-(p2:PERSON)
MERGE (p1)-[:FRIEND]->(p2)
AI-learned ormula, machine-readable result
Predefined ormula, human-readable result
PageRank(Emil) = 13.25
PageRank(Amy) = 4.83
PageRank(Alicia) = 4.75
Node2Vec(Emil) =[5.4 5.1 2.4 4.5 3.1]
Node2Vec(Amy) =[2.8 1.8 7.2 0.9 3.0]
Node2Vec(Katie) =[1.4 5.2 4.4 3.9 3.2]
Queries
Al orithms
Embeddin s
Machine
Learnin
Workflows
Train ML models
based on results
© 2023 Neo4j, Inc. All ri hts reserved.
What Are Graph Algorithms?
14
© 2023 Neo4j, Inc. All ri hts reserved. 15
Insights From Graph Algorithms
Outliers, Influencers, Vulnerabilities,..
Recommendations, Homophily, Outliers,..
Recommendations, What-i Analysis, Disambi uation,..
Shortest Path, Optimal path, Route Optimization,...
Link prediction, Recommendations, Next-Best Action,..
Centrality
Pathfinding
Community
Detection
Similarity
Embeddings
Link Prediction
Dimensionality Reduction, Representation Learnin , ..
© 2023 Neo4j, Inc. All ri hts reserved.
Text Embedding Vectors for
Semantic Search
16
Given a question, find the most relevant documents based on a similarity metric
(such as Cosine Similarity) between vector o the question and vectors o
contents.
Movin rom keyword search to similarity (semantic) search.
Q: what is a text
embeddin ?
abstractId similarity
456 0.923445
22 0.892114
… ...
Top K by similarity
© 2023 Neo4j, Inc. All ri hts reserved. 17
Graph Data Science Journey
Find the patterns you’re
looking for in connected data
Identify associations,
anomalies, and trends using
unsupervised machine learning
Learn features in your graph
that you don’t even know
are important yet
Knowled e Graphs
Graph Al orithms
Graph Native ML
→
→
© 2023 Neo4j, Inc. All ri hts reserved.
Consume
18
With LLMs and Semantic Search
© 2023 Neo4j, Inc. All ri hts reserved. 19
Semantic Search Journey
Vector Similarity
Search
Graph Traversals &
Pattern Matchin
Knowled e Graph
In erence & ML
Find relevant documents and
content or user queries
Find people, places, and thin s
associated to content. Identi y
patterns in connected data.
Further improve search
relevance and insi hts by
enhancin your Knowled e
Graph.
Use raph al orithms and ML
to discover new relationships,
entities, and roups.
Vector Database Graph Database
Neo4j
Graph Data Science
© 2023 Neo4j, Inc. All ri hts reserved. 20
Knowledge Retrieval with Neo4j
© 2023 Neo4j, Inc. All ri hts reserved.
RAG (Retrieval Augmented Generation)
Pattern with Neo4j
21
Neo4j
LLM API
User
Cypher Prompt + Relevant
In ormation
Prompt Response
Relevant Results
Retrieve relevant results rom Neo4j
usin LLM to enerate embeddin s
and/or Cypher
2
3
1
1
2
3
Combine relevant results with
prompt
Instruct LLM to only use the relevant
results to enerate response
LLM API
Embeddin s and/or
Cypher Generation
Improved ACCURACY and RELEVANCE o
responses
E. . What is the impact o Hurricane
Calvin?
Hurricane Calvin caused minor floodin in
Hawaii….
vs…
50 policyholders may be at risk o property
dama e due to Hurricane Calvin.
© 2023 Neo4j, Inc. All ri hts reserved. 22
Q: Does claim X
have any
association with
previous
fraudulent
parties?
Q: Provide a list
of claims with
damage
amounts
>$100,000
Q: What
policyholders
may be impacted
by Hurricane
Calvin?
Knowledge Retrieval with Neo4j
© 2023 Neo4j, Inc. All ri hts reserved.
Demo Intro
23
LLM Chatbot
© 2023 Neo4j, Inc. All ri hts reserved.
Typical Business Resilience Data
Analyze business impact o
● so tware & OS vulnerabilities,
● hardware & so tware up rades,
● buildin / eo raphic disasters
● chan es to business data ormats
…across mission critical applications and
business locations
24
hierarchies, flows,
relationships…
© 2023 Neo4j, Inc. All ri hts reserved.
Actual Data Model
25
CVE Data
Business Data
Elements
Vendors,So tware
Business Tasks
Application Instances
Data Trans ers
People/Roles
Locations
IT Assets
© 2023 Neo4j, Inc. All ri hts reserved.
LangChain
Demo
Application
● Translates En lish to
Cypher
● Consumption usin LLM
model with ew shot
promptin
● Data au mentation rom
Neo4j response
26
© 2023 Neo4j, Inc. All ri hts reserved. 27
Demo
© 2023 Neo4j, Inc. All ri hts reserved.
Neo4j Database
30
API
Knowled e Graph
Graph Data Science
Graph DB
Knowled e Apps
In ormation Extraction
& In estion
Structured
Unstructured
Ontolo ies
GCP Vertex AI
Data
Sources API Layer
Customer Service
Ticket Tria in
Recommendations
News Content &
Discovery
Enterprise Knowled e
Search
Patient Prioritization
Clinical Decision
Support Systems
Pharmacovi ilance
Health Assistants
FAQ Bots
LLMs
Amazon
Sa eMaker
AzureML
Bloom
Aura Enterprise Edition LLMs
API
Step 1: Capture Knowled e Step2: Enrich Step 3: Semantic & Contextual Search
© 2023 Neo4j, Inc. All ri hts reserved. 31
Neo4j Enriches All Phases of an
AI Ecosystem
Knowled e Graphs Graph Feature
En ineerin and Graph
ML
Graph Analytics,
Investi ations and
Counter actuals
Inte rations and
Knowled e Graphs or
Heuristic AI
Connect Analyze Capitalize
Interpret
Neo4j Neo4j GDS Neo4j Bloom Neo4j Connectors
© 2023 Neo4j, Inc. All ri hts reserved.
Thank
You!
katie.roberts@neo4j
32

More Related Content

What's hot (20)

PPTX
Neo4j Graph Use Cases, Bruno Ungermann, Neo4j
Neo4j
 
PDF
Neo4j y GenAI
Neo4j
 
PPTX
Volvo Cars - Retrieving Safety Insights using Graphs (GraphSummit Stockholm 2...
Neo4j
 
PDF
All in AI: LLM Landscape & RAG in 2024 with Mark Ryan (Google) & Jerry Liu (L...
Daniel Zivkovic
 
PPTX
Demystifying Graph Neural Networks
Neo4j
 
PDF
Neo4j : Graphes de Connaissance, IA et LLMs
Neo4j
 
PDF
Optimizing Your Supply Chain with the Neo4j Graph
Neo4j
 
PPTX
Get Started with the Most Advanced Edition Yet of Neo4j Graph Data Science
Neo4j
 
PPTX
Neo4j GraphSummit London March 2023 Emil Eifrem Keynote.pptx
Neo4j
 
PDF
Generative AI for the rest of us
Massimo Ferre'
 
PDF
Knowledge Graphs - The Power of Graph-Based Search
Neo4j
 
PPTX
Elsevier: Empowering Knowledge Discovery in Research with Graphs
Neo4j
 
PDF
Introduction to Knowledge Graphs: Data Summit 2020
Enterprise Knowledge
 
PDF
Data Modeling with Neo4j
Neo4j
 
PDF
Neo4j: The path to success with Graph Database and Graph Data Science
Neo4j
 
PDF
Slides: Knowledge Graphs vs. Property Graphs
DATAVERSITY
 
PDF
Modeling Cybersecurity with Neo4j, Based on Real-Life Data Insights
Neo4j
 
PDF
Modern Data Challenges require Modern Graph Technology
Neo4j
 
PDF
The three layers of a knowledge graph and what it means for authoring, storag...
Neo4j
 
PDF
Knowledge Graphs as a Pillar to AI
Enterprise Knowledge
 
Neo4j Graph Use Cases, Bruno Ungermann, Neo4j
Neo4j
 
Neo4j y GenAI
Neo4j
 
Volvo Cars - Retrieving Safety Insights using Graphs (GraphSummit Stockholm 2...
Neo4j
 
All in AI: LLM Landscape & RAG in 2024 with Mark Ryan (Google) & Jerry Liu (L...
Daniel Zivkovic
 
Demystifying Graph Neural Networks
Neo4j
 
Neo4j : Graphes de Connaissance, IA et LLMs
Neo4j
 
Optimizing Your Supply Chain with the Neo4j Graph
Neo4j
 
Get Started with the Most Advanced Edition Yet of Neo4j Graph Data Science
Neo4j
 
Neo4j GraphSummit London March 2023 Emil Eifrem Keynote.pptx
Neo4j
 
Generative AI for the rest of us
Massimo Ferre'
 
Knowledge Graphs - The Power of Graph-Based Search
Neo4j
 
Elsevier: Empowering Knowledge Discovery in Research with Graphs
Neo4j
 
Introduction to Knowledge Graphs: Data Summit 2020
Enterprise Knowledge
 
Data Modeling with Neo4j
Neo4j
 
Neo4j: The path to success with Graph Database and Graph Data Science
Neo4j
 
Slides: Knowledge Graphs vs. Property Graphs
DATAVERSITY
 
Modeling Cybersecurity with Neo4j, Based on Real-Life Data Insights
Neo4j
 
Modern Data Challenges require Modern Graph Technology
Neo4j
 
The three layers of a knowledge graph and what it means for authoring, storag...
Neo4j
 
Knowledge Graphs as a Pillar to AI
Enterprise Knowledge
 

Similar to Knowledge Graphs and Generative AI (20)

PPTX
The art of the possible with graph technology_Neo4j GraphSummit Dublin 2023.pptx
Neo4j
 
PDF
The Art of the Possible with Graph Technology
Neo4j
 
PDF
Keynote: Art of the Possible - Moore
Neo4j
 
PDF
Keynote Presentation at GraphTalk Oslo 2023
Neo4j
 
PDF
Keynote: Art of the Possible - Chandra Rangan
Neo4j
 
PDF
The Data Platform for Today's Intelligent Applications.pdf
Neo4j
 
PDF
The Art of the Possible with Graph Technology
Neo4j
 
PPTX
GraphSummit Paris - The art of the possible with Graph Technology
Neo4j
 
PDF
Adobe Substance 3D Designer 14.1.2.8986
alihamzakpa070
 
PPTX
The Art of the Possible with Graph - Sudhir Hasbe - GraphSummit London 14 Nov...
Neo4j
 
PPTX
Neo4j GraphSummit Copenhagen - The Art Of The Possible With Graph Technology ...
Neo4j
 
PDF
Graphs for Government - Enhancing Public Services in the Age of AI
Neo4j
 
PDF
Neo4j : L’art des Possibles avec la Technologie des Graphes
Neo4j
 
PDF
Matinée GenAI & GraphRAG Paris - Décembre 24
Neo4j
 
PDF
Workshop - Architecting Innovative Graph Applications- GraphSummit Milan
Neo4j
 
PDF
Are You Underestimating the Value Within Your Data? A conversation about grap...
Neo4j
 
PDF
The Knowledge Graph Explosion
Neo4j
 
PDF
Ryujinx Emulator Crack Version Free Download
alihamzakpa080
 
PDF
MiniTool Partition Wizard 12.8 Crack License Key LATEST
hashhshs786
 
PDF
Adobe Premiere Pro Crack / Full Version / Free Download
hashhshs786
 
The art of the possible with graph technology_Neo4j GraphSummit Dublin 2023.pptx
Neo4j
 
The Art of the Possible with Graph Technology
Neo4j
 
Keynote: Art of the Possible - Moore
Neo4j
 
Keynote Presentation at GraphTalk Oslo 2023
Neo4j
 
Keynote: Art of the Possible - Chandra Rangan
Neo4j
 
The Data Platform for Today's Intelligent Applications.pdf
Neo4j
 
The Art of the Possible with Graph Technology
Neo4j
 
GraphSummit Paris - The art of the possible with Graph Technology
Neo4j
 
Adobe Substance 3D Designer 14.1.2.8986
alihamzakpa070
 
The Art of the Possible with Graph - Sudhir Hasbe - GraphSummit London 14 Nov...
Neo4j
 
Neo4j GraphSummit Copenhagen - The Art Of The Possible With Graph Technology ...
Neo4j
 
Graphs for Government - Enhancing Public Services in the Age of AI
Neo4j
 
Neo4j : L’art des Possibles avec la Technologie des Graphes
Neo4j
 
Matinée GenAI & GraphRAG Paris - Décembre 24
Neo4j
 
Workshop - Architecting Innovative Graph Applications- GraphSummit Milan
Neo4j
 
Are You Underestimating the Value Within Your Data? A conversation about grap...
Neo4j
 
The Knowledge Graph Explosion
Neo4j
 
Ryujinx Emulator Crack Version Free Download
alihamzakpa080
 
MiniTool Partition Wizard 12.8 Crack License Key LATEST
hashhshs786
 
Adobe Premiere Pro Crack / Full Version / Free Download
hashhshs786
 
Ad

More from Neo4j (20)

PDF
GraphSummit Singapore Master Deck - May 20, 2025
Neo4j
 
PPTX
Graphs & GraphRAG - Essential Ingredients for GenAI
Neo4j
 
PPTX
Neo4j Knowledge for Customer Experience.pptx
Neo4j
 
PPTX
GraphTalk New Zealand - The Art of The Possible.pptx
Neo4j
 
PDF
Neo4j: The Art of the Possible with Graph
Neo4j
 
PDF
Smarter Knowledge Graphs For Public Sector
Neo4j
 
PDF
GraphRAG and Knowledge Graphs Exploring AI's Future
Neo4j
 
PDF
ANZ Presentation: GraphSummit Melbourne 2024
Neo4j
 
PDF
Google Cloud Presentation GraphSummit Melbourne 2024: Building Generative AI ...
Neo4j
 
PDF
Telstra Presentation GraphSummit Melbourne: Optimising Business Outcomes with...
Neo4j
 
PDF
Hands-On GraphRAG Workshop: GraphSummit Melbourne 2024
Neo4j
 
PDF
Démonstration Digital Twin Building Wire Management
Neo4j
 
PDF
Swiss Life - Les graphes au service de la détection de fraude dans le domaine...
Neo4j
 
PDF
Démonstration Supply Chain - GraphTalk Paris
Neo4j
 
PDF
The Art of Possible - GraphTalk Paris Opening Session
Neo4j
 
PPTX
How Siemens bolstered supply chain resilience with graph-powered AI insights ...
Neo4j
 
PDF
Knowledge Graphs for AI-Ready Data and Enterprise Deployment - Gartner IT Sym...
Neo4j
 
PDF
Neo4j Graph Data Modelling Session - GraphTalk
Neo4j
 
PDF
Neo4j: The Art of Possible with Graph Technology
Neo4j
 
PDF
Astra Zeneca: How KG and GenAI Revolutionise Biopharma and Life Sciences
Neo4j
 
GraphSummit Singapore Master Deck - May 20, 2025
Neo4j
 
Graphs & GraphRAG - Essential Ingredients for GenAI
Neo4j
 
Neo4j Knowledge for Customer Experience.pptx
Neo4j
 
GraphTalk New Zealand - The Art of The Possible.pptx
Neo4j
 
Neo4j: The Art of the Possible with Graph
Neo4j
 
Smarter Knowledge Graphs For Public Sector
Neo4j
 
GraphRAG and Knowledge Graphs Exploring AI's Future
Neo4j
 
ANZ Presentation: GraphSummit Melbourne 2024
Neo4j
 
Google Cloud Presentation GraphSummit Melbourne 2024: Building Generative AI ...
Neo4j
 
Telstra Presentation GraphSummit Melbourne: Optimising Business Outcomes with...
Neo4j
 
Hands-On GraphRAG Workshop: GraphSummit Melbourne 2024
Neo4j
 
Démonstration Digital Twin Building Wire Management
Neo4j
 
Swiss Life - Les graphes au service de la détection de fraude dans le domaine...
Neo4j
 
Démonstration Supply Chain - GraphTalk Paris
Neo4j
 
The Art of Possible - GraphTalk Paris Opening Session
Neo4j
 
How Siemens bolstered supply chain resilience with graph-powered AI insights ...
Neo4j
 
Knowledge Graphs for AI-Ready Data and Enterprise Deployment - Gartner IT Sym...
Neo4j
 
Neo4j Graph Data Modelling Session - GraphTalk
Neo4j
 
Neo4j: The Art of Possible with Graph Technology
Neo4j
 
Astra Zeneca: How KG and GenAI Revolutionise Biopharma and Life Sciences
Neo4j
 
Ad

Recently uploaded (20)

PDF
CIFDAQ Market Insights for July 7th 2025
CIFDAQ
 
PDF
Chris Elwell Woburn, MA - Passionate About IT Innovation
Chris Elwell Woburn, MA
 
PPTX
COMPARISON OF RASTER ANALYSIS TOOLS OF QGIS AND ARCGIS
Sharanya Sarkar
 
PDF
How Startups Are Growing Faster with App Developers in Australia.pdf
India App Developer
 
PDF
From Code to Challenge: Crafting Skill-Based Games That Engage and Reward
aiyshauae
 
PDF
HCIP-Data Center Facility Deployment V2.0 Training Material (Without Remarks ...
mcastillo49
 
PDF
Blockchain Transactions Explained For Everyone
CIFDAQ
 
PDF
Newgen Beyond Frankenstein_Build vs Buy_Digital_version.pdf
darshakparmar
 
PDF
NewMind AI - Journal 100 Insights After The 100th Issue
NewMind AI
 
PDF
New from BookNet Canada for 2025: BNC BiblioShare - Tech Forum 2025
BookNet Canada
 
PDF
LLMs.txt: Easily Control How AI Crawls Your Site
Keploy
 
PDF
Presentation - Vibe Coding The Future of Tech
yanuarsinggih1
 
PPTX
Webinar: Introduction to LF Energy EVerest
DanBrown980551
 
PDF
"Beyond English: Navigating the Challenges of Building a Ukrainian-language R...
Fwdays
 
PPTX
Q2 FY26 Tableau User Group Leader Quarterly Call
lward7
 
PDF
Fl Studio 24.2.2 Build 4597 Crack for Windows Free Download 2025
faizk77g
 
PDF
What Makes Contify’s News API Stand Out: Key Features at a Glance
Contify
 
PDF
Empower Inclusion Through Accessible Java Applications
Ana-Maria Mihalceanu
 
PDF
POV_ Why Enterprises Need to Find Value in ZERO.pdf
darshakparmar
 
PDF
Mastering Financial Management in Direct Selling
Epixel MLM Software
 
CIFDAQ Market Insights for July 7th 2025
CIFDAQ
 
Chris Elwell Woburn, MA - Passionate About IT Innovation
Chris Elwell Woburn, MA
 
COMPARISON OF RASTER ANALYSIS TOOLS OF QGIS AND ARCGIS
Sharanya Sarkar
 
How Startups Are Growing Faster with App Developers in Australia.pdf
India App Developer
 
From Code to Challenge: Crafting Skill-Based Games That Engage and Reward
aiyshauae
 
HCIP-Data Center Facility Deployment V2.0 Training Material (Without Remarks ...
mcastillo49
 
Blockchain Transactions Explained For Everyone
CIFDAQ
 
Newgen Beyond Frankenstein_Build vs Buy_Digital_version.pdf
darshakparmar
 
NewMind AI - Journal 100 Insights After The 100th Issue
NewMind AI
 
New from BookNet Canada for 2025: BNC BiblioShare - Tech Forum 2025
BookNet Canada
 
LLMs.txt: Easily Control How AI Crawls Your Site
Keploy
 
Presentation - Vibe Coding The Future of Tech
yanuarsinggih1
 
Webinar: Introduction to LF Energy EVerest
DanBrown980551
 
"Beyond English: Navigating the Challenges of Building a Ukrainian-language R...
Fwdays
 
Q2 FY26 Tableau User Group Leader Quarterly Call
lward7
 
Fl Studio 24.2.2 Build 4597 Crack for Windows Free Download 2025
faizk77g
 
What Makes Contify’s News API Stand Out: Key Features at a Glance
Contify
 
Empower Inclusion Through Accessible Java Applications
Ana-Maria Mihalceanu
 
POV_ Why Enterprises Need to Find Value in ZERO.pdf
darshakparmar
 
Mastering Financial Management in Direct Selling
Epixel MLM Software
 

Knowledge Graphs and Generative AI

  • 1. Knowledge Graphs and Generative AI Data Science Solutions Architect Neo4j 1 Dr. Katie Roberts
  • 2. © 2023 Neo4j, Inc. All ri hts reserved. Agenda Groundin LLMs with Knowled e Graphs ● Knowled e Graphs ● Graph Data Science ● Semantic Search Neo4j Grounded Chatbot Demo 2 Katie Roberts Data Science Solution Architect
  • 3. © 2023 Neo4j, Inc. All ri hts reserved. 3 LLMs Give Us an Amazing Opportunity to: Automate data retrieval tasks Improve customer service experiences Expedite readin , understandin , & summarizin 2 Generate content & code 4 1 3
  • 4. © 2023 Neo4j, Inc. All ri hts reserved. Example… Q: What was the impact o Hurricane Lee? ● A: Hurricane Lee was a lon -lastin tropical cyclone that ormed in the Atlantic durin the 2017 hurricane season….. 4
  • 5. © 2023 Neo4j, Inc. All ri hts reserved. 5 But There Are Challenges… Knowledge cut-off 1 Reasonable answers, not always accurate Can inherit bias throu h trainin data 2 3 Lack of enterprise domain knowledge 4 Inability to veri y or attribute sources 5
  • 6. © 2023 Neo4j, Inc. All ri hts reserved. 6 How can you take advantage of this massive opportunity while overcoming these challenges?
  • 7. © 2023 Neo4j, Inc. All ri hts reserved. 7 Use a Knowledge Graph to Ground LLMs What was the impact o Hurricane Lee? Hurricane Lee may impact distribution networks in the ollowin areas: MA, NY, NH, ME…
  • 8. © 2023 Neo4j, Inc. All ri hts reserved. 8 Grounding with Neo4j Knowledge Graphs Connect Enrich Consume Context rich, connected view o your data that enables easier decision makin Enhance your data with raph data science, text embeddin s, and additional derived context Ground responses with in ormation and context in the raph Improve search relevance combinin vector search and raph traversals
  • 9. © 2023 Neo4j, Inc. All ri hts reserved. Connected Data 9 With Knowled e Graphs
  • 10. © 2023 Neo4j, Inc. All ri hts reserved. Knowledge Graphs 10 Structured Unstructured Ontolo ies Graph Al orithms and Graph Queries Semantics, Derived Relationships and Additional Context Natural Relationships
  • 11. © 2023 Neo4j, Inc. All ri hts reserved. 11 What can you do with a knowledge graph? Finance How many fla ed accounts are in the applicant’s network 4+ hops out? How many lo in / account variables in common? Add these metrics to your approval process What completes the connections rom enes to diseases to tar ets? What enes can be reached 4+ hops out rom a known dru tar et? What mechanisms in common are there between two dru s? Collaborative filterin : users who bou ht X, also bou ht Y What items make you more likely to buy additional items in subsequent transactions? Traverse hierarchies-what items are similar 4+ hops out? Li e Sciences Marketin & Recommendations
  • 12. © 2023 Neo4j, Inc. All ri hts reserved. Enrich 12 With Cypher Patterns, Graph Data Science & Text Embeddin s
  • 13. © 2023 Neo4j, Inc. All ri hts reserved. Graph Enrichment 13 Human-cra ted query, human-readable result MATCH (p1:Person)-[:ENEMY]->(:Person)<-[:ENEMY]-(p2:PERSON) MERGE (p1)-[:FRIEND]->(p2) AI-learned ormula, machine-readable result Predefined ormula, human-readable result PageRank(Emil) = 13.25 PageRank(Amy) = 4.83 PageRank(Alicia) = 4.75 Node2Vec(Emil) =[5.4 5.1 2.4 4.5 3.1] Node2Vec(Amy) =[2.8 1.8 7.2 0.9 3.0] Node2Vec(Katie) =[1.4 5.2 4.4 3.9 3.2] Queries Al orithms Embeddin s Machine Learnin Workflows Train ML models based on results
  • 14. © 2023 Neo4j, Inc. All ri hts reserved. What Are Graph Algorithms? 14
  • 15. © 2023 Neo4j, Inc. All ri hts reserved. 15 Insights From Graph Algorithms Outliers, Influencers, Vulnerabilities,.. Recommendations, Homophily, Outliers,.. Recommendations, What-i Analysis, Disambi uation,.. Shortest Path, Optimal path, Route Optimization,... Link prediction, Recommendations, Next-Best Action,.. Centrality Pathfinding Community Detection Similarity Embeddings Link Prediction Dimensionality Reduction, Representation Learnin , ..
  • 16. © 2023 Neo4j, Inc. All ri hts reserved. Text Embedding Vectors for Semantic Search 16 Given a question, find the most relevant documents based on a similarity metric (such as Cosine Similarity) between vector o the question and vectors o contents. Movin rom keyword search to similarity (semantic) search. Q: what is a text embeddin ? abstractId similarity 456 0.923445 22 0.892114 … ... Top K by similarity
  • 17. © 2023 Neo4j, Inc. All ri hts reserved. 17 Graph Data Science Journey Find the patterns you’re looking for in connected data Identify associations, anomalies, and trends using unsupervised machine learning Learn features in your graph that you don’t even know are important yet Knowled e Graphs Graph Al orithms Graph Native ML → →
  • 18. © 2023 Neo4j, Inc. All ri hts reserved. Consume 18 With LLMs and Semantic Search
  • 19. © 2023 Neo4j, Inc. All ri hts reserved. 19 Semantic Search Journey Vector Similarity Search Graph Traversals & Pattern Matchin Knowled e Graph In erence & ML Find relevant documents and content or user queries Find people, places, and thin s associated to content. Identi y patterns in connected data. Further improve search relevance and insi hts by enhancin your Knowled e Graph. Use raph al orithms and ML to discover new relationships, entities, and roups. Vector Database Graph Database Neo4j Graph Data Science
  • 20. © 2023 Neo4j, Inc. All ri hts reserved. 20 Knowledge Retrieval with Neo4j
  • 21. © 2023 Neo4j, Inc. All ri hts reserved. RAG (Retrieval Augmented Generation) Pattern with Neo4j 21 Neo4j LLM API User Cypher Prompt + Relevant In ormation Prompt Response Relevant Results Retrieve relevant results rom Neo4j usin LLM to enerate embeddin s and/or Cypher 2 3 1 1 2 3 Combine relevant results with prompt Instruct LLM to only use the relevant results to enerate response LLM API Embeddin s and/or Cypher Generation Improved ACCURACY and RELEVANCE o responses E. . What is the impact o Hurricane Calvin? Hurricane Calvin caused minor floodin in Hawaii…. vs… 50 policyholders may be at risk o property dama e due to Hurricane Calvin.
  • 22. © 2023 Neo4j, Inc. All ri hts reserved. 22 Q: Does claim X have any association with previous fraudulent parties? Q: Provide a list of claims with damage amounts >$100,000 Q: What policyholders may be impacted by Hurricane Calvin? Knowledge Retrieval with Neo4j
  • 23. © 2023 Neo4j, Inc. All ri hts reserved. Demo Intro 23 LLM Chatbot
  • 24. © 2023 Neo4j, Inc. All ri hts reserved. Typical Business Resilience Data Analyze business impact o ● so tware & OS vulnerabilities, ● hardware & so tware up rades, ● buildin / eo raphic disasters ● chan es to business data ormats …across mission critical applications and business locations 24 hierarchies, flows, relationships…
  • 25. © 2023 Neo4j, Inc. All ri hts reserved. Actual Data Model 25 CVE Data Business Data Elements Vendors,So tware Business Tasks Application Instances Data Trans ers People/Roles Locations IT Assets
  • 26. © 2023 Neo4j, Inc. All ri hts reserved. LangChain Demo Application ● Translates En lish to Cypher ● Consumption usin LLM model with ew shot promptin ● Data au mentation rom Neo4j response 26
  • 27. © 2023 Neo4j, Inc. All ri hts reserved. 27 Demo
  • 28. © 2023 Neo4j, Inc. All ri hts reserved. Neo4j Database 30 API Knowled e Graph Graph Data Science Graph DB Knowled e Apps In ormation Extraction & In estion Structured Unstructured Ontolo ies GCP Vertex AI Data Sources API Layer Customer Service Ticket Tria in Recommendations News Content & Discovery Enterprise Knowled e Search Patient Prioritization Clinical Decision Support Systems Pharmacovi ilance Health Assistants FAQ Bots LLMs Amazon Sa eMaker AzureML Bloom Aura Enterprise Edition LLMs API Step 1: Capture Knowled e Step2: Enrich Step 3: Semantic & Contextual Search
  • 29. © 2023 Neo4j, Inc. All ri hts reserved. 31 Neo4j Enriches All Phases of an AI Ecosystem Knowled e Graphs Graph Feature En ineerin and Graph ML Graph Analytics, Investi ations and Counter actuals Inte rations and Knowled e Graphs or Heuristic AI Connect Analyze Capitalize Interpret Neo4j Neo4j GDS Neo4j Bloom Neo4j Connectors
  • 30. © 2023 Neo4j, Inc. All ri hts reserved. Thank You! katie.roberts@neo4j 32