SlideShare a Scribd company logo
Neo4j Inc. All rights reserved 2023
Neo4j and GenAI
Luis Salvador
PreSales Engineer-Spain
Pierre Halftermeyer
PreSales Engineer-France
IA Generativa y Grafos de Neo4j: RAG time
IA Generativa y Grafos de Neo4j: RAG time
Neo4j Inc. All rights reserved 2023
TODAY’S REALITY
Connections
in data are as
valuable as the
data itself
4
Graph creates a
more intuitive and
connected view of
data relationships,
unlocking deeper
insights and context
5
THE PROPERTY GRAPH: SIMPLY POWERFUL
Employee City
Company
Nodes represent
objects (nouns)
Relationships are directional
Relationships connect nodes are
represent actions (verbs)
Relationships can have properties
(name/value pairs)
Nodes can have
properties (name/value
pairs)
name: Emil Eifrem
date_of_birth: 1979-03-01
employee_ID: 1
:HAS_CEO
start_date: 2008-01-20
:LOCATED_IN
6
Hybrid Workload Duality
Intelligent
Applications
Transactions -
Security -
Performance & Scalability -
ACID Consistency -
Intelligent Modeling
- Extensive & Supported Algo Library
- Scalable
- Graph Visualization
- Graph Transformations
Graph
Transactions
Graph Analytics
& Data Science
7
What’s in it for you:
● Improve model accuracy by 30%
● Simplify processes and remove
headaches
● More projects into production without
additional hiring
Neo4j Graph Data Science
Analytics
Feature
Engineering
Data
Exploration
Graph
Data
Science
Queries & Search
Machine Learning Visualization
8
What’s important?
Prioritization
Who has the most connections?
Who has the highest page rank?
Who is an influencer?
What’s unusual?
Anomaly & Fraud Detection
Where is a community forming?
What are the group dynamics?
What’s unusual about this data?
What’s next?
Predictions
What’s the most common path?
Who is in the same community?
What relationship will form?
Pl
ay
s
Lives_in
In_sport
Likes
F
a
n
_
o
f
Plays_for
K
n
o
w
s
Knows
Knows
K
n
o
w
s
Answer critical business questions
9
10
Graphs Types for Common Data Shapes
11
● Creates context for decisions
● Single entity focus
● Historical & real-time data
● API with singleton queries
● Reporting integration
● Foundation for graph recos
X360° Graphs
● Creates holistic view of business
● Pulls data from multiple sources
● Unifies data across silos
● Consistent naming conventions
● Mobilizes data in data lakes
● Supports apps, reports, APIs
Knowledge Graphs
● Enables E2E process optimization
● Focus on flows, movement
● Hierarchies and cascades
● Easily handles recursion
● Identifies dependencies
● Traces journey
Process Graphs
● Reveals risks hidden in data
● Leverages graph inference
● Depicts complex relationships
● Reveals anomalous patterns
● Automated alerts in real-time
● Ad-hoc forensics
Risk Graphs
A B C D E
This is a Graph
© 2023 Neo4j, Inc. All rights reserved.
Vector Index
Search
13
What is a vector
● Length
● Direction
● Components have meaning
horizontal
vertical
1
a
b
2
a
b
3
a + b
Neo4j Inc. All rights reserved 2024
14
Vector embeddings
Neo4j Inc. All rights reserved 2024
15
● Same concepts, just “an arrow”
● 100s or 1000s dimensions
● Each dimension corresponds to an
interesting feature or characteristic
king − man + woman ≈ queen
k
i
n
g
man
wom
an
1
k
i
n
g
man wom
an
2
q
u
e
e
n
?
3
Neighborhoods
● cosine
● direction / angle based
vector point
query
nearest 4
● Euclidean
● distance based
16
KGs enable searches with explicit and
implicit (vectors) relationships
17
Neo4j and Vector Search
Find relevant documents and
content for user queries
Find entities associated to
content and patterns in
connected data.
Improve search relevance &
insights by enhancing a
Knowledge Graph. Use graph
algorithms and ML to
discover new relationships,
entities, and groups.
Vector Similarity
Search
Graph Traversals &
Pattern Matching
Knowledge Graph
Inference & ML
Vector Search
Graph Database
18
IA Generativa y Grafos de Neo4j: RAG time
© 2023 Neo4j, Inc. All rights reserved.
LLMs and GenAI
20
21
22
Gen AI is everywhere
We’re at mile one of the marathon
23
The next big thing
24
25
Learns random
sentences from
random people
Talks like a person
but doesn’t really
understand what
it’s saying
Occasionally
speaks absolute
nonsense
Is a cute little bird
Yes Yes Yes Yes
Yes Yes Yes No
The limitations of GenAI
26
The limitations of GenAI
Hallucinates
Limited
input sizes for
fine tuning
Lack
of enterprise
domain
knowledge
Inability
to verify
answers
Sensitive
to prompt (input)
phrasing
Ethical and
data bias
concerns
27
Definition: Language models generate
text that is incorrect, nonsensical, or
unreal.
• Appear to answer questions
confidently even if they don’t
have facts
• May provide contradicting or
inconsistent responses to similar
prompts
How to Help LLMs Do Better?
Fine-Tuning Grounding
Provide completed
examples “shots” to the AI
as context in prompts. a.k.a
In-Context Learning
Provide additional training
data to better tune GenAI
to your use case
Provide AI with the
information to use for
generating responses
All of these are useful, but grounding is where Neo4j adds value
Neo4j as the data source
for Grounding
28
Few-Shot Learning
Ground LLMs in Neo4j’s Knowledge Graph
29
29
30
31
1
2
LLMs for Language Generation
Gen AI use cases
Generate
personalized
Natural Language
experiences
Neo4j Inc. All rights reserved 2024
32
33
1
2
LLMs for Language Generation
RAG-based Applications
Gen AI use cases
Grounding with
Retrieval Augmented
Generation (RAG)
Neo4j Inc. All rights reserved 2024
34
Natural Language
(NL) Search on
explicit relationships
Neo4j Inc. All rights reserved 2024
35
Neo4j Inc. All rights reserved 2023
36
Natural Language
Search combining
explicit and implicit
relationships
37
1
2
3
LLMs for Language Generation
RAG-based Applications
Gen AI use cases
Knowledge Graph Construction
Creating a
Knowledge Graph
From Unstructured
Text was Difficult
Neo4j Inc. All rights reserved 2024
38
Knowledge Graph
Creation with
Cypher Templates
39 Neo4j Inc. All rights reserved 2024
39
© 2023 Neo4j, Inc. All rights reserved.
How will you
transform your
organization?
IA Generativa y Grafos de Neo4j: RAG time
© 2023 Neo4j, Inc. All rights reserved. 42
© 2023 Neo4j, Inc. All rights reserved. 43
© 2023 Neo4j, Inc. All rights reserved. 44
© 2023 Neo4j, Inc. All rights reserved.
Thank You!
See you 9th April 2024 at our
next GraphSummit Madrid! 45

More Related Content

PDF
Neo4j y GenAI
PDF
Neo4j Introduction Workshop for Partners
PDF
Deeper Insights with Graph Data Science
PDF
La strada verso il successo con i database a grafo, la Graph Data Science e l...
PDF
Graph Data Science with Neo4j: Nordics Webinar
PDF
Graph Data Science: The Secret to Accelerating Innovation with AI/ML
PPTX
Get Started with the Most Advanced Edition Yet of Neo4j Graph Data Science
PDF
Knowledge Graphs and Generative AI
Neo4j y GenAI
Neo4j Introduction Workshop for Partners
Deeper Insights with Graph Data Science
La strada verso il successo con i database a grafo, la Graph Data Science e l...
Graph Data Science with Neo4j: Nordics Webinar
Graph Data Science: The Secret to Accelerating Innovation with AI/ML
Get Started with the Most Advanced Edition Yet of Neo4j Graph Data Science
Knowledge Graphs and Generative AI

Similar to IA Generativa y Grafos de Neo4j: RAG time (20)

PPTX
Knowledge Graphs and Generative AI_GraphSummit Minneapolis Sept 20.pptx
PDF
Graphs for Data Science and Machine Learning
PDF
Einstieg in Neo4j Graph Data Science
PDF
The Knowledge Graph Explosion
PDF
Leveraging Graphs for Artificial Intelligence and Machine Learning - Phani Da...
PDF
Neo4j : la voie du succès avec les bases de données de graphes et la Graph Da...
PDF
GraphSummit Toronto: The Knowledge Graph Explosion
PDF
Neo4j – The Fastest Path to Scalable Real-Time Analytics
PDF
Leveraging Graphs for Artificial Intelligence and Machine Learning - Phani Da...
PDF
GraphSummit Toronto: Leveraging Graphs for AI and ML
PDF
The perfect couple: Uniting Large Language Models and Knowledge Graphs for En...
PDF
Remote Desktop Manager Enterprise 2024.3.29
PDF
LDPlayer Free Download (Latest version 2025)
PDF
Neo4j Generative AI workshop at GraphSummit London 14 Nov 2023.pdf
PDF
Apple Logic Pro X for MacOS Free Download
PDF
Capcut Pro Crack For PC Latest 2025 Version
PDF
5.17 - IntroductionToNeo4j-allSlides_1_2022_DanMc.pdf
PDF
Matinée GenAI & GraphRAG Paris - Décembre 24
PDF
The Neo4j Data Platform for Today & Tomorrow.pdf
PPTX
Using Connected Data and Graph Technology to Enhance Machine Learning and Art...
Knowledge Graphs and Generative AI_GraphSummit Minneapolis Sept 20.pptx
Graphs for Data Science and Machine Learning
Einstieg in Neo4j Graph Data Science
The Knowledge Graph Explosion
Leveraging Graphs for Artificial Intelligence and Machine Learning - Phani Da...
Neo4j : la voie du succès avec les bases de données de graphes et la Graph Da...
GraphSummit Toronto: The Knowledge Graph Explosion
Neo4j – The Fastest Path to Scalable Real-Time Analytics
Leveraging Graphs for Artificial Intelligence and Machine Learning - Phani Da...
GraphSummit Toronto: Leveraging Graphs for AI and ML
The perfect couple: Uniting Large Language Models and Knowledge Graphs for En...
Remote Desktop Manager Enterprise 2024.3.29
LDPlayer Free Download (Latest version 2025)
Neo4j Generative AI workshop at GraphSummit London 14 Nov 2023.pdf
Apple Logic Pro X for MacOS Free Download
Capcut Pro Crack For PC Latest 2025 Version
5.17 - IntroductionToNeo4j-allSlides_1_2022_DanMc.pdf
Matinée GenAI & GraphRAG Paris - Décembre 24
The Neo4j Data Platform for Today & Tomorrow.pdf
Using Connected Data and Graph Technology to Enhance Machine Learning and Art...
Ad

More from Neo4j (20)

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

Recently uploaded (20)

PPTX
CHAPTER 12 - CYBER SECURITY AND FUTURE SKILLS (1) (1).pptx
PDF
Raksha Bandhan Grocery Pricing Trends in India 2025.pdf
PDF
AI in Product Development-omnex systems
PDF
Why TechBuilder is the Future of Pickup and Delivery App Development (1).pdf
PDF
Design an Analysis of Algorithms II-SECS-1021-03
PDF
How to Migrate SBCGlobal Email to Yahoo Easily
PDF
medical staffing services at VALiNTRY
PPTX
Online Work Permit System for Fast Permit Processing
PPTX
VVF-Customer-Presentation2025-Ver1.9.pptx
PPTX
Operating system designcfffgfgggggggvggggggggg
PDF
Internet Downloader Manager (IDM) Crack 6.42 Build 42 Updates Latest 2025
PDF
Navsoft: AI-Powered Business Solutions & Custom Software Development
PDF
2025 Textile ERP Trends: SAP, Odoo & Oracle
PDF
How to Choose the Right IT Partner for Your Business in Malaysia
PPTX
ai tools demonstartion for schools and inter college
PDF
System and Network Administration Chapter 2
PDF
Claude Code: Everyone is a 10x Developer - A Comprehensive AI-Powered CLI Tool
PDF
Odoo Companies in India – Driving Business Transformation.pdf
PDF
PTS Company Brochure 2025 (1).pdf.......
PDF
Which alternative to Crystal Reports is best for small or large businesses.pdf
CHAPTER 12 - CYBER SECURITY AND FUTURE SKILLS (1) (1).pptx
Raksha Bandhan Grocery Pricing Trends in India 2025.pdf
AI in Product Development-omnex systems
Why TechBuilder is the Future of Pickup and Delivery App Development (1).pdf
Design an Analysis of Algorithms II-SECS-1021-03
How to Migrate SBCGlobal Email to Yahoo Easily
medical staffing services at VALiNTRY
Online Work Permit System for Fast Permit Processing
VVF-Customer-Presentation2025-Ver1.9.pptx
Operating system designcfffgfgggggggvggggggggg
Internet Downloader Manager (IDM) Crack 6.42 Build 42 Updates Latest 2025
Navsoft: AI-Powered Business Solutions & Custom Software Development
2025 Textile ERP Trends: SAP, Odoo & Oracle
How to Choose the Right IT Partner for Your Business in Malaysia
ai tools demonstartion for schools and inter college
System and Network Administration Chapter 2
Claude Code: Everyone is a 10x Developer - A Comprehensive AI-Powered CLI Tool
Odoo Companies in India – Driving Business Transformation.pdf
PTS Company Brochure 2025 (1).pdf.......
Which alternative to Crystal Reports is best for small or large businesses.pdf

IA Generativa y Grafos de Neo4j: RAG time

  • 1. Neo4j Inc. All rights reserved 2023 Neo4j and GenAI Luis Salvador PreSales Engineer-Spain Pierre Halftermeyer PreSales Engineer-France
  • 4. Neo4j Inc. All rights reserved 2023 TODAY’S REALITY Connections in data are as valuable as the data itself 4
  • 5. Graph creates a more intuitive and connected view of data relationships, unlocking deeper insights and context 5
  • 6. THE PROPERTY GRAPH: SIMPLY POWERFUL Employee City Company Nodes represent objects (nouns) Relationships are directional Relationships connect nodes are represent actions (verbs) Relationships can have properties (name/value pairs) Nodes can have properties (name/value pairs) name: Emil Eifrem date_of_birth: 1979-03-01 employee_ID: 1 :HAS_CEO start_date: 2008-01-20 :LOCATED_IN 6
  • 7. Hybrid Workload Duality Intelligent Applications Transactions - Security - Performance & Scalability - ACID Consistency - Intelligent Modeling - Extensive & Supported Algo Library - Scalable - Graph Visualization - Graph Transformations Graph Transactions Graph Analytics & Data Science 7
  • 8. What’s in it for you: ● Improve model accuracy by 30% ● Simplify processes and remove headaches ● More projects into production without additional hiring Neo4j Graph Data Science Analytics Feature Engineering Data Exploration Graph Data Science Queries & Search Machine Learning Visualization 8
  • 9. What’s important? Prioritization Who has the most connections? Who has the highest page rank? Who is an influencer? What’s unusual? Anomaly & Fraud Detection Where is a community forming? What are the group dynamics? What’s unusual about this data? What’s next? Predictions What’s the most common path? Who is in the same community? What relationship will form? Pl ay s Lives_in In_sport Likes F a n _ o f Plays_for K n o w s Knows Knows K n o w s Answer critical business questions 9
  • 10. 10
  • 11. Graphs Types for Common Data Shapes 11 ● Creates context for decisions ● Single entity focus ● Historical & real-time data ● API with singleton queries ● Reporting integration ● Foundation for graph recos X360° Graphs ● Creates holistic view of business ● Pulls data from multiple sources ● Unifies data across silos ● Consistent naming conventions ● Mobilizes data in data lakes ● Supports apps, reports, APIs Knowledge Graphs ● Enables E2E process optimization ● Focus on flows, movement ● Hierarchies and cascades ● Easily handles recursion ● Identifies dependencies ● Traces journey Process Graphs ● Reveals risks hidden in data ● Leverages graph inference ● Depicts complex relationships ● Reveals anomalous patterns ● Automated alerts in real-time ● Ad-hoc forensics Risk Graphs A B C D E
  • 12. This is a Graph
  • 13. © 2023 Neo4j, Inc. All rights reserved. Vector Index Search 13
  • 14. What is a vector ● Length ● Direction ● Components have meaning horizontal vertical 1 a b 2 a b 3 a + b Neo4j Inc. All rights reserved 2024 14
  • 15. Vector embeddings Neo4j Inc. All rights reserved 2024 15 ● Same concepts, just “an arrow” ● 100s or 1000s dimensions ● Each dimension corresponds to an interesting feature or characteristic king − man + woman ≈ queen k i n g man wom an 1 k i n g man wom an 2 q u e e n ? 3
  • 16. Neighborhoods ● cosine ● direction / angle based vector point query nearest 4 ● Euclidean ● distance based 16
  • 17. KGs enable searches with explicit and implicit (vectors) relationships 17
  • 18. Neo4j and Vector Search Find relevant documents and content for user queries Find entities associated to content and patterns in connected data. Improve search relevance & insights by enhancing a Knowledge Graph. Use graph algorithms and ML to discover new relationships, entities, and groups. Vector Similarity Search Graph Traversals & Pattern Matching Knowledge Graph Inference & ML Vector Search Graph Database 18
  • 20. © 2023 Neo4j, Inc. All rights reserved. LLMs and GenAI 20
  • 21. 21
  • 22. 22
  • 23. Gen AI is everywhere We’re at mile one of the marathon 23 The next big thing
  • 24. 24
  • 25. 25
  • 26. Learns random sentences from random people Talks like a person but doesn’t really understand what it’s saying Occasionally speaks absolute nonsense Is a cute little bird Yes Yes Yes Yes Yes Yes Yes No The limitations of GenAI 26
  • 27. The limitations of GenAI Hallucinates Limited input sizes for fine tuning Lack of enterprise domain knowledge Inability to verify answers Sensitive to prompt (input) phrasing Ethical and data bias concerns 27 Definition: Language models generate text that is incorrect, nonsensical, or unreal. • Appear to answer questions confidently even if they don’t have facts • May provide contradicting or inconsistent responses to similar prompts
  • 28. How to Help LLMs Do Better? Fine-Tuning Grounding Provide completed examples “shots” to the AI as context in prompts. a.k.a In-Context Learning Provide additional training data to better tune GenAI to your use case Provide AI with the information to use for generating responses All of these are useful, but grounding is where Neo4j adds value Neo4j as the data source for Grounding 28 Few-Shot Learning
  • 29. Ground LLMs in Neo4j’s Knowledge Graph 29 29
  • 30. 30
  • 31. 31 1 2 LLMs for Language Generation Gen AI use cases
  • 33. 33 1 2 LLMs for Language Generation RAG-based Applications Gen AI use cases
  • 34. Grounding with Retrieval Augmented Generation (RAG) Neo4j Inc. All rights reserved 2024 34
  • 35. Natural Language (NL) Search on explicit relationships Neo4j Inc. All rights reserved 2024 35
  • 36. Neo4j Inc. All rights reserved 2023 36 Natural Language Search combining explicit and implicit relationships
  • 37. 37 1 2 3 LLMs for Language Generation RAG-based Applications Gen AI use cases Knowledge Graph Construction
  • 38. Creating a Knowledge Graph From Unstructured Text was Difficult Neo4j Inc. All rights reserved 2024 38
  • 39. Knowledge Graph Creation with Cypher Templates 39 Neo4j Inc. All rights reserved 2024 39
  • 40. © 2023 Neo4j, Inc. All rights reserved. How will you transform your organization?
  • 42. © 2023 Neo4j, Inc. All rights reserved. 42
  • 43. © 2023 Neo4j, Inc. All rights reserved. 43
  • 44. © 2023 Neo4j, Inc. All rights reserved. 44
  • 45. © 2023 Neo4j, Inc. All rights reserved. Thank You! See you 9th April 2024 at our next GraphSummit Madrid! 45