Knowledge Graphs and Generative AI_GraphSummit Minneapolis Sept 20.pptx

Neo4j
Neo4jOpen Source NOSQL Graph Database um Neo4j
© 2023 Neo4j, Inc. All rights reserved.
© 2023 Neo4j, Inc. All rights reserved.
Knowledge Graphs and
Generative AI
LLMs with Graphs & Graph Data Science
1
Graph Summit Minneapolis
September 20, 2023
© 2023 Neo4j, Inc. All rights reserved.
© 2023 Neo4j, Inc. All rights reserved.
2
Agenda
1. Generative AI and LLMs
2. Grounding LLMs with
Knowledge Graphs
3. Demo
Phani Dathar Ph.D.
Director, Graph Data Science
© 2023 Neo4j, Inc. All rights reserved.
3
Generative AI and LLMs
artificial intelligence (AI) system that generates text, images, or
other media in response to prompts
Generative AI
are large neural networks with billions of parameters trained on large
quantities of text data often using self-supervised / semi-supervised
approaches. Eg: GPT-4/Bard/Claude
Large Language
Models (LLM)
ML approach that models the probability distribution over a
sequence of words.
Language Model
are trained on large scale data, using no supervision or self-
supervision, that can be adapted to a wide range of downstream
tasks.
Foundation Models
(FM)
© 2023 Neo4j, Inc. All rights reserved.
4
LLMs Give Us an Amazing Opportunity to:
Automate data
retrieval tasks
1
Improve customer
service experiences
Expedite reading, understanding,
& summarizing
2
3
Generate
content & code
4
© 2023 Neo4j, Inc. All rights reserved.
But There Are Challenges…
Knowledge
cut-off
1
Reasonable
answers, not always
accurate
Can inherit bias through
training data
2 3
Lack of enterprise
domain knowledge
4
Inability to verify or
attribute sources
5
© 2023 Neo4j, Inc. All rights reserved.
© 2023 Neo4j, Inc. All rights reserved.
How can you take advantage of
this massive opportunity while
overcoming these challenges?
6
© 2023 Neo4j, Inc. All rights reserved.
© 2023 Neo4j, Inc. All rights reserved.
7
Use a Knowledge Graph to Ground LLMs
© 2023 Neo4j, Inc. All rights reserved.
8
Grounding with Neo4j Knowledge Graphs
Connect Consume
Enrich
Context rich,
connected view of
your data that enables
easier decision making
Enhance your data
with graph data
science, text
embeddings, and
additional derived
context
Ground responses
with information and
context in the graph
Improve search
relevance combining
vector search and
graph traversals
© 2023 Neo4j, Inc. All rights reserved.
© 2023 Neo4j, Inc. All rights reserved.
9
With Knowledge Graphs
Connected Data
© 2023 Neo4j, Inc. All rights reserved.
10
Knowledge Graphs
Structured
Unstructured
Ontologies
Natural
Relationships
© 2023 Neo4j, Inc. All rights reserved.
What can you do with a knowledge graph?
Collaborative filtering: users who
bought X, also bought Y (open-
ended pattern matching)
What items make you more likely to
buy additional items in subsequent
transactions?
Traverse hierarchies - what items
are similar 4+ hops out?
How many flagged accounts
are in the applicant’s
network 4+ hops out?
How many login / account
variables in common?
Add these metrics to your
approval process
What completes the
connections from genes to
diseases to targets?
What genes can be reached 4+
hops out from a known drug
target?
What mechanisms in common
are there between two drugs?
Financial Domain Life Sciences Marketing and
Recommendations
© 2023 Neo4j, Inc. All rights reserved.
© 2023 Neo4j, Inc. All rights reserved.
12
With Cypher Patterns, Graph Data Science & Text
Embeddings
Enrich
© 2023 Neo4j, Inc. All rights reserved.
13
Enriched Knowledge Graphs
Structured
Unstructured
Ontologies
Graph Algorithms and
Graph Queries
Semantics,
Derived Relationships and
Additional Context
Natural
Relationships
© 2023 Neo4j, Inc. All rights reserved.
Graph Enrichment
14
Human-crafted query, human-readable result
MATCH (p1:Person)-[:ENEMY]->(:Person)<-[:ENEMY]-(p2:PERSON)
MERGE (p1)-[:FRIEND]->(p2)
AI-learned formula, machine-readable result
Predefined formula, human-readable result
PageRank(Emil) = 13.25
PageRank(Phani) = 4.83
PageRank(Katie) = 4.75
Node2Vec(Emil) =[5.4 5.1 2.4 4.5 3.1]
Node2Vec(Phani)=[2.8 1.8 7.2 0.9 3.0]
Node2Vec(Katie)=[1.4 5.2 4.4 3.9 3.2]
Queries
Algorithms
Embeddings
Machine
Learning
Workflows
Train ML models
based on results
© 2023 Neo4j, Inc. All rights reserved.
What are Graph Algorithms?
© 2023 Neo4j, Inc. All rights reserved.
Graph Algorithms for Insights
Outliers, Influencers, Vulnerabilities,...
Recommendations, Homophily, Outliers,...
Recommendations, What-if Analysis, Disambiguation,...
Dimensionality Reduction, Representation Learning,...
Shortest Path, Optimal path, Route Optimization,...
Link prediction, Recommendations, Next-Best Action,...
© 2023 Neo4j, Inc. All rights reserved.
Text Embeddings for Semantics
[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.
Graph Embeddings for Context and Semantics
[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]
Dario Amodei [0.0432, 0.4432, …, 0.3412]
Daniela Amodei [0.7643, 0.4214, …, 0.0043]
Shariq Hashme [0.1234, 0.4544, …, 0.0543]
Graph
Embeddings
© 2023 Neo4j, Inc. All rights reserved.
© 2023 Neo4j, Inc. All rights reserved.
19
Contextual and Semantic Information Retrieval
Consume
© 2023 Neo4j, Inc. All rights reserved.
20
Contextual and Semantic Information
Vector Similarity
Search
Graph Traversals &
Pattern Matching
Knowledge Graph
Inference & ML
Find relevant documents and
content for user queries
Find people, places, and things
associated to content. Identify
patterns in connected data.
Further improve search
relevance and insights by
enhancing your Knowledge
Graph.
Use graph algorithms and ML
to discover new relationships,
entities, and groups.
Vector Databases
Graph Database
Neo4j
SEMANTICS
CONTEXT
RELEVANCE
HNSW
© 2023 Neo4j, Inc. All rights reserved.
21
Knowledge Retrieval with Neo4j
© 2023 Neo4j, Inc. All rights reserved.
Knowledge Retrieval with Neo4j
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?
© 2023 Neo4j, Inc. All rights reserved.
RAG (Retrieval Augmented Generation) Pattern with Neo4j
Neo4j
LLM API
User
Cypher Prompt + Relevant
Information
Prompt Response
Relevant Results
Retrieve relevant results from Neo4j
using LLM to generate embeddings
and/or Cypher
2
3
1
1
2
3
Combine relevant results with prompt
Instruct LLM to only use the relevant
results to generate response
LLM API
Embeddings and/or
Cypher Generation
Improved ACCURACY and RELEVANCE of
responses
E.g. What is the impact of Hurricane Calvin?
Hurricane Calvin caused minor flooding in
Hawaii….
vs…
50 policyholders may be at risk of property
damage due to Hurricane Calvin.
© 2023 Neo4j, Inc. All rights reserved.
Knowledge Graphs Graph Feature
Engineering and
Graph ML
Graph Analytics,
Investigations and
Counterfactuals
Contextual and
Semantic Information
Retrieval
Capitalize
Interpret
Connect Analyze
Neo4j Neo4j GDS Neo4j Bloom Neo4j Connectors
Neo4j Enriches All Phases of an AI Ecosystem
© 2023 Neo4j, Inc. All rights reserved.
© 2023 Neo4j, Inc. All rights reserved.
25
Demo
© 2023 Neo4j, Inc. All rights reserved.
Typical Business Resilience Data
Analyze business impact of
● software & OS vulnerabilities,
● hardware & software upgrades,
● building/geographic disasters
● changes to business data formats
…across mission critical applications
and business locations
hierarchies, flows,
relationships…
© 2023 Neo4j, Inc. All rights reserved.
Full Data Model
CVE Data
Business Data Elements
Vendors,Software
Business Tasks
Application Instances
Data Transfers
People/Roles
Locations
IT Assets
© 2023 Neo4j, Inc. All rights reserved.
LangChain Demo Application
• Translates English to Cypher
• Consumption using LLM model
with few shot prompting
• Data augmentation from Neo4j
response
© 2023 Neo4j, Inc. All rights reserved.
Questions
• How many CVEs are reported till date?
• Which applications are affected by CVE CVE-2019-16942?
• Which applications are similar to Finacle Core Banking?
• What business processes are supported by the application Finacle
Core Banking?
• What is the location with the highest Crime Risk? Please include the
five most recent crime events
© 2023 Neo4j, Inc. All rights reserved.
Knowledge Graph
Neo4j AuraDS
Graph Data
Science
Graph DB
Intelligent Apps
Knowledge
Extraction and
Ingestion
Structured
Unstructured
Ontologies
Data Sources API Layer
Customer Service
Ticket Triaging
Recommendations
News Content &
Discovery
Enterprise
Knowledge Search
Patient
Prioritization
Clinical Decision
Support Systems
Pharmacovigilance
Health Assistants
FAQ Bots
Neo4j and Generative AI
Bloom
Google Vertex AI
Azure OpenAI
Service
Amazon Bedrock
Google Vertex AI
Azure OpenAI
Service
Amazon Bedrock
Step 1: Capture Knowledge Step2: Enrich Step 3: Semantic & Contextual Search
© 2023 Neo4j, Inc. All rights reserved.
© 2023 Neo4j, Inc. All rights reserved.
31
phani.dathar@neo4j.com
Thank you!
1 von 31

Recomendados

The Knowledge Graph Explosion von
The Knowledge Graph ExplosionThe Knowledge Graph Explosion
The Knowledge Graph ExplosionNeo4j
185 views16 Folien
Knowledge Graphs and Generative AI von
Knowledge Graphs and Generative AIKnowledge Graphs and Generative AI
Knowledge Graphs and Generative AINeo4j
150 views30 Folien
The Data Platform for Today’s Intelligent Applications von
The Data Platform for Today’s Intelligent ApplicationsThe Data Platform for Today’s Intelligent Applications
The Data Platform for Today’s Intelligent ApplicationsNeo4j
215 views22 Folien
The perfect couple: Uniting Large Language Models and Knowledge Graphs for En... von
The perfect couple: Uniting Large Language Models and Knowledge Graphs for En...The perfect couple: Uniting Large Language Models and Knowledge Graphs for En...
The perfect couple: Uniting Large Language Models and Knowledge Graphs for En...Neo4j
240 views57 Folien
Introduction to Knowledge Graphs and Semantic AI von
Introduction to Knowledge Graphs and Semantic AIIntroduction to Knowledge Graphs and Semantic AI
Introduction to Knowledge Graphs and Semantic AISemantic Web Company
7.9K views89 Folien
Demystifying Graph Neural Networks von
Demystifying Graph Neural NetworksDemystifying Graph Neural Networks
Demystifying Graph Neural NetworksNeo4j
343 views32 Folien

Más contenido relacionado

Was ist angesagt?

Workshop Tel Aviv - Graph Data Science von
Workshop Tel Aviv - Graph Data ScienceWorkshop Tel Aviv - Graph Data Science
Workshop Tel Aviv - Graph Data ScienceNeo4j
132 views73 Folien
https://www.slideshare.net/neo4j/a-fusion-of-machine-learning-and-graph-analy... von
https://www.slideshare.net/neo4j/a-fusion-of-machine-learning-and-graph-analy...https://www.slideshare.net/neo4j/a-fusion-of-machine-learning-and-graph-analy...
https://www.slideshare.net/neo4j/a-fusion-of-machine-learning-and-graph-analy...Neo4j
90 views26 Folien
Natural Language Search with Knowledge Graphs (Haystack 2019) von
Natural Language Search with Knowledge Graphs (Haystack 2019)Natural Language Search with Knowledge Graphs (Haystack 2019)
Natural Language Search with Knowledge Graphs (Haystack 2019)Trey Grainger
1.9K views95 Folien
Deep dive into LangChain integration with Neo4j.pptx von
Deep dive into LangChain integration with Neo4j.pptxDeep dive into LangChain integration with Neo4j.pptx
Deep dive into LangChain integration with Neo4j.pptxTomazBratanic1
876 views21 Folien
Neo4j GraphSummit London - The Path To Success With Graph Database and Data S... von
Neo4j GraphSummit London - The Path To Success With Graph Database and Data S...Neo4j GraphSummit London - The Path To Success With Graph Database and Data S...
Neo4j GraphSummit London - The Path To Success With Graph Database and Data S...Neo4j
129 views42 Folien
Workshop - Build a Graph Solution von
Workshop - Build a Graph SolutionWorkshop - Build a Graph Solution
Workshop - Build a Graph SolutionNeo4j
94 views61 Folien

Was ist angesagt?(20)

Workshop Tel Aviv - Graph Data Science von Neo4j
Workshop Tel Aviv - Graph Data ScienceWorkshop Tel Aviv - Graph Data Science
Workshop Tel Aviv - Graph Data Science
Neo4j132 views
https://www.slideshare.net/neo4j/a-fusion-of-machine-learning-and-graph-analy... von Neo4j
https://www.slideshare.net/neo4j/a-fusion-of-machine-learning-and-graph-analy...https://www.slideshare.net/neo4j/a-fusion-of-machine-learning-and-graph-analy...
https://www.slideshare.net/neo4j/a-fusion-of-machine-learning-and-graph-analy...
Neo4j90 views
Natural Language Search with Knowledge Graphs (Haystack 2019) von Trey Grainger
Natural Language Search with Knowledge Graphs (Haystack 2019)Natural Language Search with Knowledge Graphs (Haystack 2019)
Natural Language Search with Knowledge Graphs (Haystack 2019)
Trey Grainger1.9K views
Deep dive into LangChain integration with Neo4j.pptx von TomazBratanic1
Deep dive into LangChain integration with Neo4j.pptxDeep dive into LangChain integration with Neo4j.pptx
Deep dive into LangChain integration with Neo4j.pptx
TomazBratanic1876 views
Neo4j GraphSummit London - The Path To Success With Graph Database and Data S... von Neo4j
Neo4j GraphSummit London - The Path To Success With Graph Database and Data S...Neo4j GraphSummit London - The Path To Success With Graph Database and Data S...
Neo4j GraphSummit London - The Path To Success With Graph Database and Data S...
Neo4j129 views
Workshop - Build a Graph Solution von Neo4j
Workshop - Build a Graph SolutionWorkshop - Build a Graph Solution
Workshop - Build a Graph Solution
Neo4j94 views
How Graph Data Science can turbocharge your Knowledge Graph von Neo4j
How Graph Data Science can turbocharge your Knowledge GraphHow Graph Data Science can turbocharge your Knowledge Graph
How Graph Data Science can turbocharge your Knowledge Graph
Neo4j161 views
A Universe of Knowledge Graphs von Neo4j
A Universe of Knowledge GraphsA Universe of Knowledge Graphs
A Universe of Knowledge Graphs
Neo4j256 views
Knowledge Graphs & Graph Data Science, More Context, Better Predictions - Neo... von Neo4j
Knowledge Graphs & Graph Data Science, More Context, Better Predictions - Neo...Knowledge Graphs & Graph Data Science, More Context, Better Predictions - Neo...
Knowledge Graphs & Graph Data Science, More Context, Better Predictions - Neo...
Neo4j154 views
The Neo4j Data Platform for Today & Tomorrow.pdf von 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 views
Introduction of Knowledge Graphs von Jeff Z. Pan
Introduction of Knowledge GraphsIntroduction of Knowledge Graphs
Introduction of Knowledge Graphs
Jeff Z. Pan1.9K views
Neo4j GraphSummit London March 2023 Emil Eifrem Keynote.pptx von Neo4j
Neo4j GraphSummit London March 2023 Emil Eifrem Keynote.pptxNeo4j GraphSummit London March 2023 Emil Eifrem Keynote.pptx
Neo4j GraphSummit London March 2023 Emil Eifrem Keynote.pptx
Neo4j127 views
Optimizing the Supply Chain with Knowledge Graphs, IoT and Digital Twins_Moor... von Neo4j
Optimizing the Supply Chain with Knowledge Graphs, IoT and Digital Twins_Moor...Optimizing the Supply Chain with Knowledge Graphs, IoT and Digital Twins_Moor...
Optimizing the Supply Chain with Knowledge Graphs, IoT and Digital Twins_Moor...
Neo4j351 views
Knowledge Graphs and Graph Data Science: More Context, Better Predictions (Ne... von 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 views
Talend Interview Questions and Answers | Talend Online Training | Talend Tuto... von Edureka!
Talend Interview Questions and Answers | Talend Online Training | Talend Tuto...Talend Interview Questions and Answers | Talend Online Training | Talend Tuto...
Talend Interview Questions and Answers | Talend Online Training | Talend Tuto...
Edureka!941 views
Graph Data Modeling Best Practices(Eric_Monk).pptx von Neo4j
Graph Data Modeling Best Practices(Eric_Monk).pptxGraph Data Modeling Best Practices(Eric_Monk).pptx
Graph Data Modeling Best Practices(Eric_Monk).pptx
Neo4j61 views
Graphs for Finance - AML with Neo4j Graph Data Science von 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
Neo4j335 views
Knowledge Graph Introduction von Sören Auer
Knowledge Graph IntroductionKnowledge Graph Introduction
Knowledge Graph Introduction
Sören Auer615 views

Similar a Knowledge Graphs and Generative AI_GraphSummit Minneapolis Sept 20.pptx

The Path To Success With Graph Database and Analytics von
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
41 views39 Folien
The Art of the Possible with Graph Technology von
The Art of the Possible with Graph TechnologyThe Art of the Possible with Graph Technology
The Art of the Possible with Graph TechnologyNeo4j
29 views28 Folien
Neo4j : la voie du succès avec les bases de données de graphes et la Graph Da... von
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...Neo4j
39 views30 Folien
El camino hacia el éxito con las bases de datos de grafos, la ciencia de dato... von
El camino hacia el éxito con las bases de datos de grafos, la ciencia de dato...El camino hacia el éxito con las bases de datos de grafos, la ciencia de dato...
El camino hacia el éxito con las bases de datos de grafos, la ciencia de dato...Neo4j
62 views49 Folien
The path to success with Graph Database and Graph Data Science von
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 ScienceNeo4j
106 views31 Folien
The Art of the Possible with Graph - Sudhir Hasbe - GraphSummit London 14 Nov... von
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...Neo4j
77 views47 Folien

Similar a Knowledge Graphs and Generative AI_GraphSummit Minneapolis Sept 20.pptx(20)

The Path To Success With Graph Database and Analytics von 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
Neo4j41 views
The Art of the Possible with Graph Technology von 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 views
Neo4j : la voie du succès avec les bases de données de graphes et la Graph Da... von 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 views
El camino hacia el éxito con las bases de datos de grafos, la ciencia de dato... von Neo4j
El camino hacia el éxito con las bases de datos de grafos, la ciencia de dato...El camino hacia el éxito con las bases de datos de grafos, la ciencia de dato...
El camino hacia el éxito con las bases de datos de grafos, la ciencia de dato...
Neo4j62 views
The path to success with Graph Database and Graph Data Science von 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 views
The Art of the Possible with Graph - Sudhir Hasbe - GraphSummit London 14 Nov... von 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...
Neo4j77 views
Get Started with the Most Advanced Edition Yet of Neo4j Graph Data Science von 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 views
La strada verso il successo con i database a grafo, la Graph Data Science e l... von 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 views
The art of the possible with graph technology_Neo4j GraphSummit Dublin 2023.pptx von 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 views
The path to success with graph database and graph data science_ Neo4j GraphSu... von 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 views
Leveraging Graphs for Artificial Intelligence and Machine Learning - Phani Da... von 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 views
The Art of the Possible with Graph Technology von 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 views
Neo4j GraphSummit Copenhagen - The Art Of The Possible With Graph Technology ... von 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 ...
Neo4j54 views
The Data Platform for Today's Intelligent Applications.pdf von 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
Neo4j98 views
Deeper Insights with Graph Data Science von Neo4j
Deeper Insights with Graph Data ScienceDeeper Insights with Graph Data Science
Deeper Insights with Graph Data Science
Neo4j51 views
Optimizing Your Supply Chain with Neo4j von Neo4j
Optimizing Your Supply Chain with Neo4jOptimizing Your Supply Chain with Neo4j
Optimizing Your Supply Chain with Neo4j
Neo4j46 views
Modeling Cybersecurity with Neo4j, Based on Real-Life Data Insights von 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 views
Neo4j y GenAI von Neo4j
Neo4j y GenAI Neo4j y GenAI
Neo4j y GenAI
Neo4j54 views
Neo4j : L’art des Possibles avec la Technologie des Graphes von Neo4j
Neo4j : L’art des Possibles avec la Technologie des GraphesNeo4j : L’art des Possibles avec la Technologie des Graphes
Neo4j : L’art des Possibles avec la Technologie des Graphes
Neo4j72 views
Building Data Ecosystems for Accelerated Discovery von adamkraut
Building Data Ecosystems for Accelerated DiscoveryBuilding Data Ecosystems for Accelerated Discovery
Building Data Ecosystems for Accelerated Discovery
adamkraut33 views

Más de Neo4j

FIMA 2023 Neo4j & FS - Entity Resolution.pptx von
FIMA 2023 Neo4j & FS - Entity Resolution.pptxFIMA 2023 Neo4j & FS - Entity Resolution.pptx
FIMA 2023 Neo4j & FS - Entity Resolution.pptxNeo4j
12 views26 Folien
Operations & Data Graph von
Operations & Data GraphOperations & Data Graph
Operations & Data GraphNeo4j
43 views25 Folien
TAGTTOO: La nova xarxa social von
TAGTTOO: La nova xarxa socialTAGTTOO: La nova xarxa social
TAGTTOO: La nova xarxa socialNeo4j
26 views19 Folien
El Arte de lo Possible von
El Arte de lo PossibleEl Arte de lo Possible
El Arte de lo PossibleNeo4j
50 views35 Folien
Roadmap y Novedades de producto von
Roadmap y Novedades de productoRoadmap y Novedades de producto
Roadmap y Novedades de productoNeo4j
58 views33 Folien
Neo4j : Graphes de Connaissance, IA et LLMs von
Neo4j : Graphes de Connaissance, IA et LLMsNeo4j : Graphes de Connaissance, IA et LLMs
Neo4j : Graphes de Connaissance, IA et LLMsNeo4j
54 views20 Folien

Más de Neo4j(20)

FIMA 2023 Neo4j & FS - Entity Resolution.pptx von Neo4j
FIMA 2023 Neo4j & FS - Entity Resolution.pptxFIMA 2023 Neo4j & FS - Entity Resolution.pptx
FIMA 2023 Neo4j & FS - Entity Resolution.pptx
Neo4j12 views
Operations & Data Graph von Neo4j
Operations & Data GraphOperations & Data Graph
Operations & Data Graph
Neo4j43 views
TAGTTOO: La nova xarxa social von Neo4j
TAGTTOO: La nova xarxa socialTAGTTOO: La nova xarxa social
TAGTTOO: La nova xarxa social
Neo4j26 views
El Arte de lo Possible von Neo4j
El Arte de lo PossibleEl Arte de lo Possible
El Arte de lo Possible
Neo4j50 views
Roadmap y Novedades de producto von Neo4j
Roadmap y Novedades de productoRoadmap y Novedades de producto
Roadmap y Novedades de producto
Neo4j58 views
Neo4j : Graphes de Connaissance, IA et LLMs von Neo4j
Neo4j : Graphes de Connaissance, IA et LLMsNeo4j : Graphes de Connaissance, IA et LLMs
Neo4j : Graphes de Connaissance, IA et LLMs
Neo4j54 views
Les nouveautés produit Neo4j von Neo4j
 Les nouveautés produit Neo4j Les nouveautés produit Neo4j
Les nouveautés produit Neo4j
Neo4j31 views
Sopra Steria : Analyse intelligente des réseaux dans le domaine des télécommu... von 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...
Neo4j27 views
Generali : SPIDER, notre produit au cœur des enjeux Generali en termes de Com... von 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...
Neo4j54 views
Neo4j Generative AI workshop at GraphSummit London 14 Nov 2023.pdf von 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
Neo4j59 views
Neo4j & AWS Bedrock workshop at GraphSummit London 14 Nov 2023.pptx von 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
Neo4j55 views
Neo4j workshop at GraphSummit London 14 Nov 2023.pdf von 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
Neo4j53 views
Neo4j Product Updates & Knowledge Graphs at GraphSummit London 14 Nov 2023.pptx von 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
Neo4j66 views
AstraZeneca at Neo4j GraphSummit London 14Nov23.pptx von Neo4j
AstraZeneca at Neo4j GraphSummit London 14Nov23.pptxAstraZeneca at Neo4j GraphSummit London 14Nov23.pptx
AstraZeneca at Neo4j GraphSummit London 14Nov23.pptx
Neo4j47 views
Google Cloud at GraphSummit London 14 Nov 2023.pptx von 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
Neo4j27 views
Northern Gas Networks and CKDelta at Neo4j GraphSummit London 14Nov23.pptx von 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 views
Peek into Neo4j Product Strategy and Roadmap von Neo4j
Peek into Neo4j Product Strategy and RoadmapPeek into Neo4j Product Strategy and Roadmap
Peek into Neo4j Product Strategy and Roadmap
Neo4j87 views
Transforming Intelligence Analysis with Knowledge Graphs von Neo4j
Transforming Intelligence Analysis with Knowledge GraphsTransforming Intelligence Analysis with Knowledge Graphs
Transforming Intelligence Analysis with Knowledge Graphs
Neo4j62 views
Ontology Driven Data for Fleet Management von Neo4j
Ontology Driven Data for Fleet ManagementOntology Driven Data for Fleet Management
Ontology Driven Data for Fleet Management
Neo4j54 views
Unleash the Power of Neo4j with GPT and Large Language Models: Harmonizing Co... von Neo4j
Unleash the Power of Neo4j with GPT and Large Language Models: Harmonizing Co...Unleash the Power of Neo4j with GPT and Large Language Models: Harmonizing Co...
Unleash the Power of Neo4j with GPT and Large Language Models: Harmonizing Co...
Neo4j78 views

Último

Why and How CloudStack at weSystems - Stephan Bienek - weSystems von
Why and How CloudStack at weSystems - Stephan Bienek - weSystemsWhy and How CloudStack at weSystems - Stephan Bienek - weSystems
Why and How CloudStack at weSystems - Stephan Bienek - weSystemsShapeBlue
111 views13 Folien
Microsoft Power Platform.pptx von
Microsoft Power Platform.pptxMicrosoft Power Platform.pptx
Microsoft Power Platform.pptxUni Systems S.M.S.A.
67 views38 Folien
CloudStack Managed User Data and Demo - Harikrishna Patnala - ShapeBlue von
CloudStack Managed User Data and Demo - Harikrishna Patnala - ShapeBlueCloudStack Managed User Data and Demo - Harikrishna Patnala - ShapeBlue
CloudStack Managed User Data and Demo - Harikrishna Patnala - ShapeBlueShapeBlue
46 views13 Folien
Network Source of Truth and Infrastructure as Code revisited von
Network Source of Truth and Infrastructure as Code revisitedNetwork Source of Truth and Infrastructure as Code revisited
Network Source of Truth and Infrastructure as Code revisitedNetwork Automation Forum
42 views45 Folien
DRaaS using Snapshot copy and destination selection (DRaaS) - Alexandre Matti... von
DRaaS using Snapshot copy and destination selection (DRaaS) - Alexandre Matti...DRaaS using Snapshot copy and destination selection (DRaaS) - Alexandre Matti...
DRaaS using Snapshot copy and destination selection (DRaaS) - Alexandre Matti...ShapeBlue
46 views29 Folien
Updates on the LINSTOR Driver for CloudStack - Rene Peinthor - LINBIT von
Updates on the LINSTOR Driver for CloudStack - Rene Peinthor - LINBITUpdates on the LINSTOR Driver for CloudStack - Rene Peinthor - LINBIT
Updates on the LINSTOR Driver for CloudStack - Rene Peinthor - LINBITShapeBlue
91 views8 Folien

Último(20)

Why and How CloudStack at weSystems - Stephan Bienek - weSystems von ShapeBlue
Why and How CloudStack at weSystems - Stephan Bienek - weSystemsWhy and How CloudStack at weSystems - Stephan Bienek - weSystems
Why and How CloudStack at weSystems - Stephan Bienek - weSystems
ShapeBlue111 views
CloudStack Managed User Data and Demo - Harikrishna Patnala - ShapeBlue von ShapeBlue
CloudStack Managed User Data and Demo - Harikrishna Patnala - ShapeBlueCloudStack Managed User Data and Demo - Harikrishna Patnala - ShapeBlue
CloudStack Managed User Data and Demo - Harikrishna Patnala - ShapeBlue
ShapeBlue46 views
DRaaS using Snapshot copy and destination selection (DRaaS) - Alexandre Matti... von ShapeBlue
DRaaS using Snapshot copy and destination selection (DRaaS) - Alexandre Matti...DRaaS using Snapshot copy and destination selection (DRaaS) - Alexandre Matti...
DRaaS using Snapshot copy and destination selection (DRaaS) - Alexandre Matti...
ShapeBlue46 views
Updates on the LINSTOR Driver for CloudStack - Rene Peinthor - LINBIT von ShapeBlue
Updates on the LINSTOR Driver for CloudStack - Rene Peinthor - LINBITUpdates on the LINSTOR Driver for CloudStack - Rene Peinthor - LINBIT
Updates on the LINSTOR Driver for CloudStack - Rene Peinthor - LINBIT
ShapeBlue91 views
Migrating VMware Infra to KVM Using CloudStack - Nicolas Vazquez - ShapeBlue von ShapeBlue
Migrating VMware Infra to KVM Using CloudStack - Nicolas Vazquez - ShapeBlueMigrating VMware Infra to KVM Using CloudStack - Nicolas Vazquez - ShapeBlue
Migrating VMware Infra to KVM Using CloudStack - Nicolas Vazquez - ShapeBlue
ShapeBlue96 views
Centralized Logging Feature in CloudStack using ELK and Grafana - Kiran Chava... von ShapeBlue
Centralized Logging Feature in CloudStack using ELK and Grafana - Kiran Chava...Centralized Logging Feature in CloudStack using ELK and Grafana - Kiran Chava...
Centralized Logging Feature in CloudStack using ELK and Grafana - Kiran Chava...
ShapeBlue48 views
TrustArc Webinar - Managing Online Tracking Technology Vendors_ A Checklist f... von TrustArc
TrustArc Webinar - Managing Online Tracking Technology Vendors_ A Checklist f...TrustArc Webinar - Managing Online Tracking Technology Vendors_ A Checklist f...
TrustArc Webinar - Managing Online Tracking Technology Vendors_ A Checklist f...
TrustArc77 views
Elevating Privacy and Security in CloudStack - Boris Stoyanov - ShapeBlue von ShapeBlue
Elevating Privacy and Security in CloudStack - Boris Stoyanov - ShapeBlueElevating Privacy and Security in CloudStack - Boris Stoyanov - ShapeBlue
Elevating Privacy and Security in CloudStack - Boris Stoyanov - ShapeBlue
ShapeBlue96 views
CloudStack and GitOps at Enterprise Scale - Alex Dometrius, Rene Glover - AT&T von ShapeBlue
CloudStack and GitOps at Enterprise Scale - Alex Dometrius, Rene Glover - AT&TCloudStack and GitOps at Enterprise Scale - Alex Dometrius, Rene Glover - AT&T
CloudStack and GitOps at Enterprise Scale - Alex Dometrius, Rene Glover - AT&T
ShapeBlue56 views
What’s New in CloudStack 4.19 - Abhishek Kumar - ShapeBlue von ShapeBlue
What’s New in CloudStack 4.19 - Abhishek Kumar - ShapeBlueWhat’s New in CloudStack 4.19 - Abhishek Kumar - ShapeBlue
What’s New in CloudStack 4.19 - Abhishek Kumar - ShapeBlue
ShapeBlue131 views
GDG Cloud Southlake 28 Brad Taylor and Shawn Augenstein Old Problems in the N... von James Anderson
GDG Cloud Southlake 28 Brad Taylor and Shawn Augenstein Old Problems in the N...GDG Cloud Southlake 28 Brad Taylor and Shawn Augenstein Old Problems in the N...
GDG Cloud Southlake 28 Brad Taylor and Shawn Augenstein Old Problems in the N...
James Anderson133 views
Zero to Cloud Hero: Crafting a Private Cloud from Scratch with XCP-ng, Xen Or... von ShapeBlue
Zero to Cloud Hero: Crafting a Private Cloud from Scratch with XCP-ng, Xen Or...Zero to Cloud Hero: Crafting a Private Cloud from Scratch with XCP-ng, Xen Or...
Zero to Cloud Hero: Crafting a Private Cloud from Scratch with XCP-ng, Xen Or...
ShapeBlue88 views
How to Re-use Old Hardware with CloudStack. Saving Money and the Environment ... von ShapeBlue
How to Re-use Old Hardware with CloudStack. Saving Money and the Environment ...How to Re-use Old Hardware with CloudStack. Saving Money and the Environment ...
How to Re-use Old Hardware with CloudStack. Saving Money and the Environment ...
ShapeBlue65 views
Backup and Disaster Recovery with CloudStack and StorPool - Workshop - Venko ... von ShapeBlue
Backup and Disaster Recovery with CloudStack and StorPool - Workshop - Venko ...Backup and Disaster Recovery with CloudStack and StorPool - Workshop - Venko ...
Backup and Disaster Recovery with CloudStack and StorPool - Workshop - Venko ...
ShapeBlue77 views
Five Things You SHOULD Know About Postman von Postman
Five Things You SHOULD Know About PostmanFive Things You SHOULD Know About Postman
Five Things You SHOULD Know About Postman
Postman40 views

Knowledge Graphs and Generative AI_GraphSummit Minneapolis Sept 20.pptx

  • 1. © 2023 Neo4j, Inc. All rights reserved. © 2023 Neo4j, Inc. All rights reserved. Knowledge Graphs and Generative AI LLMs with Graphs & Graph Data Science 1 Graph Summit Minneapolis September 20, 2023
  • 2. © 2023 Neo4j, Inc. All rights reserved. © 2023 Neo4j, Inc. All rights reserved. 2 Agenda 1. Generative AI and LLMs 2. Grounding LLMs with Knowledge Graphs 3. Demo Phani Dathar Ph.D. Director, Graph Data Science
  • 3. © 2023 Neo4j, Inc. All rights reserved. 3 Generative AI and LLMs artificial intelligence (AI) system that generates text, images, or other media in response to prompts Generative AI are large neural networks with billions of parameters trained on large quantities of text data often using self-supervised / semi-supervised approaches. Eg: GPT-4/Bard/Claude Large Language Models (LLM) ML approach that models the probability distribution over a sequence of words. Language Model are trained on large scale data, using no supervision or self- supervision, that can be adapted to a wide range of downstream tasks. Foundation Models (FM)
  • 4. © 2023 Neo4j, Inc. All rights reserved. 4 LLMs Give Us an Amazing Opportunity to: Automate data retrieval tasks 1 Improve customer service experiences Expedite reading, understanding, & summarizing 2 3 Generate content & code 4
  • 5. © 2023 Neo4j, Inc. All rights reserved. But There Are Challenges… Knowledge cut-off 1 Reasonable answers, not always accurate Can inherit bias through training data 2 3 Lack of enterprise domain knowledge 4 Inability to verify or attribute sources 5
  • 6. © 2023 Neo4j, Inc. All rights reserved. © 2023 Neo4j, Inc. All rights reserved. How can you take advantage of this massive opportunity while overcoming these challenges? 6
  • 7. © 2023 Neo4j, Inc. All rights reserved. © 2023 Neo4j, Inc. All rights reserved. 7 Use a Knowledge Graph to Ground LLMs
  • 8. © 2023 Neo4j, Inc. All rights reserved. 8 Grounding with Neo4j Knowledge Graphs Connect Consume Enrich Context rich, connected view of your data that enables easier decision making Enhance your data with graph data science, text embeddings, and additional derived context Ground responses with information and context in the graph Improve search relevance combining vector search and graph traversals
  • 9. © 2023 Neo4j, Inc. All rights reserved. © 2023 Neo4j, Inc. All rights reserved. 9 With Knowledge Graphs Connected Data
  • 10. © 2023 Neo4j, Inc. All rights reserved. 10 Knowledge Graphs Structured Unstructured Ontologies Natural Relationships
  • 11. © 2023 Neo4j, Inc. All rights reserved. What can you do with a knowledge graph? Collaborative filtering: users who bought X, also bought Y (open- ended pattern matching) What items make you more likely to buy additional items in subsequent transactions? Traverse hierarchies - what items are similar 4+ hops out? How many flagged accounts are in the applicant’s network 4+ hops out? How many login / account variables in common? Add these metrics to your approval process What completes the connections from genes to diseases to targets? What genes can be reached 4+ hops out from a known drug target? What mechanisms in common are there between two drugs? Financial Domain Life Sciences Marketing and Recommendations
  • 12. © 2023 Neo4j, Inc. All rights reserved. © 2023 Neo4j, Inc. All rights reserved. 12 With Cypher Patterns, Graph Data Science & Text Embeddings Enrich
  • 13. © 2023 Neo4j, Inc. All rights reserved. 13 Enriched Knowledge Graphs Structured Unstructured Ontologies Graph Algorithms and Graph Queries Semantics, Derived Relationships and Additional Context Natural Relationships
  • 14. © 2023 Neo4j, Inc. All rights reserved. Graph Enrichment 14 Human-crafted query, human-readable result MATCH (p1:Person)-[:ENEMY]->(:Person)<-[:ENEMY]-(p2:PERSON) MERGE (p1)-[:FRIEND]->(p2) AI-learned formula, machine-readable result Predefined formula, human-readable result PageRank(Emil) = 13.25 PageRank(Phani) = 4.83 PageRank(Katie) = 4.75 Node2Vec(Emil) =[5.4 5.1 2.4 4.5 3.1] Node2Vec(Phani)=[2.8 1.8 7.2 0.9 3.0] Node2Vec(Katie)=[1.4 5.2 4.4 3.9 3.2] Queries Algorithms Embeddings Machine Learning Workflows Train ML models based on results
  • 15. © 2023 Neo4j, Inc. All rights reserved. What are Graph Algorithms?
  • 16. © 2023 Neo4j, Inc. All rights reserved. Graph Algorithms for Insights Outliers, Influencers, Vulnerabilities,... Recommendations, Homophily, Outliers,... Recommendations, What-if Analysis, Disambiguation,... Dimensionality Reduction, Representation Learning,... Shortest Path, Optimal path, Route Optimization,... Link prediction, Recommendations, Next-Best Action,...
  • 17. © 2023 Neo4j, Inc. All rights reserved. Text Embeddings for Semantics [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)
  • 18. © 2023 Neo4j, Inc. All rights reserved. Graph Embeddings for Context and Semantics [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] Dario Amodei [0.0432, 0.4432, …, 0.3412] Daniela Amodei [0.7643, 0.4214, …, 0.0043] Shariq Hashme [0.1234, 0.4544, …, 0.0543] Graph Embeddings
  • 19. © 2023 Neo4j, Inc. All rights reserved. © 2023 Neo4j, Inc. All rights reserved. 19 Contextual and Semantic Information Retrieval Consume
  • 20. © 2023 Neo4j, Inc. All rights reserved. 20 Contextual and Semantic Information Vector Similarity Search Graph Traversals & Pattern Matching Knowledge Graph Inference & ML Find relevant documents and content for user queries Find people, places, and things associated to content. Identify patterns in connected data. Further improve search relevance and insights by enhancing your Knowledge Graph. Use graph algorithms and ML to discover new relationships, entities, and groups. Vector Databases Graph Database Neo4j SEMANTICS CONTEXT RELEVANCE HNSW
  • 21. © 2023 Neo4j, Inc. All rights reserved. 21 Knowledge Retrieval with Neo4j
  • 22. © 2023 Neo4j, Inc. All rights reserved. Knowledge Retrieval with Neo4j 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?
  • 23. © 2023 Neo4j, Inc. All rights reserved. RAG (Retrieval Augmented Generation) Pattern with Neo4j Neo4j LLM API User Cypher Prompt + Relevant Information Prompt Response Relevant Results Retrieve relevant results from Neo4j using LLM to generate embeddings and/or Cypher 2 3 1 1 2 3 Combine relevant results with prompt Instruct LLM to only use the relevant results to generate response LLM API Embeddings and/or Cypher Generation Improved ACCURACY and RELEVANCE of responses E.g. What is the impact of Hurricane Calvin? Hurricane Calvin caused minor flooding in Hawaii…. vs… 50 policyholders may be at risk of property damage due to Hurricane Calvin.
  • 24. © 2023 Neo4j, Inc. All rights reserved. Knowledge Graphs Graph Feature Engineering and Graph ML Graph Analytics, Investigations and Counterfactuals Contextual and Semantic Information Retrieval Capitalize Interpret Connect Analyze Neo4j Neo4j GDS Neo4j Bloom Neo4j Connectors Neo4j Enriches All Phases of an AI Ecosystem
  • 25. © 2023 Neo4j, Inc. All rights reserved. © 2023 Neo4j, Inc. All rights reserved. 25 Demo
  • 26. © 2023 Neo4j, Inc. All rights reserved. Typical Business Resilience Data Analyze business impact of ● software & OS vulnerabilities, ● hardware & software upgrades, ● building/geographic disasters ● changes to business data formats …across mission critical applications and business locations hierarchies, flows, relationships…
  • 27. © 2023 Neo4j, Inc. All rights reserved. Full Data Model CVE Data Business Data Elements Vendors,Software Business Tasks Application Instances Data Transfers People/Roles Locations IT Assets
  • 28. © 2023 Neo4j, Inc. All rights reserved. LangChain Demo Application • Translates English to Cypher • Consumption using LLM model with few shot prompting • Data augmentation from Neo4j response
  • 29. © 2023 Neo4j, Inc. All rights reserved. Questions • How many CVEs are reported till date? • Which applications are affected by CVE CVE-2019-16942? • Which applications are similar to Finacle Core Banking? • What business processes are supported by the application Finacle Core Banking? • What is the location with the highest Crime Risk? Please include the five most recent crime events
  • 30. © 2023 Neo4j, Inc. All rights reserved. Knowledge Graph Neo4j AuraDS Graph Data Science Graph DB Intelligent Apps Knowledge Extraction and Ingestion Structured Unstructured Ontologies Data Sources API Layer Customer Service Ticket Triaging Recommendations News Content & Discovery Enterprise Knowledge Search Patient Prioritization Clinical Decision Support Systems Pharmacovigilance Health Assistants FAQ Bots Neo4j and Generative AI Bloom Google Vertex AI Azure OpenAI Service Amazon Bedrock Google Vertex AI Azure OpenAI Service Amazon Bedrock Step 1: Capture Knowledge Step2: Enrich Step 3: Semantic & Contextual Search
  • 31. © 2023 Neo4j, Inc. All rights reserved. © 2023 Neo4j, Inc. All rights reserved. 31 phani.dathar@neo4j.com Thank you!

Hinweis der Redaktion

  1. LLMs are obviously the hot new topic, and they are fall within the larger exciting field of Generative AI LLMs focus on generating LANGUAGE specifically, whether that is natural language such as in summarizing texts or driving chat interactions, or more specialized language scenarios like code. I’m pretty sure that most of us in this room have tested them out in some capacity - and it is really amazing how well they draft summaries or even write python and cypher snippets :-) Last week I used chatgpt to name this presentation - i gave it an outline and asked it to come up with a catchy title there are so many ways these models can assist our work and lives
  2. LLMs are obviously the hot new topic, and they are fall within the larger exciting field of Generative AI LLMs focus on generating LANGUAGE specifically, whether that is natural language such as in summarizing texts or driving chat interactions, or more specialized language scenarios like code. I’m pretty sure that most of us in this room have tested them out in some capacity - and it is really amazing how well they draft summaries or even write python and cypher snippets :-) Last week I used chatgpt to name this presentation - i gave it an outline and asked it to come up with a catchy title there are so many ways these models can assist our work and lives
  3. LLMs are probabilistic models, that take a lot of data, and a lot of time and resources to train This results in some limitations - because it takes a significant amount of effort to train, you can’t keep constantly adding data, so some of the models are years out of date Also this means that rather than giving you a factual answer, they will give you the most PROBABLE answer This answer is greatly dependent on what it has been exposed to - which opens risk for bias Emphasis This training data is also largely based on general knowledge, as opposed to having specific expertise in your organization, and is not easily auditable or explainable For example - if you are a financial analyst and ask it a question like - which managers own a particular stock, it will give you back a list of people rather than understand that Manager in this case is an institutional investment manager
  4. So what do we do? Not using LLMs will mean being left in the past, but how do we get LLMs to attend more math classes as Sudhir said, and be less creative when we need them to be factual?
  5. Adding a Neo4j knowledge graph to your LLMs help improve relevance and explainability of answers by grounding it and ensuring the LLM response is underpinned with facts. This process is called Retrieval Augmented Generation. This approach combines the creative power of your generative model with the stored data of your knowledge graph for more accurate responses. User asks a question LLM directed to look for information in Neo4j Response generated based on the trusted content that is curated by the organization
  6. Why specifically use Neo4j to ground your LLMs? Graphs inherently capture CONTEXT When you are looking for information about an individual or organization, just identifying them isn’t enough, you also want to know your complete relationship with that person or company, how do their interactions with you compare to those of their peers. Graph data science allows you to enrich your data - you can infer new information about those entities based on their relationships - like the risk associated with an entity, or identify other similar entities So you have all this wonderful information - how do you get it to consumers? When we combine graphs and LLMs - any user, regardless of graph skill, can access reliable, and relevant information
  7. Let’s walk through these steps
  8. I’ll go through this step quickly because I think you’ve had exposure to this before Building a knowledge graph, we start with data in its native form, identifying all of the sources that have information related to your business problem. In most cases, this information is silo’d across a large variety of sources, and data formats We then ingest all of these sources into a graph where information between your unstructured and structured data becomes connected. This allows us to start thinking about step 2, enrichment, where we can layer in semantics and use graph algorithms and queries to derive implicit relationships and capture even more context.
  9. But just this first step gives us so much information - by making the natural relationships explicit, we can start answering questions that would otherwise take hours of preprocessing and data joining with tabular data. Things like What is the overall fraud risk of an account across channels, including risk implications that are based on more distant relationships with flagged accounts. Or tracing ingredients and how a drug is made to how the drug reacts with different genes, which would normally require pulling information about the manufacturing of a particular drug, form, active ingredients, additional ingredients, and more And comparing patterns of user activities seeing which actions most commonly lead to purchase behaviors —---NEXT-------- —---------------- Once have building blocks - expand to capture heter ogeneous entities in business Life science - manufacturing drug - not simple - what is drug, tylenol - has active ingredients + other ingredients to make pill - lots of research has been done to know how drug reacts with gene, - how relates to other genes, / diseases, how is drug made - captures a lot of aspects of business - what completes connection from genes to diseases to targets – would take a TON of preprocessing without graph, in graph - just traversing relationships. Trivial questions - answered looking at relationships only. Otherwise very difficult Graph data science is also a science driven approach but in this world, data scientists use relationships to answer questions.. and the good news is it’s not EITHER/OR….it’s BOTH we can leverage both since relationships are already in your data.. TO ADD/EDIT: few diff use cases, / applications. Had a few banks attending - v. high level, if want to generalize model looks something like this - account holder, bank, pii info, SS, phone number, address etc. also transactions etc not represented here. Also see ppl sharing information. if want to ask question, query this, bc way data stored in graph db, traverse - multiple hops. want to see dependence btw drugs, easily more than 4 hops - better to have graph than joins retail - graph db top use case, similarity btw customer based on behavior, traverse find similarity btw customers, btw products, correlation of products purchased together, marketing, search, adopted by most top retailers. looking at local pattern matches with Cypher - in Finserv, given an account holder, how many flagged accounts are out - links to metadata, bank accounts mobile apps, if know what data model looks like - diagram makes up entities and semantic relationships connecting them - 4 hops out makes sense. more a semantic statement than pure traversal statement. Old — So a lot of times when we start talking to prospects, they’re really excited about using graph data science, and we’re very excited that they want to use it, but we always want to start off as simple as possible and see what they can accomplish with just cypher. Sometimes just changing your data structure from relational to graph and realizing those relationships that are hidden in your data can answer your questions without requiring algorithms or ML. That said, a lot of problems DO require machine learning, it’s just about using the right tools for the problem at hand. For example in finance and identifying fraud, you might want to evaluate fraud risk for a particular applicant, and with relational data you might be able to see ok, this person shares a SSN with another account one hop or one relationship away, but you wouldn’t have visibility into how many flagged accounts are 4 hops out, and how many common identifiers are shared with those nodes? And so just with cypher queries you can get a lot of important information that might influence your decision to approve a request or flag an account as risky for further follow up. And that can be helpful to just be cypher because you want those interactions to be very fast and at that millisecond response level. Life sciences also has some really cool applications, traversing the graph to understand what connects genes to diseases to targets, and understanding those more distant relationships to help improve drug repurposing studies. And then we have a lot of common marketing and recommendations applications with cypher queries. So if two customers buy the same product, can we compare their other purchases to what else they are likely to buy. Once we start moving away from just traversing relationships and trying to compare user patterns at the network level, that’s when we want to start bringing in graph data science. And keep in mind, this is not an either or situation, you can use BOTH cypher queries AND graph machine learning and algorithms because we start with relationships already realized in the data.
  10. What may seem like complex questions become simple queries, so we’re already seeing value - but there’s still more information hidden in the patterns of relationships, waiting to be pulled out.
  11. I’ll go through this step quickly because I think you’ve had exposure to this before Building a knowledge graph, we start with data in its native form, identifying all of the sources that have information related to your business problem. In most cases, this information is silo’d across a large variety of sources, and data formats We then ingest all of these sources into a graph where information between your unstructured and structured data becomes connected. This allows us to start thinking about step 2, enrichment, where we can layer in semantics and use graph algorithms and queries to derive implicit relationships and capture even more context.
  12. We can tease out that enrichment in this several ways Create Derived relationships With queries and simple pattern matches Algorithms to capture things within the larger context of the graph, like relative importance - or influence in a social network - or community information And finally we can capture the broader context of a node by capturing its neighborhood and representing it as an as a two dimensional vector or embedding. Node Embeddings capture the broader neighborhood around an entity as a vector, Allow us to identify similar entities based on their social network or activities like in customer journey katie and phani more similar than Emil they will also become important when we start thinking about our final step of integrating with LLMs All of these can directly surface information in the graph, or be used as input features to help enrich ML Pipelines - so for example in a fraud use case we may create direct relationships between users with shared identifiers generate influence scores as well as community statistics and then capture their interactions with users multiple hops away as an embedding to predict fraud
  13. The types of insights and enrichment we can derive from the use of graph algorithms is quite varied because the underlying approaches themselves are varied, and map onto traditional ML concepts we have unsupervised and supervised approaches Unsupervised - clustering and association based on similarity/distance in network Dimensionality reduction - how impt a node is Capture local network in embeddings Also supervised approaches ….
  14. Choosing the right category is all about your use case Centrality is about finding influencers or most important nodes in your graph, and understanding how they impact the network. For example key bridge points between subnetworks can highlight risk points or vulnerabilities in supply chains. Or Influencers in a social network Within Pathfinding - shortest path can link drug targets to the most likely outcomes or side effects, or find optimal paths in routing scenarios within supply chain or energy sectors. Community detection enables more targeted recommendations, customer segmentation, and entity resolution Similarity algorithms are also key to associate similar nodes (JACOB), and enable what-if analysis and disaster recovery scenarios Embeddings - as I mentioned earlier help us capture higher dimension signals and use them in predictive pipelines or to eval similarity - in this case similarity from perspective of network features And finally link prediction can be used to enrich the graph and handle data quality challenges as well as find the next best recommendation or action for an individual DONT’ READ —--------- Instead of hand crafting these image representations, we can learn them. That is known as representation learning. We can have a neural network which takes the image as an input and outputs a vector, which is the feature representation of the image. This is the representation learner.
  15. Choosing the right category is all about your use case Centrality is about finding influencers or most important nodes in your graph, and understanding how they impact the network. For example key bridge points between subnetworks can highlight risk points or vulnerabilities in supply chains. Or Influencers in a social network Within Pathfinding - shortest path can link drug targets to the most likely outcomes or side effects, or find optimal paths in routing scenarios within supply chain or energy sectors. Community detection enables more targeted recommendations, customer segmentation, and entity resolution Similarity algorithms are also key to associate similar nodes (JACOB), and enable what-if analysis and disaster recovery scenarios Embeddings - as I mentioned earlier help us capture higher dimension signals and use them in predictive pipelines or to eval similarity - in this case similarity from perspective of network features And finally link prediction can be used to enrich the graph and handle data quality challenges as well as find the next best recommendation or action for an individual DONT’ READ —--------- Instead of hand crafting these image representations, we can learn them. That is known as representation learning. We can have a neural network which takes the image as an input and outputs a vector, which is the feature representation of the image. This is the representation learner.
  16. Choosing the right category is all about your use case Centrality is about finding influencers or most important nodes in your graph, and understanding how they impact the network. For example key bridge points between subnetworks can highlight risk points or vulnerabilities in supply chains. Or Influencers in a social network Within Pathfinding - shortest path can link drug targets to the most likely outcomes or side effects, or find optimal paths in routing scenarios within supply chain or energy sectors. Community detection enables more targeted recommendations, customer segmentation, and entity resolution Similarity algorithms are also key to associate similar nodes (JACOB), and enable what-if analysis and disaster recovery scenarios Embeddings - as I mentioned earlier help us capture higher dimension signals and use them in predictive pipelines or to eval similarity - in this case similarity from perspective of network features And finally link prediction can be used to enrich the graph and handle data quality challenges as well as find the next best recommendation or action for an individual DONT’ READ —--------- Instead of hand crafting these image representations, we can learn them. That is known as representation learning. We can have a neural network which takes the image as an input and outputs a vector, which is the feature representation of the image. This is the representation learner.
  17. So far we have our graph, we’ve enriched it with algorithms, and we can use vectors to query it, so we’re ready for LLMs
  18. Same is true of powering semantic search Vector similarity is just the first step - with a particular search query you can find the most relevant mentions or documents in your data As you layer in graph queries then you start to understand the more complete context, who authored that particular document, what job title do they have, who else is on their team, and who else contributed to or has access to that information? With graph algorithms we can further inform the author’s influence in the organization or who has similar interests, and so on These last two steps are critical in supplying context and helping to filter responses to the most relevant information. They also play an important role in improving search where text and other document focused references are sparse. Example: using search to find people who have the knowledge relevant to help solve a bug you’ve encountered you may search for FAQ or customer support tickets using vector search, and look at the authors. But then that will limit you to only people who have taken the time to document their knowledge, and those people may no longer even be in a relevant role or with the company. With the graph, you can take another step out in context and ask - what skills did the author have, and who else has those skills and is in a relevant role currently? Based on their influence - How trusted are their responses? You can increase the breadth and the relevance of your search to make sure you find the right people to solve the problem.
  19. This type of maturity in approach enables you to tackle those challenges we talked about at the beginning By taking advantage of both semantic embeddings provided by LLMs, AND the rich, human readable data in a knowledge graph, you can reduce hallucinations and get domain specific responses.
  20. Now, Let's dive a little deeper into the process. How exactly do we achieve this? We start by connecting to neo4j and getting the graph schema we want to understand. We provide that as context to AI, along with some training examples which primes it with custom domain knowledge. We can also optionally fine tune the model with even more domain specific examples And then given it’s knowledge about the database, it generates a query to interact with the database, and summarize the resulting data We are now able to answer our questions using natural language.
  21. This grounding is called retrieval augmented generation (explain diagram) Knowledge Graphs enable linking of structured and unstructured data for most accurate & relevant results
  22. Ultimately - whether you’re using GenAI or other ML - graphs play a key role in getting the full value out of your data Graphs pull out the relationships that natively exists Can then gain more context and valuable information using graph algos Interpret and communicate results with analysts using bloom Integrate with a wide variety of technologies including large language models and ai platforms to further extend the value of your data. Excited to see how applications of graphs and genai develop, and come chat with me during the reception, i’d love to hear what you’re working on! Xo katie
  23. Let’s see this in practice
  24. Going to use a Business intelligence Data model In this use case it’s important to bring together information across the organization connect critical vulnerabilities, software applications, data centers and other IT assets etc to be able to have insights about how each vulnerability - be it cybersecurity or physical will impact your business processes This is a simplified version, but under the covers it is much more than a few joins, it’s a network of information - each one of these icons has its own web of hierarchies and relationships
  25. So this is what the actual data model looks like, where we have all of those different domains of data, people, locations, vulnerabilities, and are able to surface those connections to easily understand how a particular vulnerability may impact software applications which therefore impacts business tasks. That’s what we’ll go through in the demo
  26. A little bit on what’s happening under the hood before i jump into the demo We’re using LangChain to orchestrate interactions btw database and the selected LLM Few shot prompting, just providing a few examples Maruti showed you a bit of the behind the scenes details for what a prompt looks like
  27. A little bit on what’s happening under the hood before i jump into the demo We’re using LangChain to orchestrate interactions btw database and the selected LLM Few shot prompting, just providing a few examples Maruti showed you a bit of the behind the scenes details for what a prompt looks like
  28. Before I leave you - I want to highlight where Neo4j sits more broadly in the Generative AI ecosystem. data and LLMs can help capture knowledge and accelerated data ingest process, particularly with unstructured data (didn’t focus on this topic today - but thankfully Maruti highlighted this in his presentation - if you have questions, come find me) Then in the graph we can enrich the factual data of your org using graph queries, algorithms, and data science work flows Finally - Leverage LLMs to enable chatbots and semantic search to power applications - you can increase accuracy and relevance of recommendations, facilitate sourcing of institutional knowledge in customer service and ticketing use cases, there are so many ways you can apply this technology