The perfect couple: Uniting Large Language Models and Knowledge Graphs for Enhanced Knowledge Representation

Neo4j
Neo4jOpen Source NOSQL Graph Database à Neo4j
© 2023 Neo4j, Inc. All rights reserved.
© 2023 Neo4j, Inc. All rights reserved.
LLM 💕 KG: The Perfect Couple
Uniting Large Language Models and Knowledge
Graphs for Enhanced Knowledge Representation
Kristof Neys
Director Graph Data Science Technology
© 2023 Neo4j, Inc. All rights reserved.
7/10
20/25
7/10
Top Retail Firms
Top Financial Firms
Top Software Vendors
Anyway You Like It
2
Creator of the Property
Graph and Cypher language
at the core of the GQL ISO
project. Fully integrated Data
Science Library
Thousands of Customers
World-Wide
250,000 developers
worldwide
Industry Leaders use Neo4j
On-Prem
DB-as-a-Service
In the Cloud
© 2022 Neo4j, Inc. All rights reserved.
3
Topics
We will cover:
1) Knowledge Graphs
2) Knowledge Graphs + LLMs ~ As a Front end
3) Knowledge Graphs + LLMs ~ As a Back end
4) How to get started on your graph journey
© 2023 Neo4j, Inc. All rights reserved.
4
“In a world of infinite content, knowledge
becomes [very] valuable”
Denny Vrandečić, Wikidata
© 2023 Neo4j, Inc. All rights reserved.
5
The Core Graph Object:
A Knowledge Graph
© 2023 Neo4j, Inc. All rights reserved.
What are Knowledge Graphs?
● Entities can be real-world objects and abstract concepts
● Relationships represent the connections between entities
● Semantic description of the entities and relationships
A knowledge graph is a structured representation of
facts, consisting of entities, relationships and semantic
descriptions
© 2023 Neo4j, Inc. All rights reserved.
7
From Data points to a Knowledge Graph
Car
DRIVES
name: “Dan”
born: May 29, 1978
twitter: “@dan”
name: “Ann”
born: Dec 5, 1979
brand: “Volvo”
model: “V90”
description:
since:
Jan 10, 2021
LOVES
LOVES
LIVES_WITH
O
W
N
S
Person Person
© 2023 Neo4j, Inc. All rights reserved.
User
:VISITED
Website
User
IPLocation
Website
IPLocation
Website
Website
Website
:VISITED
:VISITED
:VISITED
:USED
:USED
:
U
S
E
D
:
V
I
S
I
T
E
D
:
V
I
S
I
T
E
D
:VISITED
:SAME_AS
Graphs allows you to make implicit
relationships….
….explicit
Graphs….Grow!
© 2023 Neo4j, Inc. All rights reserved.
:SAME_AS
User
:VISITED
Website
User
IPLocation
Website
IPLocation
Website
Website
Website
:VISITED
:VISITED
:VISITED
:USED
:USED
:
U
S
E
D
:
V
I
S
I
T
E
D
:
V
I
S
I
T
E
D
:VISITED
User
:SAM
E_AS
:USED
:VISITED
PersonId: 1
PersonId: 1 PersonId: 1
User
PersonId: 2
:VISITED
…and can then group similar nodes…and
create a new graph from the explicit
relationships…
A graph grows organically - gaining
insights and enriching your data
Graphs….Grow!
© 2023 Neo4j, Inc. All rights reserved.
Come and see us for the book on Knowledge Graphs
© 2023 Neo4j, Inc. All rights reserved.
11
Knowledge Graph + LLM
A marriage made in heaven
© 2023 Neo4j, Inc. All rights reserved.
12
Setting the context - From a user point of view
© 2023 Neo4j, Inc. All rights reserved.
13
As a front-end…
© 2023 Neo4j, Inc. All rights reserved.
14
Architecture
NeoDash
Dashboard UI
Neo4j
Free text input
APOC call Graph representations
Embeddings
Graph visualization of results
NeoDash
Dashboard UI
Persist results
Conceptual flow for a
text-to-graph or graph-to-text
application based on Neo4j +
OpenAI.
© 2023 Neo4j, Inc. All rights reserved.
15
Writing Code is soo last year….
© 2023 Neo4j, Inc. All rights reserved.
16
As a back-end…
© 2023 Neo4j, Inc. All rights reserved.
17
We are not making this up…
© 2023 Neo4j, Inc. All rights reserved.
18
Three main ways to let LLM’s work with your Graph
© 2023 Neo4j, Inc. All rights reserved.
19
Knowledge Graphs that enhance LLMs
© 2023 Neo4j, Inc. All rights reserved.
LLMs Core function…To manipulate strings…
• GPT training focuses primarily on predicting the probability of text sequences and
specifically for predicting which words come next in a sequence
“When you play the
game of thrones….
Input
LLM
…you win or you die.
There is no middle
ground.”
Output
© 2023 Neo4j, Inc. All rights reserved.
21
Nothing is perfect…
but don’t push it!
© 2023 Neo4j, Inc. All rights reserved.
© 2023 Neo4j, Inc. All rights reserved.
There is no need for this…!
© 2023 Neo4j, Inc. All rights reserved.
Whereas we all know what The Truth is…
© 2023 Neo4j, Inc. All rights reserved.
© 2023 Neo4j, Inc. All rights reserved.
It’s all about Knowledge and Accuracy
• Training data can be false
• LLMs: training is focused on self-supervised learning
• Cut-off date: i.e ChatGPT is only trained on pre Sep 2021 data
• Inability to verify sources for answers
• Sensitive to prompt (input) phrasing
• Lack of explainability
© 2023 Neo4j, Inc. All rights reserved.
Making stuff up…
© 2023 Neo4j, Inc. All rights reserved.
In Summary…
© 2023 Neo4j, Inc. All rights reserved.
29
So…, let’s solve this problem!
© 2023 Neo4j, Inc. All rights reserved.
How to Help LLMs Do Better?
Few-Shot Learning
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
© 2023 Neo4j, Inc. All rights reserved.
Grounding
Provide AI with the information to use for generating responses
Best of Both Worlds
Use the language understanding skills of LLMs but control the knowledge/sources it uses
● Improve accuracy & tailor to enterprise and use case
● Reduce hallucinations and other inconsistencies
● Control provenance
Methods
● Internet search, plugins, agents
● Query generation
● Retrieval Augmented Generation (RAG)
Image by GenAI (DALL-E)
© 2023 Neo4j, Inc. All rights reserved.
32
Grounding with Retrieval Augmented Generation (RAG)
Neo4j, Inc. All rights reserved 2021
33
What’s in it for me…?
© 2023 Neo4j, Inc. All rights reserved.
LLMs can help generate more accurate responses by
considering the connections and dependencies within the
graph and mapping new links as new data is identified.
Flexible Schema means it is
easy to grow your knowledge
base whenever new
information is available
Relationships are data
that is used to return
explicit results
Accuracy
Vector Search adds semantic
search
© 2023 Neo4j, Inc. All rights reserved.
Knowledge graphs supply the LLM with information about your
company so answers are specific to your business, giving more
context for more accurate responses.
Add a layer of context over
your LLM for accuracy and
specificity
Specificity
© 2023 Neo4j, Inc. All rights reserved.
Map relationships between search
results and data source nodes
Represent data sources as nodes
Add metadata or annotations
Verify the enriched responses from your LLM because each piece of
information is linked to its sources and origins.
Explainability
© 2023 Neo4j, Inc. All rights reserved.
LLM retrieves and returns information governed by your enterprise security
and access control policies-down to the node level.
Define policies by role or
identity
Integrates with identity and
access management provider
with SSO
Security & Privacy
Build constraints on nodes,
labels, relationships, properties,
specific parts of the graph, and
even traversal depth
© 2023 Neo4j, Inc. All rights reserved.
Easily scale with autonomous
clustering
Reliability & Low-latency
Knowledge graphs scale and are battle-tested to thousands of
concurrent users, get answers quickly with incredibly fast query speeds.
Incredibly fast traversals with index
free adjacency
© 2023 Neo4j, Inc. All rights reserved.
39
Use LLM to augment Knowledge Graphs
● Named Entity Recognition
● Knowledge Compression
© 2023 Neo4j, Inc. All rights reserved.
40
Use LLM to augment Knowledge Graphs:
Named Entity Recognition
© 2023 Neo4j, Inc. All rights reserved.
Creating a Knowledge Graph From Unstructured Text is
Difficult
Traditional entity extraction pipelines can be
• resource intensive
• difficult to transfer/generalize:
◦ specialized NLP libraries/tools
◦ domain specific
◦ require subject matter expertise
◦ lots of trial & error
◦ Mix of business rules, machine learning,
and custom hand-rolled logic
© 2023 Neo4j, Inc. All rights reserved.
LLMs can Jumpstart Knowledge Graph Creation
LLMs can be prompted to:
1. Extract data from unstructured text
• Entity extraction, including pronouns and
partial references
• Entity disambiguation
• Extraction of semantic relationships
2. Aide or directly perform graph ingestion
• Determine desired output (Pandas DataFrame
etc)
• Structure extracted data (triples, json, csv) to
work with Cypher insert templates
Input Data
LLM
User
Neo4j
© 2023 Neo4j, Inc. All rights reserved.
43
Use LLM to augment Knowledge Graphs:
Knowledge Compression
© 2023 Neo4j, Inc. All rights reserved.
Text Embeddings are a Key Concept for Knowledge Compression
Consider the question: What is text embedding?
It can be represented / translated as a vector using the OpenAI Embedding API:
[-0.03156438, 0.0013196499, -0.01716885, -0.0008197554, 0.011872382, 0.0036221128,
-0.022915626, -0.005925469, … (1528 more items to go here …]
• This translation process is called Embedding. It is a machine learning process to
convert complex, high-dimensional data e.g. text, image etc. into lower-dimensional
representations(vectors) while preserving essential relationships and structure.
• Embedding is the knowledge for AI as it is produced, understood and used by
various algorithms and AI systems.
© 2023 Neo4j, Inc. All rights reserved.
Text Embedding Vectors for Semantic Search
Given a question, find the most relevant documents based on a similarity metric (such as
Cosine Similarity) between vector of the question and vectors of contents.
Moving from keyword search to similarity (semantic) search.
Q: what is text
embedding?
abstractId similarity
456 0.923445
22 0.892114
… ...
Top K by similarity
Use LLMs for Graph Enrichment
Neo4j Inc. All rights reserved 2023
46
[0.2322,0.3321,….,0.0021]
[0.3233,0.3543,….,0.0047]
[0.5674,0.2134,….,0.0054]
[0.4565,0.2345,….,0.0342]
[0.8743,0.4343,….,0.0234]
LLM APIs
(OpenAI/ VertexAI/
AWS Bedrock etc.)
Text
Embeddings
Article PDFs
(Unstructured Data)
© 2023 Neo4j, Inc. All rights reserved.
47
One last thing…
© 2023 Neo4j, Inc. All rights reserved.
48
https://neo4j.com/blog/vector-search-deeper-insights/
© 2023 Neo4j, Inc. All rights reserved.
© 2023 Neo4j, Inc. All rights reserved.
50
How to get started on your Graph Journey?
Neo4j, Inc. All rights reserved 2021
Neo4j, Inc. All rights reserved 2021
© 2023 Neo4j, Inc. All rights reserved.
53
And now in APOC too…
© 2023 Neo4j, Inc. All rights reserved.
54
Some examples…
© 2023 Neo4j, Inc. All rights reserved.
55
© 2023 Neo4j, Inc. All rights reserved.
56
© 2023 Neo4j, Inc. All rights reserved.
© 2023 Neo4j, Inc. All rights reserved.
Thank you!
Contact us at
sales@neo4j.com
1 sur 57

Recommandé

SERVIER Pegasus - Graphe de connaissances pour les phases primaires de recher... par
SERVIER Pegasus - Graphe de connaissances pour les phases primaires de recher...SERVIER Pegasus - Graphe de connaissances pour les phases primaires de recher...
SERVIER Pegasus - Graphe de connaissances pour les phases primaires de recher...Neo4j
155 vues50 diapositives
The Knowledge Graph Explosion par
The Knowledge Graph ExplosionThe Knowledge Graph Explosion
The Knowledge Graph ExplosionNeo4j
185 vues16 diapositives
Smarter Fraud Detection With Graph Data Science par
Smarter Fraud Detection With Graph Data ScienceSmarter Fraud Detection With Graph Data Science
Smarter Fraud Detection With Graph Data ScienceNeo4j
187 vues23 diapositives
The Data Platform for Today’s Intelligent Applications par
The Data Platform for Today’s Intelligent ApplicationsThe Data Platform for Today’s Intelligent Applications
The Data Platform for Today’s Intelligent ApplicationsNeo4j
215 vues22 diapositives
Knowledge Graphs and Generative AI_GraphSummit Minneapolis Sept 20.pptx par
Knowledge Graphs and Generative AI_GraphSummit Minneapolis Sept 20.pptxKnowledge Graphs and Generative AI_GraphSummit Minneapolis Sept 20.pptx
Knowledge Graphs and Generative AI_GraphSummit Minneapolis Sept 20.pptxNeo4j
225 vues31 diapositives
Deep dive into LangChain integration with Neo4j.pptx par
Deep dive into LangChain integration with Neo4j.pptxDeep dive into LangChain integration with Neo4j.pptx
Deep dive into LangChain integration with Neo4j.pptxTomazBratanic1
868 vues21 diapositives

Contenu connexe

Tendances

ntroducing to the Power of Graph Technology par
ntroducing to the Power of Graph Technologyntroducing to the Power of Graph Technology
ntroducing to the Power of Graph TechnologyNeo4j
334 vues41 diapositives
Optimizing Your Supply Chain with the Neo4j Graph par
Optimizing Your Supply Chain with the Neo4j GraphOptimizing Your Supply Chain with the Neo4j Graph
Optimizing Your Supply Chain with the Neo4j GraphNeo4j
193 vues33 diapositives
Workshop - Build a Graph Solution par
Workshop - Build a Graph SolutionWorkshop - Build a Graph Solution
Workshop - Build a Graph SolutionNeo4j
94 vues61 diapositives
GSK: How Knowledge Graphs Improve Clinical Reporting Workflows par
GSK: How Knowledge Graphs Improve Clinical Reporting WorkflowsGSK: How Knowledge Graphs Improve Clinical Reporting Workflows
GSK: How Knowledge Graphs Improve Clinical Reporting WorkflowsNeo4j
171 vues32 diapositives
Kerry Group: How Neo4j graph technology is delivering benefits to Kerry Group... par
Kerry Group: How Neo4j graph technology is delivering benefits to Kerry Group...Kerry Group: How Neo4j graph technology is delivering benefits to Kerry Group...
Kerry Group: How Neo4j graph technology is delivering benefits to Kerry Group...Neo4j
103 vues35 diapositives
Workshop - Neo4j Graph Data Science par
Workshop - Neo4j Graph Data ScienceWorkshop - Neo4j Graph Data Science
Workshop - Neo4j Graph Data ScienceNeo4j
393 vues86 diapositives

Tendances(20)

ntroducing to the Power of Graph Technology par Neo4j
ntroducing to the Power of Graph Technologyntroducing to the Power of Graph Technology
ntroducing to the Power of Graph Technology
Neo4j334 vues
Optimizing Your Supply Chain with the Neo4j Graph par Neo4j
Optimizing Your Supply Chain with the Neo4j GraphOptimizing Your Supply Chain with the Neo4j Graph
Optimizing Your Supply Chain with the Neo4j Graph
Neo4j193 vues
Workshop - Build a Graph Solution par Neo4j
Workshop - Build a Graph SolutionWorkshop - Build a Graph Solution
Workshop - Build a Graph Solution
Neo4j94 vues
GSK: How Knowledge Graphs Improve Clinical Reporting Workflows par Neo4j
GSK: How Knowledge Graphs Improve Clinical Reporting WorkflowsGSK: How Knowledge Graphs Improve Clinical Reporting Workflows
GSK: How Knowledge Graphs Improve Clinical Reporting Workflows
Neo4j171 vues
Kerry Group: How Neo4j graph technology is delivering benefits to Kerry Group... par Neo4j
Kerry Group: How Neo4j graph technology is delivering benefits to Kerry Group...Kerry Group: How Neo4j graph technology is delivering benefits to Kerry Group...
Kerry Group: How Neo4j graph technology is delivering benefits to Kerry Group...
Neo4j103 vues
Workshop - Neo4j Graph Data Science par Neo4j
Workshop - Neo4j Graph Data ScienceWorkshop - Neo4j Graph Data Science
Workshop - Neo4j Graph Data Science
Neo4j393 vues
Get Started with the Most Advanced Edition Yet of Neo4j Graph Data Science par Neo4j
Get Started with the Most Advanced Edition Yet of Neo4j Graph Data ScienceGet Started with the Most Advanced Edition Yet of Neo4j Graph Data Science
Get Started with the Most Advanced Edition Yet of Neo4j Graph Data Science
Neo4j167 vues
World Health Organisation - Knowledge Representation and Reasoning for Public... par Neo4j
World Health Organisation - Knowledge Representation and Reasoning for Public...World Health Organisation - Knowledge Representation and Reasoning for Public...
World Health Organisation - Knowledge Representation and Reasoning for Public...
Neo4j135 vues
A Knowledge Graph for Reaction & Synthesis Prediction (AstraZeneca) par Neo4j
A Knowledge Graph for Reaction & Synthesis Prediction (AstraZeneca)A Knowledge Graph for Reaction & Synthesis Prediction (AstraZeneca)
A Knowledge Graph for Reaction & Synthesis Prediction (AstraZeneca)
Neo4j216 vues
Knowledge Graphs and Graph Data Science: More Context, Better Predictions (Ne... par Neo4j
Knowledge Graphs and Graph Data Science: More Context, Better Predictions (Ne...Knowledge Graphs and Graph Data Science: More Context, Better Predictions (Ne...
Knowledge Graphs and Graph Data Science: More Context, Better Predictions (Ne...
Neo4j193 vues
Graphs for Finance - AML with Neo4j Graph Data Science par Neo4j
Graphs for Finance - AML with Neo4j Graph Data Science Graphs for Finance - AML with Neo4j Graph Data Science
Graphs for Finance - AML with Neo4j Graph Data Science
Neo4j333 vues
Demystifying Graph Neural Networks par Neo4j
Demystifying Graph Neural NetworksDemystifying Graph Neural Networks
Demystifying Graph Neural Networks
Neo4j341 vues
Knowledge Graphs - The Power of Graph-Based Search par Neo4j
Knowledge Graphs - The Power of Graph-Based SearchKnowledge Graphs - The Power of Graph-Based Search
Knowledge Graphs - The Power of Graph-Based Search
Neo4j3.3K vues
Easily Identify Sources of Supply Chain Gridlock par Neo4j
Easily Identify Sources of Supply Chain GridlockEasily Identify Sources of Supply Chain Gridlock
Easily Identify Sources of Supply Chain Gridlock
Neo4j107 vues
The Neo4j Data Platform for Today & Tomorrow.pdf par Neo4j
The Neo4j Data Platform for Today & Tomorrow.pdfThe Neo4j Data Platform for Today & Tomorrow.pdf
The Neo4j Data Platform for Today & Tomorrow.pdf
Neo4j157 vues
Resiliance. Relevance. Agility. par accenture
Resiliance. Relevance. Agility.Resiliance. Relevance. Agility.
Resiliance. Relevance. Agility.
accenture19.3K vues
Graphs in Retail: Know Your Customers and Make Your Recommendations Engine Learn par Neo4j
Graphs in Retail: Know Your Customers and Make Your Recommendations Engine LearnGraphs in Retail: Know Your Customers and Make Your Recommendations Engine Learn
Graphs in Retail: Know Your Customers and Make Your Recommendations Engine Learn
Neo4j1.7K vues
Workshop Introduction to Neo4j par Neo4j
Workshop Introduction to Neo4jWorkshop Introduction to Neo4j
Workshop Introduction to Neo4j
Neo4j127 vues
The path to success with Graph Database and Graph Data Science par Neo4j
The path to success with Graph Database and Graph Data ScienceThe path to success with Graph Database and Graph Data Science
The path to success with Graph Database and Graph Data Science
Neo4j106 vues
Full Stack Graph in the Cloud par Neo4j
Full Stack Graph in the CloudFull Stack Graph in the Cloud
Full Stack Graph in the Cloud
Neo4j377 vues

Similaire à The perfect couple: Uniting Large Language Models and Knowledge Graphs for Enhanced Knowledge Representation

GPT and Graph Data Science to power your Knowledge Graph par
GPT and Graph Data Science to power your Knowledge GraphGPT and Graph Data Science to power your Knowledge Graph
GPT and Graph Data Science to power your Knowledge GraphNeo4j
268 vues49 diapositives
Neo4j Generative AI workshop at GraphSummit London 14 Nov 2023.pdf par
Neo4j Generative AI workshop at GraphSummit London 14 Nov 2023.pdfNeo4j Generative AI workshop at GraphSummit London 14 Nov 2023.pdf
Neo4j Generative AI workshop at GraphSummit London 14 Nov 2023.pdfNeo4j
54 vues57 diapositives
The Art of the Possible with Graph Technology par
The Art of the Possible with Graph TechnologyThe Art of the Possible with Graph Technology
The Art of the Possible with Graph TechnologyNeo4j
29 vues28 diapositives
La strada verso il successo con i database a grafo, la Graph Data Science e l... par
La strada verso il successo con i database a grafo, la Graph Data Science e l...La strada verso il successo con i database a grafo, la Graph Data Science e l...
La strada verso il successo con i database a grafo, la Graph Data Science e l...Neo4j
50 vues50 diapositives
The Path To Success With Graph Database and Analytics par
The Path To Success With Graph Database and AnalyticsThe Path To Success With Graph Database and Analytics
The Path To Success With Graph Database and AnalyticsNeo4j
38 vues39 diapositives
Neo4j: The path to success with Graph Database and Graph Data Science par
Neo4j: The path to success with Graph Database and Graph Data ScienceNeo4j: The path to success with Graph Database and Graph Data Science
Neo4j: The path to success with Graph Database and Graph Data ScienceNeo4j
82 vues44 diapositives

Similaire à The perfect couple: Uniting Large Language Models and Knowledge Graphs for Enhanced Knowledge Representation(20)

GPT and Graph Data Science to power your Knowledge Graph par Neo4j
GPT and Graph Data Science to power your Knowledge GraphGPT and Graph Data Science to power your Knowledge Graph
GPT and Graph Data Science to power your Knowledge Graph
Neo4j268 vues
Neo4j Generative AI workshop at GraphSummit London 14 Nov 2023.pdf par Neo4j
Neo4j Generative AI workshop at GraphSummit London 14 Nov 2023.pdfNeo4j Generative AI workshop at GraphSummit London 14 Nov 2023.pdf
Neo4j Generative AI workshop at GraphSummit London 14 Nov 2023.pdf
Neo4j54 vues
The Art of the Possible with Graph Technology par Neo4j
The Art of the Possible with Graph TechnologyThe Art of the Possible with Graph Technology
The Art of the Possible with Graph Technology
Neo4j29 vues
La strada verso il successo con i database a grafo, la Graph Data Science e l... par Neo4j
La strada verso il successo con i database a grafo, la Graph Data Science e l...La strada verso il successo con i database a grafo, la Graph Data Science e l...
La strada verso il successo con i database a grafo, la Graph Data Science e l...
Neo4j50 vues
The Path To Success With Graph Database and Analytics par Neo4j
The Path To Success With Graph Database and AnalyticsThe Path To Success With Graph Database and Analytics
The Path To Success With Graph Database and Analytics
Neo4j38 vues
Neo4j: The path to success with Graph Database and Graph Data Science par Neo4j
Neo4j: The path to success with Graph Database and Graph Data ScienceNeo4j: The path to success with Graph Database and Graph Data Science
Neo4j: The path to success with Graph Database and Graph Data Science
Neo4j82 vues
Neo4j : la voie du succès avec les bases de données de graphes et la Graph Da... par Neo4j
Neo4j : la voie du succès avec les bases de données de graphes et la Graph Da...Neo4j : la voie du succès avec les bases de données de graphes et la Graph Da...
Neo4j : la voie du succès avec les bases de données de graphes et la Graph Da...
Neo4j39 vues
The art of the possible with graph technology_Neo4j GraphSummit Dublin 2023.pptx par Neo4j
The art of the possible with graph technology_Neo4j GraphSummit Dublin 2023.pptxThe art of the possible with graph technology_Neo4j GraphSummit Dublin 2023.pptx
The art of the possible with graph technology_Neo4j GraphSummit Dublin 2023.pptx
Neo4j188 vues
Knowledge Graphs and Generative AI par Neo4j
Knowledge Graphs and Generative AIKnowledge Graphs and Generative AI
Knowledge Graphs and Generative AI
Neo4j136 vues
Deeper Insights with Graph Data Science par Neo4j
Deeper Insights with Graph Data ScienceDeeper Insights with Graph Data Science
Deeper Insights with Graph Data Science
Neo4j50 vues
The path to success with graph database and graph data science_ Neo4j GraphSu... par Neo4j
The path to success with graph database and graph data science_ Neo4j GraphSu...The path to success with graph database and graph data science_ Neo4j GraphSu...
The path to success with graph database and graph data science_ Neo4j GraphSu...
Neo4j91 vues
The Art of the Possible with Graph - Sudhir Hasbe - GraphSummit London 14 Nov... par Neo4j
The Art of the Possible with Graph - Sudhir Hasbe - GraphSummit London 14 Nov...The Art of the Possible with Graph - Sudhir Hasbe - GraphSummit London 14 Nov...
The Art of the Possible with Graph - Sudhir Hasbe - GraphSummit London 14 Nov...
Neo4j76 vues
Neo4j GraphSummit Copenhagen - The Art Of The Possible With Graph Technology ... par Neo4j
Neo4j GraphSummit Copenhagen - The Art Of The Possible With Graph Technology ...Neo4j GraphSummit Copenhagen - The Art Of The Possible With Graph Technology ...
Neo4j GraphSummit Copenhagen - The Art Of The Possible With Graph Technology ...
Neo4j53 vues
Leveraging Graphs for Artificial Intelligence and Machine Learning - Phani Da... par Neo4j
Leveraging Graphs for Artificial Intelligence and Machine Learning - Phani Da...Leveraging Graphs for Artificial Intelligence and Machine Learning - Phani Da...
Leveraging Graphs for Artificial Intelligence and Machine Learning - Phani Da...
Neo4j41 vues
The Data Platform for Today's Intelligent Applications.pdf par Neo4j
The Data Platform for Today's Intelligent Applications.pdfThe Data Platform for Today's Intelligent Applications.pdf
The Data Platform for Today's Intelligent Applications.pdf
Neo4j96 vues
Modeling Cybersecurity with Neo4j, Based on Real-Life Data Insights par Neo4j
Modeling Cybersecurity with Neo4j, Based on Real-Life Data InsightsModeling Cybersecurity with Neo4j, Based on Real-Life Data Insights
Modeling Cybersecurity with Neo4j, Based on Real-Life Data Insights
Neo4j66 vues
The Art of the Possible with Graph Technology par Neo4j
The Art of the Possible with Graph TechnologyThe Art of the Possible with Graph Technology
The Art of the Possible with Graph Technology
Neo4j15 vues
La strada verso il successo con i database a grafo, la Graph Data Science e l... par Neo4j
La strada verso il successo con i database a grafo, la Graph Data Science e l...La strada verso il successo con i database a grafo, la Graph Data Science e l...
La strada verso il successo con i database a grafo, la Graph Data Science e l...
Neo4j8 vues
Knowledge and Scalability Through Graph Composition par Neo4j
Knowledge and Scalability Through Graph CompositionKnowledge and Scalability Through Graph Composition
Knowledge and Scalability Through Graph Composition
Neo4j291 vues
Nordics Edition - The Neo4j Graph Data Platform Today & Tomorrow par Neo4j
Nordics Edition - The Neo4j Graph Data Platform Today & TomorrowNordics Edition - The Neo4j Graph Data Platform Today & Tomorrow
Nordics Edition - The Neo4j Graph Data Platform Today & Tomorrow
Neo4j44 vues

Plus de Neo4j

FIMA 2023 Neo4j & FS - Entity Resolution.pptx par
FIMA 2023 Neo4j & FS - Entity Resolution.pptxFIMA 2023 Neo4j & FS - Entity Resolution.pptx
FIMA 2023 Neo4j & FS - Entity Resolution.pptxNeo4j
3 vues26 diapositives
Operations & Data Graph par
Operations & Data GraphOperations & Data Graph
Operations & Data GraphNeo4j
31 vues25 diapositives
TAGTTOO: La nova xarxa social par
TAGTTOO: La nova xarxa socialTAGTTOO: La nova xarxa social
TAGTTOO: La nova xarxa socialNeo4j
23 vues19 diapositives
El Arte de lo Possible par
El Arte de lo PossibleEl Arte de lo Possible
El Arte de lo PossibleNeo4j
38 vues35 diapositives
Neo4j y GenAI par
Neo4j y GenAI Neo4j y GenAI
Neo4j y GenAI Neo4j
42 vues41 diapositives
Roadmap y Novedades de producto par
Roadmap y Novedades de productoRoadmap y Novedades de producto
Roadmap y Novedades de productoNeo4j
50 vues33 diapositives

Plus de Neo4j(20)

FIMA 2023 Neo4j & FS - Entity Resolution.pptx par Neo4j
FIMA 2023 Neo4j & FS - Entity Resolution.pptxFIMA 2023 Neo4j & FS - Entity Resolution.pptx
FIMA 2023 Neo4j & FS - Entity Resolution.pptx
Neo4j3 vues
Operations & Data Graph par Neo4j
Operations & Data GraphOperations & Data Graph
Operations & Data Graph
Neo4j31 vues
TAGTTOO: La nova xarxa social par Neo4j
TAGTTOO: La nova xarxa socialTAGTTOO: La nova xarxa social
TAGTTOO: La nova xarxa social
Neo4j23 vues
El Arte de lo Possible par Neo4j
El Arte de lo PossibleEl Arte de lo Possible
El Arte de lo Possible
Neo4j38 vues
Neo4j y GenAI par Neo4j
Neo4j y GenAI Neo4j y GenAI
Neo4j y GenAI
Neo4j42 vues
Roadmap y Novedades de producto par Neo4j
Roadmap y Novedades de productoRoadmap y Novedades de producto
Roadmap y Novedades de producto
Neo4j50 vues
Neo4j : Graphes de Connaissance, IA et LLMs par Neo4j
Neo4j : Graphes de Connaissance, IA et LLMsNeo4j : Graphes de Connaissance, IA et LLMs
Neo4j : Graphes de Connaissance, IA et LLMs
Neo4j47 vues
Les nouveautés produit Neo4j par Neo4j
 Les nouveautés produit Neo4j Les nouveautés produit Neo4j
Les nouveautés produit Neo4j
Neo4j27 vues
Sopra Steria : Analyse intelligente des réseaux dans le domaine des télécommu... par Neo4j
Sopra Steria : Analyse intelligente des réseaux dans le domaine des télécommu...Sopra Steria : Analyse intelligente des réseaux dans le domaine des télécommu...
Sopra Steria : Analyse intelligente des réseaux dans le domaine des télécommu...
Neo4j25 vues
Generali : SPIDER, notre produit au cœur des enjeux Generali en termes de Com... par Neo4j
Generali : SPIDER, notre produit au cœur des enjeux Generali en termes de Com...Generali : SPIDER, notre produit au cœur des enjeux Generali en termes de Com...
Generali : SPIDER, notre produit au cœur des enjeux Generali en termes de Com...
Neo4j46 vues
Neo4j & AWS Bedrock workshop at GraphSummit London 14 Nov 2023.pptx par Neo4j
Neo4j & AWS Bedrock workshop at GraphSummit London 14 Nov 2023.pptxNeo4j & AWS Bedrock workshop at GraphSummit London 14 Nov 2023.pptx
Neo4j & AWS Bedrock workshop at GraphSummit London 14 Nov 2023.pptx
Neo4j49 vues
Neo4j workshop at GraphSummit London 14 Nov 2023.pdf par Neo4j
Neo4j workshop at GraphSummit London 14 Nov 2023.pdfNeo4j workshop at GraphSummit London 14 Nov 2023.pdf
Neo4j workshop at GraphSummit London 14 Nov 2023.pdf
Neo4j47 vues
Neo4j Product Updates & Knowledge Graphs at GraphSummit London 14 Nov 2023.pptx par Neo4j
Neo4j Product Updates & Knowledge Graphs at GraphSummit London 14 Nov 2023.pptxNeo4j Product Updates & Knowledge Graphs at GraphSummit London 14 Nov 2023.pptx
Neo4j Product Updates & Knowledge Graphs at GraphSummit London 14 Nov 2023.pptx
Neo4j62 vues
AstraZeneca at Neo4j GraphSummit London 14Nov23.pptx par Neo4j
AstraZeneca at Neo4j GraphSummit London 14Nov23.pptxAstraZeneca at Neo4j GraphSummit London 14Nov23.pptx
AstraZeneca at Neo4j GraphSummit London 14Nov23.pptx
Neo4j40 vues
Google Cloud at GraphSummit London 14 Nov 2023.pptx par Neo4j
Google Cloud at GraphSummit London 14 Nov 2023.pptxGoogle Cloud at GraphSummit London 14 Nov 2023.pptx
Google Cloud at GraphSummit London 14 Nov 2023.pptx
Neo4j25 vues
Northern Gas Networks and CKDelta at Neo4j GraphSummit London 14Nov23.pptx par Neo4j
Northern Gas Networks and CKDelta at Neo4j GraphSummit London 14Nov23.pptxNorthern Gas Networks and CKDelta at Neo4j GraphSummit London 14Nov23.pptx
Northern Gas Networks and CKDelta at Neo4j GraphSummit London 14Nov23.pptx
Neo4j46 vues
Peek into Neo4j Product Strategy and Roadmap par Neo4j
Peek into Neo4j Product Strategy and RoadmapPeek into Neo4j Product Strategy and Roadmap
Peek into Neo4j Product Strategy and Roadmap
Neo4j87 vues
Transforming Intelligence Analysis with Knowledge Graphs par Neo4j
Transforming Intelligence Analysis with Knowledge GraphsTransforming Intelligence Analysis with Knowledge Graphs
Transforming Intelligence Analysis with Knowledge Graphs
Neo4j60 vues
Optimizing Your Supply Chain with Neo4j par Neo4j
Optimizing Your Supply Chain with Neo4jOptimizing Your Supply Chain with Neo4j
Optimizing Your Supply Chain with Neo4j
Neo4j44 vues
Ontology Driven Data for Fleet Management par Neo4j
Ontology Driven Data for Fleet ManagementOntology Driven Data for Fleet Management
Ontology Driven Data for Fleet Management
Neo4j53 vues

Dernier

3196 The Case of The East River par
3196 The Case of The East River3196 The Case of The East River
3196 The Case of The East RiverErickANDRADE90
11 vues4 diapositives
[DSC Europe 23] Zsolt Feleki - Machine Translation should we trust it.pptx par
[DSC Europe 23] Zsolt Feleki - Machine Translation should we trust it.pptx[DSC Europe 23] Zsolt Feleki - Machine Translation should we trust it.pptx
[DSC Europe 23] Zsolt Feleki - Machine Translation should we trust it.pptxDataScienceConferenc1
5 vues12 diapositives
Short Story Assignment by Kelly Nguyen par
Short Story Assignment by Kelly NguyenShort Story Assignment by Kelly Nguyen
Short Story Assignment by Kelly Nguyenkellynguyen01
19 vues17 diapositives
Data structure and algorithm. par
Data structure and algorithm. Data structure and algorithm.
Data structure and algorithm. Abdul salam
19 vues24 diapositives
Chapter 3b- Process Communication (1) (1)(1) (1).pptx par
Chapter 3b- Process Communication (1) (1)(1) (1).pptxChapter 3b- Process Communication (1) (1)(1) (1).pptx
Chapter 3b- Process Communication (1) (1)(1) (1).pptxayeshabaig2004
5 vues30 diapositives
Advanced_Recommendation_Systems_Presentation.pptx par
Advanced_Recommendation_Systems_Presentation.pptxAdvanced_Recommendation_Systems_Presentation.pptx
Advanced_Recommendation_Systems_Presentation.pptxneeharikasingh29
5 vues9 diapositives

Dernier(20)

[DSC Europe 23] Zsolt Feleki - Machine Translation should we trust it.pptx par DataScienceConferenc1
[DSC Europe 23] Zsolt Feleki - Machine Translation should we trust it.pptx[DSC Europe 23] Zsolt Feleki - Machine Translation should we trust it.pptx
[DSC Europe 23] Zsolt Feleki - Machine Translation should we trust it.pptx
Short Story Assignment by Kelly Nguyen par kellynguyen01
Short Story Assignment by Kelly NguyenShort Story Assignment by Kelly Nguyen
Short Story Assignment by Kelly Nguyen
kellynguyen0119 vues
Data structure and algorithm. par Abdul salam
Data structure and algorithm. Data structure and algorithm.
Data structure and algorithm.
Abdul salam 19 vues
Chapter 3b- Process Communication (1) (1)(1) (1).pptx par ayeshabaig2004
Chapter 3b- Process Communication (1) (1)(1) (1).pptxChapter 3b- Process Communication (1) (1)(1) (1).pptx
Chapter 3b- Process Communication (1) (1)(1) (1).pptx
Advanced_Recommendation_Systems_Presentation.pptx par neeharikasingh29
Advanced_Recommendation_Systems_Presentation.pptxAdvanced_Recommendation_Systems_Presentation.pptx
Advanced_Recommendation_Systems_Presentation.pptx
CRIJ4385_Death Penalty_F23.pptx par yvettemm100
CRIJ4385_Death Penalty_F23.pptxCRIJ4385_Death Penalty_F23.pptx
CRIJ4385_Death Penalty_F23.pptx
yvettemm1006 vues
Understanding Hallucinations in LLMs - 2023 09 29.pptx par Greg Makowski
Understanding Hallucinations in LLMs - 2023 09 29.pptxUnderstanding Hallucinations in LLMs - 2023 09 29.pptx
Understanding Hallucinations in LLMs - 2023 09 29.pptx
Greg Makowski17 vues
Supercharging your Data with Azure AI Search and Azure OpenAI par Peter Gallagher
Supercharging your Data with Azure AI Search and Azure OpenAISupercharging your Data with Azure AI Search and Azure OpenAI
Supercharging your Data with Azure AI Search and Azure OpenAI
Peter Gallagher37 vues
Building Real-Time Travel Alerts par Timothy Spann
Building Real-Time Travel AlertsBuilding Real-Time Travel Alerts
Building Real-Time Travel Alerts
Timothy Spann111 vues
Vikas 500 BIG DATA TECHNOLOGIES LAB.pdf par vikas12611618
Vikas 500 BIG DATA TECHNOLOGIES LAB.pdfVikas 500 BIG DATA TECHNOLOGIES LAB.pdf
Vikas 500 BIG DATA TECHNOLOGIES LAB.pdf
vikas126116188 vues
RuleBookForTheFairDataEconomy.pptx par noraelstela1
RuleBookForTheFairDataEconomy.pptxRuleBookForTheFairDataEconomy.pptx
RuleBookForTheFairDataEconomy.pptx
noraelstela167 vues
Cross-network in Google Analytics 4.pdf par GA4 Tutorials
Cross-network in Google Analytics 4.pdfCross-network in Google Analytics 4.pdf
Cross-network in Google Analytics 4.pdf
GA4 Tutorials6 vues

The perfect couple: Uniting Large Language Models and Knowledge Graphs for Enhanced Knowledge Representation

  • 1. © 2023 Neo4j, Inc. All rights reserved. © 2023 Neo4j, Inc. All rights reserved. LLM 💕 KG: The Perfect Couple Uniting Large Language Models and Knowledge Graphs for Enhanced Knowledge Representation Kristof Neys Director Graph Data Science Technology
  • 2. © 2023 Neo4j, Inc. All rights reserved. 7/10 20/25 7/10 Top Retail Firms Top Financial Firms Top Software Vendors Anyway You Like It 2 Creator of the Property Graph and Cypher language at the core of the GQL ISO project. Fully integrated Data Science Library Thousands of Customers World-Wide 250,000 developers worldwide Industry Leaders use Neo4j On-Prem DB-as-a-Service In the Cloud
  • 3. © 2022 Neo4j, Inc. All rights reserved. 3 Topics We will cover: 1) Knowledge Graphs 2) Knowledge Graphs + LLMs ~ As a Front end 3) Knowledge Graphs + LLMs ~ As a Back end 4) How to get started on your graph journey
  • 4. © 2023 Neo4j, Inc. All rights reserved. 4 “In a world of infinite content, knowledge becomes [very] valuable” Denny Vrandečić, Wikidata
  • 5. © 2023 Neo4j, Inc. All rights reserved. 5 The Core Graph Object: A Knowledge Graph
  • 6. © 2023 Neo4j, Inc. All rights reserved. What are Knowledge Graphs? ● Entities can be real-world objects and abstract concepts ● Relationships represent the connections between entities ● Semantic description of the entities and relationships A knowledge graph is a structured representation of facts, consisting of entities, relationships and semantic descriptions
  • 7. © 2023 Neo4j, Inc. All rights reserved. 7 From Data points to a Knowledge Graph Car DRIVES name: “Dan” born: May 29, 1978 twitter: “@dan” name: “Ann” born: Dec 5, 1979 brand: “Volvo” model: “V90” description: since: Jan 10, 2021 LOVES LOVES LIVES_WITH O W N S Person Person
  • 8. © 2023 Neo4j, Inc. All rights reserved. User :VISITED Website User IPLocation Website IPLocation Website Website Website :VISITED :VISITED :VISITED :USED :USED : U S E D : V I S I T E D : V I S I T E D :VISITED :SAME_AS Graphs allows you to make implicit relationships…. ….explicit Graphs….Grow!
  • 9. © 2023 Neo4j, Inc. All rights reserved. :SAME_AS User :VISITED Website User IPLocation Website IPLocation Website Website Website :VISITED :VISITED :VISITED :USED :USED : U S E D : V I S I T E D : V I S I T E D :VISITED User :SAM E_AS :USED :VISITED PersonId: 1 PersonId: 1 PersonId: 1 User PersonId: 2 :VISITED …and can then group similar nodes…and create a new graph from the explicit relationships… A graph grows organically - gaining insights and enriching your data Graphs….Grow!
  • 10. © 2023 Neo4j, Inc. All rights reserved. Come and see us for the book on Knowledge Graphs
  • 11. © 2023 Neo4j, Inc. All rights reserved. 11 Knowledge Graph + LLM A marriage made in heaven
  • 12. © 2023 Neo4j, Inc. All rights reserved. 12 Setting the context - From a user point of view
  • 13. © 2023 Neo4j, Inc. All rights reserved. 13 As a front-end…
  • 14. © 2023 Neo4j, Inc. All rights reserved. 14 Architecture NeoDash Dashboard UI Neo4j Free text input APOC call Graph representations Embeddings Graph visualization of results NeoDash Dashboard UI Persist results Conceptual flow for a text-to-graph or graph-to-text application based on Neo4j + OpenAI.
  • 15. © 2023 Neo4j, Inc. All rights reserved. 15 Writing Code is soo last year….
  • 16. © 2023 Neo4j, Inc. All rights reserved. 16 As a back-end…
  • 17. © 2023 Neo4j, Inc. All rights reserved. 17 We are not making this up…
  • 18. © 2023 Neo4j, Inc. All rights reserved. 18 Three main ways to let LLM’s work with your Graph
  • 19. © 2023 Neo4j, Inc. All rights reserved. 19 Knowledge Graphs that enhance LLMs
  • 20. © 2023 Neo4j, Inc. All rights reserved. LLMs Core function…To manipulate strings… • GPT training focuses primarily on predicting the probability of text sequences and specifically for predicting which words come next in a sequence “When you play the game of thrones…. Input LLM …you win or you die. There is no middle ground.” Output
  • 21. © 2023 Neo4j, Inc. All rights reserved. 21 Nothing is perfect… but don’t push it!
  • 22. © 2023 Neo4j, Inc. All rights reserved.
  • 23. © 2023 Neo4j, Inc. All rights reserved. There is no need for this…!
  • 24. © 2023 Neo4j, Inc. All rights reserved. Whereas we all know what The Truth is…
  • 25. © 2023 Neo4j, Inc. All rights reserved.
  • 26. © 2023 Neo4j, Inc. All rights reserved. It’s all about Knowledge and Accuracy • Training data can be false • LLMs: training is focused on self-supervised learning • Cut-off date: i.e ChatGPT is only trained on pre Sep 2021 data • Inability to verify sources for answers • Sensitive to prompt (input) phrasing • Lack of explainability
  • 27. © 2023 Neo4j, Inc. All rights reserved. Making stuff up…
  • 28. © 2023 Neo4j, Inc. All rights reserved. In Summary…
  • 29. © 2023 Neo4j, Inc. All rights reserved. 29 So…, let’s solve this problem!
  • 30. © 2023 Neo4j, Inc. All rights reserved. How to Help LLMs Do Better? Few-Shot Learning 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
  • 31. © 2023 Neo4j, Inc. All rights reserved. Grounding Provide AI with the information to use for generating responses Best of Both Worlds Use the language understanding skills of LLMs but control the knowledge/sources it uses ● Improve accuracy & tailor to enterprise and use case ● Reduce hallucinations and other inconsistencies ● Control provenance Methods ● Internet search, plugins, agents ● Query generation ● Retrieval Augmented Generation (RAG) Image by GenAI (DALL-E)
  • 32. © 2023 Neo4j, Inc. All rights reserved. 32 Grounding with Retrieval Augmented Generation (RAG)
  • 33. Neo4j, Inc. All rights reserved 2021 33 What’s in it for me…?
  • 34. © 2023 Neo4j, Inc. All rights reserved. LLMs can help generate more accurate responses by considering the connections and dependencies within the graph and mapping new links as new data is identified. Flexible Schema means it is easy to grow your knowledge base whenever new information is available Relationships are data that is used to return explicit results Accuracy Vector Search adds semantic search
  • 35. © 2023 Neo4j, Inc. All rights reserved. Knowledge graphs supply the LLM with information about your company so answers are specific to your business, giving more context for more accurate responses. Add a layer of context over your LLM for accuracy and specificity Specificity
  • 36. © 2023 Neo4j, Inc. All rights reserved. Map relationships between search results and data source nodes Represent data sources as nodes Add metadata or annotations Verify the enriched responses from your LLM because each piece of information is linked to its sources and origins. Explainability
  • 37. © 2023 Neo4j, Inc. All rights reserved. LLM retrieves and returns information governed by your enterprise security and access control policies-down to the node level. Define policies by role or identity Integrates with identity and access management provider with SSO Security & Privacy Build constraints on nodes, labels, relationships, properties, specific parts of the graph, and even traversal depth
  • 38. © 2023 Neo4j, Inc. All rights reserved. Easily scale with autonomous clustering Reliability & Low-latency Knowledge graphs scale and are battle-tested to thousands of concurrent users, get answers quickly with incredibly fast query speeds. Incredibly fast traversals with index free adjacency
  • 39. © 2023 Neo4j, Inc. All rights reserved. 39 Use LLM to augment Knowledge Graphs ● Named Entity Recognition ● Knowledge Compression
  • 40. © 2023 Neo4j, Inc. All rights reserved. 40 Use LLM to augment Knowledge Graphs: Named Entity Recognition
  • 41. © 2023 Neo4j, Inc. All rights reserved. Creating a Knowledge Graph From Unstructured Text is Difficult Traditional entity extraction pipelines can be • resource intensive • difficult to transfer/generalize: ◦ specialized NLP libraries/tools ◦ domain specific ◦ require subject matter expertise ◦ lots of trial & error ◦ Mix of business rules, machine learning, and custom hand-rolled logic
  • 42. © 2023 Neo4j, Inc. All rights reserved. LLMs can Jumpstart Knowledge Graph Creation LLMs can be prompted to: 1. Extract data from unstructured text • Entity extraction, including pronouns and partial references • Entity disambiguation • Extraction of semantic relationships 2. Aide or directly perform graph ingestion • Determine desired output (Pandas DataFrame etc) • Structure extracted data (triples, json, csv) to work with Cypher insert templates Input Data LLM User Neo4j
  • 43. © 2023 Neo4j, Inc. All rights reserved. 43 Use LLM to augment Knowledge Graphs: Knowledge Compression
  • 44. © 2023 Neo4j, Inc. All rights reserved. Text Embeddings are a Key Concept for Knowledge Compression Consider the question: What is text embedding? It can be represented / translated as a vector using the OpenAI Embedding API: [-0.03156438, 0.0013196499, -0.01716885, -0.0008197554, 0.011872382, 0.0036221128, -0.022915626, -0.005925469, … (1528 more items to go here …] • This translation process is called Embedding. It is a machine learning process to convert complex, high-dimensional data e.g. text, image etc. into lower-dimensional representations(vectors) while preserving essential relationships and structure. • Embedding is the knowledge for AI as it is produced, understood and used by various algorithms and AI systems.
  • 45. © 2023 Neo4j, Inc. All rights reserved. Text Embedding Vectors for Semantic Search Given a question, find the most relevant documents based on a similarity metric (such as Cosine Similarity) between vector of the question and vectors of contents. Moving from keyword search to similarity (semantic) search. Q: what is text embedding? abstractId similarity 456 0.923445 22 0.892114 … ... Top K by similarity
  • 46. Use LLMs for Graph Enrichment Neo4j Inc. All rights reserved 2023 46 [0.2322,0.3321,….,0.0021] [0.3233,0.3543,….,0.0047] [0.5674,0.2134,….,0.0054] [0.4565,0.2345,….,0.0342] [0.8743,0.4343,….,0.0234] LLM APIs (OpenAI/ VertexAI/ AWS Bedrock etc.) Text Embeddings Article PDFs (Unstructured Data)
  • 47. © 2023 Neo4j, Inc. All rights reserved. 47 One last thing…
  • 48. © 2023 Neo4j, Inc. All rights reserved. 48 https://neo4j.com/blog/vector-search-deeper-insights/
  • 49. © 2023 Neo4j, Inc. All rights reserved.
  • 50. © 2023 Neo4j, Inc. All rights reserved. 50 How to get started on your Graph Journey?
  • 51. Neo4j, Inc. All rights reserved 2021
  • 52. Neo4j, Inc. All rights reserved 2021
  • 53. © 2023 Neo4j, Inc. All rights reserved. 53 And now in APOC too…
  • 54. © 2023 Neo4j, Inc. All rights reserved. 54 Some examples…
  • 55. © 2023 Neo4j, Inc. All rights reserved. 55
  • 56. © 2023 Neo4j, Inc. All rights reserved. 56
  • 57. © 2023 Neo4j, Inc. All rights reserved. © 2023 Neo4j, Inc. All rights reserved. Thank you! Contact us at sales@neo4j.com