SlideShare a Scribd company logo
Increasing the Accuracy of LLM Applications with Graph-based RAG_ Practical Implementations.pdf
71% OF ENTERPRISES ARE STUCK
LAUNCHING GENAI PROJECTS.
A WIDE-REACHING PROBLEM
● 71% of enterprises are stuck
launching GenAI projects1
Published by McKinsey May 2024
1
| Stanford 2024
2
● Current RAGs are only 65%
accurate max, too focused on
semantic search2
VECTOR SEARCH IS INACCURATE
1. "Raphael, a master of the Italian High Renaissance, is
known for his exquisite paintings. Though most of his
works are housed in the Vatican Museums, some are also
displayed at the Louvre."
2. "Leonardo da Vinci, an Italian Renaissance artist, is
famous for several masterpieces, including the Mona Lisa,
which is housed at the Louvre Museum in Paris. His works
are among the most visited and well-known in the world."
3. "The Louvre Museum is home to several Italian Renaissance
paintings, notably from artists such as Raphael and
Michelangelo, reflecting the rich artistic history of
Italy."
4. "Donatello, a master sculptor from the early Italian
Renaissance, is renowned for his bronze and marble
sculptures rather than paintings. While his influence is
widely acknowledged in major museums, including the
Louvre"
Which Italian artist has
the largest number of
paintings on display
currently in the Louvre?
Query
CAPPED TOO LOW
CAP
SOLVE IT WITH FACT-GROUNDED
KNOWLEDGE, SERVED FAST.
INTRODUCTION TO GRAPH-BASED RAG
RAG Overview
● Retrieval-Augmented Generation
(RAG) augments LLM applications
with external knowledge retrieval
to increase accuracy and reduce
hallucinations.
INTRODUCTION TO GRAPH-BASED RAG
Why Knowledge Graphs?
● A Knowledge Graph is a structured
representation of information. It
organizes data into nodes
(entities) and edges (the
relationships between them).
��
● Very useful in discovering deep
and intricate connections in your
data. This enables complex
querying capabilities.
9
L. DA
VINCI
MONA LISA
LOUVRE
VENUE
IS A
🏫
LOCATED
IN
PARIS
Which Italian artist has
the largest number of
paintings on display
currently in the Louvre?
Query
KG Output
Vector Output
Semantic
search-based
answer which
offers only a
partial view of
the knowledge
Liberty Leading
the People
CREATED
DISPLAYED
IN
D
I
S
P
L
A
Y
E
D
I
N
La Belle
Jardinière
D
I
S
P
L
A
Y
E
D
I
N
CREATED
DISPLAYED IN
CREATED
Relationship-
based answer
which aggregates
many knowledge
points
GraphRAG is the optimal solution.
Aug. 2021
“Unifying large language models & knowledge graphs: A
roadmap”
May 2023
“LLM for knowledge graph construction and reasoning:
Recent capabilities”
Jun. 2023
“ChatGPT is not Enough: Enhancing LLM Models with knowledge
graphs for fact-aware language modeling”
Jun. 2024
“From local to global: a graphRAG approach to
query-focused summarization” - Microsoft Research
GRAPHRAG IS THE OPTIMAL SOLUTION
OPTIMAL LLM <> KNOWLEDGE GRAPH SYNERGY
TEXT
INPUT
LLMs OUTPUT
KNOWLEDGE GRAPHS
✨KG-enhanced LLMs
● Structural Facts
● Domain-specific Knowledge
● Symbolic-reasoning
TASKS KGs OUTPUT
LLMs
✨LLM-augmented KGs
● General Knowledge
● Language Processing
● Generalizability
ACCURATE TO SAY YES
GraphRAG
GRAPH-BASED RAG ARCHITECTURE
The Process
● Construct
● Query
● Retrieve
● Generate
LLM-READY ARCHITECTURE
LLM used for
Entity and Relationship
Extraction (ERE)
I
LOVE
GRAPHRAG
Knowledge Graph stored
in a Graph Database
Ingestion
LLM-READY ARCHITECTURE
Query
Knowledge
Retrieval
Enterprise Knowledge
Retrieval: extracting the
relevant sub-knowledge
Personalized Memory
Retrieval: extracting the
relevant sub-long memory
Knowledge Retrieval
Memory
Retrieval
LLM-READY ARCHITECTURE
Answer Generation
Accurate response with
improved personalization and
context-awareness
Query
Knowledge
Retrieval
Memory
Retrieval
Response
WHEN TO USE GRAPHRAG
Well-suited for:
● Complex queries
● Factual accuracy
● Rich contextual understanding
● Large-scale knowledge bases
● Dynamic information
USE CASE: ADVANCED CHATBOT
LLM-based Bot
● A customer support chatbot
retrieves related support tickets
and knowledge base articles from
a graph database, enhancing
response accuracy
Frameworks like LangChain and LlamaIndex enable
seamless data retrieval for LLMs
USE CASE: ADVANCED FINANCE CHATBOT
Build GraphRAG-Powered AI Assistant Finance Queries
USE CASE: HEALTHCARE CHATBOT
Constructed a mental health chatbot using
FalkorDB, OpenAI, and LlamaIndex
FALKORDB’S ROLE
Store correctly
● A low-latency graph database,
supports both graph traversals
and vector similarity searches,
making it ideal for GraphRAG
implementations.
SCALABILITY IN PRODUCTION ENVIRONMENTS
Scaling Strategies
● Horizontal & vertical scalability
for handling a large number of
knowledge graphs, big and small.
⚪ 🟣
● Keep low-latency features in mind
for applications that require
user interactions
For example: Reducing graph traversal times
GRAPHRAG TOOLS AND FRAMEWORKS
Schema management, knowledge graphs, and LLM integration
Using GraphRAG-SDK, the process of
creating a knowledge graph is very simple
# Auto generate graph schema from unstructured data
sources = [Source("./data/the_matrix.txt")]
s = Schema.auto_detect(sources)
# Create a knowledge graph based on schema
g = KnowledgeGraph("IMDB", schema=s)
g.process_sources(sources)
🔴 Live Demo: GraphRAG
🔴 Live Demo: CodeGraph
CONCLUSION - ENHANCING LLM ACCURACY WITH GRAPHRAG
We explored how integrating knowledge
graphs with Retrieval-Augmented
Generation (RAG) techniques
significantly enhances the accuracy
and performance of LLMs
June ‘23: “ChatGPT is not Enough: Enhancing LLM
Models with knowledge graphs for fact-aware
language modeling”
KEY TAKEAWAYS
Accuracy
● GraphRAG ensures that LLM
responses are grounded in a rich
knowledge graph, leading to more
accurate and reliable outputs.
KEY TAKEAWAYS
Performance
● The ability to handle large-scale
graphs (and many of them) and
perform real-time traversals
enhances the speed and efficiency
of LLM applications
KEY TAKEAWAYS
Scale
● A scalable architecture allows
GraphRAG to be effectively used
in production environments,
maintaining consistent
performance as data volumes
increase.
KEY TAKEAWAYS
Explainability
● The structured nature of
knowledge graphs offers
transparency, making it easier to
understand and debug LLM
responses
RECOMMENDATIONS
Get RAG Right:
● Understand your data
● Integrate LLMs correctly
● Leverage knowledge graphs
● Think about scale
● Optimize your prompts
● Refine & double-down
Thank you!
✉ guy.korland@falkordb.com
🔗 falkordb.com
Ad

More Related Content

Similar to Increasing the Accuracy of LLM Applications with Graph-based RAG_ Practical Implementations.pdf (20)

The Gorbals in Relief: Experiments in OpenStreetMap and Architectural Practic...
The Gorbals in Relief: Experiments in OpenStreetMap and Architectural Practic...The Gorbals in Relief: Experiments in OpenStreetMap and Architectural Practic...
The Gorbals in Relief: Experiments in OpenStreetMap and Architectural Practic...
duncanbain
 
Edinburgh OldMapsOnline Workshop
Edinburgh OldMapsOnline WorkshopEdinburgh OldMapsOnline Workshop
Edinburgh OldMapsOnline Workshop
Petr Pridal
 
Reco4J @ London Meetup (June 26th)
Reco4J @ London Meetup (June 26th)Reco4J @ London Meetup (June 26th)
Reco4J @ London Meetup (June 26th)
Alessandro Negro
 
Multilingual Access to Cultural Heritage Content on the Semantic Web - Acl2013
Multilingual Access to Cultural Heritage Content on the Semantic Web - Acl2013Multilingual Access to Cultural Heritage Content on the Semantic Web - Acl2013
Multilingual Access to Cultural Heritage Content on the Semantic Web - Acl2013
Mariana Damova, Ph.D
 
Dmytro Safonov "Open-Source Map Viewers"
Dmytro Safonov  "Open-Source Map Viewers"Dmytro Safonov  "Open-Source Map Viewers"
Dmytro Safonov "Open-Source Map Viewers"
LogeekNightUkraine
 
Roadmap - SiriusCon2016
Roadmap - SiriusCon2016Roadmap - SiriusCon2016
Roadmap - SiriusCon2016
Cédric Brun
 
2+3D Photography 2017 – INV 18 From Project to Programmatic: International St...
2+3D Photography 2017 – INV 18 From Project to Programmatic: International St...2+3D Photography 2017 – INV 18 From Project to Programmatic: International St...
2+3D Photography 2017 – INV 18 From Project to Programmatic: International St...
rijksmuseum
 
DH101 2013/2014 course 5 - Project on Venice / Datafication / Regulated repre...
DH101 2013/2014 course 5 - Project on Venice / Datafication / Regulated repre...DH101 2013/2014 course 5 - Project on Venice / Datafication / Regulated repre...
DH101 2013/2014 course 5 - Project on Venice / Datafication / Regulated repre...
Frederic Kaplan
 
SCC2011 - Talking about e-Science in a virtual world
SCC2011 - Talking about e-Science in a virtual worldSCC2011 - Talking about e-Science in a virtual world
SCC2011 - Talking about e-Science in a virtual world
British Science Association
 
Scilab Challenge@NTU 2014/2015 Project Briefing
Scilab Challenge@NTU 2014/2015 Project BriefingScilab Challenge@NTU 2014/2015 Project Briefing
Scilab Challenge@NTU 2014/2015 Project Briefing
TBSS Group
 
Introduction to Neo4j
Introduction to Neo4jIntroduction to Neo4j
Introduction to Neo4j
Neo4j
 
Visualization of OSGi based Software Architectures in Virtual Reality - Lisa ...
Visualization of OSGi based Software Architectures in Virtual Reality - Lisa ...Visualization of OSGi based Software Architectures in Virtual Reality - Lisa ...
Visualization of OSGi based Software Architectures in Virtual Reality - Lisa ...
mfrancis
 
Creating Custom Charts With Ruby Vector Graphics
Creating Custom Charts With Ruby Vector GraphicsCreating Custom Charts With Ruby Vector Graphics
Creating Custom Charts With Ruby Vector Graphics
David Keener
 
02 supermapiclientforjavascriptintroduction
02 supermapiclientforjavascriptintroduction02 supermapiclientforjavascriptintroduction
02 supermapiclientforjavascriptintroduction
GeoMedeelel
 
Apache Spark GraphX highlights.
Apache Spark GraphX highlights. Apache Spark GraphX highlights.
Apache Spark GraphX highlights.
Doug Needham
 
Addressing dm-cloud
Addressing dm-cloudAddressing dm-cloud
Addressing dm-cloud
Genoveva Vargas-Solar
 
GraphChain
GraphChainGraphChain
GraphChain
sopekmir
 
Reaktive Programmierung mit den Reactive Extensions (Rx)
Reaktive Programmierung mit den Reactive Extensions (Rx)Reaktive Programmierung mit den Reactive Extensions (Rx)
Reaktive Programmierung mit den Reactive Extensions (Rx)
NETUserGroupBern
 
OpenACC and Open Hackathons Monthly Highlights: Summer 2024
OpenACC and Open Hackathons Monthly Highlights: Summer 2024OpenACC and Open Hackathons Monthly Highlights: Summer 2024
OpenACC and Open Hackathons Monthly Highlights: Summer 2024
OpenACC
 
Crating Value with Open Source, OW2con11, Nov 24-25, Paris
Crating Value with Open Source, OW2con11, Nov 24-25, ParisCrating Value with Open Source, OW2con11, Nov 24-25, Paris
Crating Value with Open Source, OW2con11, Nov 24-25, Paris
OW2
 
The Gorbals in Relief: Experiments in OpenStreetMap and Architectural Practic...
The Gorbals in Relief: Experiments in OpenStreetMap and Architectural Practic...The Gorbals in Relief: Experiments in OpenStreetMap and Architectural Practic...
The Gorbals in Relief: Experiments in OpenStreetMap and Architectural Practic...
duncanbain
 
Edinburgh OldMapsOnline Workshop
Edinburgh OldMapsOnline WorkshopEdinburgh OldMapsOnline Workshop
Edinburgh OldMapsOnline Workshop
Petr Pridal
 
Reco4J @ London Meetup (June 26th)
Reco4J @ London Meetup (June 26th)Reco4J @ London Meetup (June 26th)
Reco4J @ London Meetup (June 26th)
Alessandro Negro
 
Multilingual Access to Cultural Heritage Content on the Semantic Web - Acl2013
Multilingual Access to Cultural Heritage Content on the Semantic Web - Acl2013Multilingual Access to Cultural Heritage Content on the Semantic Web - Acl2013
Multilingual Access to Cultural Heritage Content on the Semantic Web - Acl2013
Mariana Damova, Ph.D
 
Dmytro Safonov "Open-Source Map Viewers"
Dmytro Safonov  "Open-Source Map Viewers"Dmytro Safonov  "Open-Source Map Viewers"
Dmytro Safonov "Open-Source Map Viewers"
LogeekNightUkraine
 
Roadmap - SiriusCon2016
Roadmap - SiriusCon2016Roadmap - SiriusCon2016
Roadmap - SiriusCon2016
Cédric Brun
 
2+3D Photography 2017 – INV 18 From Project to Programmatic: International St...
2+3D Photography 2017 – INV 18 From Project to Programmatic: International St...2+3D Photography 2017 – INV 18 From Project to Programmatic: International St...
2+3D Photography 2017 – INV 18 From Project to Programmatic: International St...
rijksmuseum
 
DH101 2013/2014 course 5 - Project on Venice / Datafication / Regulated repre...
DH101 2013/2014 course 5 - Project on Venice / Datafication / Regulated repre...DH101 2013/2014 course 5 - Project on Venice / Datafication / Regulated repre...
DH101 2013/2014 course 5 - Project on Venice / Datafication / Regulated repre...
Frederic Kaplan
 
SCC2011 - Talking about e-Science in a virtual world
SCC2011 - Talking about e-Science in a virtual worldSCC2011 - Talking about e-Science in a virtual world
SCC2011 - Talking about e-Science in a virtual world
British Science Association
 
Scilab Challenge@NTU 2014/2015 Project Briefing
Scilab Challenge@NTU 2014/2015 Project BriefingScilab Challenge@NTU 2014/2015 Project Briefing
Scilab Challenge@NTU 2014/2015 Project Briefing
TBSS Group
 
Introduction to Neo4j
Introduction to Neo4jIntroduction to Neo4j
Introduction to Neo4j
Neo4j
 
Visualization of OSGi based Software Architectures in Virtual Reality - Lisa ...
Visualization of OSGi based Software Architectures in Virtual Reality - Lisa ...Visualization of OSGi based Software Architectures in Virtual Reality - Lisa ...
Visualization of OSGi based Software Architectures in Virtual Reality - Lisa ...
mfrancis
 
Creating Custom Charts With Ruby Vector Graphics
Creating Custom Charts With Ruby Vector GraphicsCreating Custom Charts With Ruby Vector Graphics
Creating Custom Charts With Ruby Vector Graphics
David Keener
 
02 supermapiclientforjavascriptintroduction
02 supermapiclientforjavascriptintroduction02 supermapiclientforjavascriptintroduction
02 supermapiclientforjavascriptintroduction
GeoMedeelel
 
Apache Spark GraphX highlights.
Apache Spark GraphX highlights. Apache Spark GraphX highlights.
Apache Spark GraphX highlights.
Doug Needham
 
GraphChain
GraphChainGraphChain
GraphChain
sopekmir
 
Reaktive Programmierung mit den Reactive Extensions (Rx)
Reaktive Programmierung mit den Reactive Extensions (Rx)Reaktive Programmierung mit den Reactive Extensions (Rx)
Reaktive Programmierung mit den Reactive Extensions (Rx)
NETUserGroupBern
 
OpenACC and Open Hackathons Monthly Highlights: Summer 2024
OpenACC and Open Hackathons Monthly Highlights: Summer 2024OpenACC and Open Hackathons Monthly Highlights: Summer 2024
OpenACC and Open Hackathons Monthly Highlights: Summer 2024
OpenACC
 
Crating Value with Open Source, OW2con11, Nov 24-25, Paris
Crating Value with Open Source, OW2con11, Nov 24-25, ParisCrating Value with Open Source, OW2con11, Nov 24-25, Paris
Crating Value with Open Source, OW2con11, Nov 24-25, Paris
OW2
 

More from Guy Korland (18)

GraphRAG is All You need? LLM & Knowledge Graph
GraphRAG is All You need? LLM & Knowledge GraphGraphRAG is All You need? LLM & Knowledge Graph
GraphRAG is All You need? LLM & Knowledge Graph
Guy Korland
 
FalkorDB - Fastest way to your Knowledge
FalkorDB - Fastest way to your KnowledgeFalkorDB - Fastest way to your Knowledge
FalkorDB - Fastest way to your Knowledge
Guy Korland
 
Redis Developer Day TLV - Redis Stack & RedisInsight
Redis Developer Day TLV - Redis Stack & RedisInsightRedis Developer Day TLV - Redis Stack & RedisInsight
Redis Developer Day TLV - Redis Stack & RedisInsight
Guy Korland
 
Using Redis As Your Online Feature Store: 2021 Highlights. 2022 Directions
Using Redis As Your  Online Feature Store:  2021 Highlights. 2022 DirectionsUsing Redis As Your  Online Feature Store:  2021 Highlights. 2022 Directions
Using Redis As Your Online Feature Store: 2021 Highlights. 2022 Directions
Guy Korland
 
Vector database
Vector databaseVector database
Vector database
Guy Korland
 
The evolution of DBaaS - israelcloudsummit
The evolution of DBaaS - israelcloudsummitThe evolution of DBaaS - israelcloudsummit
The evolution of DBaaS - israelcloudsummit
Guy Korland
 
From kv to multi model RedisDay NYC19
From kv to multi model   RedisDay NYC19From kv to multi model   RedisDay NYC19
From kv to multi model RedisDay NYC19
Guy Korland
 
From Key-Value to Multi-Model - RedisConf19
From Key-Value to Multi-Model - RedisConf19From Key-Value to Multi-Model - RedisConf19
From Key-Value to Multi-Model - RedisConf19
Guy Korland
 
Paractical Solutions for Multicore Programming
Paractical Solutions for Multicore ProgrammingParactical Solutions for Multicore Programming
Paractical Solutions for Multicore Programming
Guy Korland
 
Crafting a Ready-to-Go STM
Crafting  a Ready-to-Go STMCrafting  a Ready-to-Go STM
Crafting a Ready-to-Go STM
Guy Korland
 
Building Scalable Producer-Consumer Pools based on Elimination-Diraction Trees
Building Scalable Producer-Consumer  Pools based on Elimination-Diraction TreesBuilding Scalable Producer-Consumer  Pools based on Elimination-Diraction Trees
Building Scalable Producer-Consumer Pools based on Elimination-Diraction Trees
Guy Korland
 
Lowering STM Overhead with Static Analysis
Lowering STM Overhead with Static AnalysisLowering STM Overhead with Static Analysis
Lowering STM Overhead with Static Analysis
Guy Korland
 
Cloudify 10m
Cloudify 10mCloudify 10m
Cloudify 10m
Guy Korland
 
Open stack bigdata NY cloudcamp
Open stack bigdata NY cloudcampOpen stack bigdata NY cloudcamp
Open stack bigdata NY cloudcamp
Guy Korland
 
The Open PaaS Stack
The Open PaaS StackThe Open PaaS Stack
The Open PaaS Stack
Guy Korland
 
Quasi-Linearizability: relaxed consistency for improved concurrency.
Quasi-Linearizability: relaxed consistency for improved concurrency.Quasi-Linearizability: relaxed consistency for improved concurrency.
Quasi-Linearizability: relaxed consistency for improved concurrency.
Guy Korland
 
The Next Generation Application Server – How Event Based Processing yields s...
The Next Generation  Application Server – How Event Based Processing yields s...The Next Generation  Application Server – How Event Based Processing yields s...
The Next Generation Application Server – How Event Based Processing yields s...
Guy Korland
 
Deuce STM - CMP'09
Deuce STM - CMP'09Deuce STM - CMP'09
Deuce STM - CMP'09
Guy Korland
 
GraphRAG is All You need? LLM & Knowledge Graph
GraphRAG is All You need? LLM & Knowledge GraphGraphRAG is All You need? LLM & Knowledge Graph
GraphRAG is All You need? LLM & Knowledge Graph
Guy Korland
 
FalkorDB - Fastest way to your Knowledge
FalkorDB - Fastest way to your KnowledgeFalkorDB - Fastest way to your Knowledge
FalkorDB - Fastest way to your Knowledge
Guy Korland
 
Redis Developer Day TLV - Redis Stack & RedisInsight
Redis Developer Day TLV - Redis Stack & RedisInsightRedis Developer Day TLV - Redis Stack & RedisInsight
Redis Developer Day TLV - Redis Stack & RedisInsight
Guy Korland
 
Using Redis As Your Online Feature Store: 2021 Highlights. 2022 Directions
Using Redis As Your  Online Feature Store:  2021 Highlights. 2022 DirectionsUsing Redis As Your  Online Feature Store:  2021 Highlights. 2022 Directions
Using Redis As Your Online Feature Store: 2021 Highlights. 2022 Directions
Guy Korland
 
The evolution of DBaaS - israelcloudsummit
The evolution of DBaaS - israelcloudsummitThe evolution of DBaaS - israelcloudsummit
The evolution of DBaaS - israelcloudsummit
Guy Korland
 
From kv to multi model RedisDay NYC19
From kv to multi model   RedisDay NYC19From kv to multi model   RedisDay NYC19
From kv to multi model RedisDay NYC19
Guy Korland
 
From Key-Value to Multi-Model - RedisConf19
From Key-Value to Multi-Model - RedisConf19From Key-Value to Multi-Model - RedisConf19
From Key-Value to Multi-Model - RedisConf19
Guy Korland
 
Paractical Solutions for Multicore Programming
Paractical Solutions for Multicore ProgrammingParactical Solutions for Multicore Programming
Paractical Solutions for Multicore Programming
Guy Korland
 
Crafting a Ready-to-Go STM
Crafting  a Ready-to-Go STMCrafting  a Ready-to-Go STM
Crafting a Ready-to-Go STM
Guy Korland
 
Building Scalable Producer-Consumer Pools based on Elimination-Diraction Trees
Building Scalable Producer-Consumer  Pools based on Elimination-Diraction TreesBuilding Scalable Producer-Consumer  Pools based on Elimination-Diraction Trees
Building Scalable Producer-Consumer Pools based on Elimination-Diraction Trees
Guy Korland
 
Lowering STM Overhead with Static Analysis
Lowering STM Overhead with Static AnalysisLowering STM Overhead with Static Analysis
Lowering STM Overhead with Static Analysis
Guy Korland
 
Open stack bigdata NY cloudcamp
Open stack bigdata NY cloudcampOpen stack bigdata NY cloudcamp
Open stack bigdata NY cloudcamp
Guy Korland
 
The Open PaaS Stack
The Open PaaS StackThe Open PaaS Stack
The Open PaaS Stack
Guy Korland
 
Quasi-Linearizability: relaxed consistency for improved concurrency.
Quasi-Linearizability: relaxed consistency for improved concurrency.Quasi-Linearizability: relaxed consistency for improved concurrency.
Quasi-Linearizability: relaxed consistency for improved concurrency.
Guy Korland
 
The Next Generation Application Server – How Event Based Processing yields s...
The Next Generation  Application Server – How Event Based Processing yields s...The Next Generation  Application Server – How Event Based Processing yields s...
The Next Generation Application Server – How Event Based Processing yields s...
Guy Korland
 
Deuce STM - CMP'09
Deuce STM - CMP'09Deuce STM - CMP'09
Deuce STM - CMP'09
Guy Korland
 
Ad

Recently uploaded (20)

Mining a Global Trade Process with Data Science - Microsoft
Mining a Global Trade Process with Data Science - MicrosoftMining a Global Trade Process with Data Science - Microsoft
Mining a Global Trade Process with Data Science - Microsoft
Process mining Evangelist
 
Process Mining Machine Recoveries to Reduce Downtime
Process Mining Machine Recoveries to Reduce DowntimeProcess Mining Machine Recoveries to Reduce Downtime
Process Mining Machine Recoveries to Reduce Downtime
Process mining Evangelist
 
Language Learning App Data Research by Globibo [2025]
Language Learning App Data Research by Globibo [2025]Language Learning App Data Research by Globibo [2025]
Language Learning App Data Research by Globibo [2025]
globibo
 
CS-404 COA COURSE FILE JAN JUN 2025.docx
CS-404 COA COURSE FILE JAN JUN 2025.docxCS-404 COA COURSE FILE JAN JUN 2025.docx
CS-404 COA COURSE FILE JAN JUN 2025.docx
nidarizvitit
 
2-Raction quotient_١٠٠١٤٦.ppt of physical chemisstry
2-Raction quotient_١٠٠١٤٦.ppt of physical chemisstry2-Raction quotient_١٠٠١٤٦.ppt of physical chemisstry
2-Raction quotient_١٠٠١٤٦.ppt of physical chemisstry
bastakwyry
 
Transforming health care with ai powered
Transforming health care with ai poweredTransforming health care with ai powered
Transforming health care with ai powered
gowthamarvj
 
HershAggregator (2).pdf musicretaildistribution
HershAggregator (2).pdf musicretaildistributionHershAggregator (2).pdf musicretaildistribution
HershAggregator (2).pdf musicretaildistribution
hershtara1
 
What is ETL? Difference between ETL and ELT?.pdf
What is ETL? Difference between ETL and ELT?.pdfWhat is ETL? Difference between ETL and ELT?.pdf
What is ETL? Difference between ETL and ELT?.pdf
SaikatBasu37
 
national income & related aggregates (1)(1).pptx
national income & related aggregates (1)(1).pptxnational income & related aggregates (1)(1).pptx
national income & related aggregates (1)(1).pptx
j2492618
 
Lagos School of Programming Final Project Updated.pdf
Lagos School of Programming Final Project Updated.pdfLagos School of Programming Final Project Updated.pdf
Lagos School of Programming Final Project Updated.pdf
benuju2016
 
How to Set Up Process Mining in a Decentralized Organization?
How to Set Up Process Mining in a Decentralized Organization?How to Set Up Process Mining in a Decentralized Organization?
How to Set Up Process Mining in a Decentralized Organization?
Process mining Evangelist
 
Day 1 MS Excel Basics #.pptxDay 1 MS Excel Basics #.pptxDay 1 MS Excel Basics...
Day 1 MS Excel Basics #.pptxDay 1 MS Excel Basics #.pptxDay 1 MS Excel Basics...Day 1 MS Excel Basics #.pptxDay 1 MS Excel Basics #.pptxDay 1 MS Excel Basics...
Day 1 MS Excel Basics #.pptxDay 1 MS Excel Basics #.pptxDay 1 MS Excel Basics...
Jayantilal Bhanushali
 
Introduction to systems thinking tools_Eng.pdf
Introduction to systems thinking tools_Eng.pdfIntroduction to systems thinking tools_Eng.pdf
Introduction to systems thinking tools_Eng.pdf
AbdurahmanAbd
 
Publication-launch-How-is-Life-for-Children-in-the-Digital-Age-15-May-2025.pdf
Publication-launch-How-is-Life-for-Children-in-the-Digital-Age-15-May-2025.pdfPublication-launch-How-is-Life-for-Children-in-the-Digital-Age-15-May-2025.pdf
Publication-launch-How-is-Life-for-Children-in-the-Digital-Age-15-May-2025.pdf
StatsCommunications
 
problem solving.presentation slideshow bsc nursing
problem solving.presentation slideshow bsc nursingproblem solving.presentation slideshow bsc nursing
problem solving.presentation slideshow bsc nursing
vishnudathas123
 
L1_Slides_Foundational Concepts_508.pptx
L1_Slides_Foundational Concepts_508.pptxL1_Slides_Foundational Concepts_508.pptx
L1_Slides_Foundational Concepts_508.pptx
38NoopurPatel
 
Controlling Financial Processes at a Municipality
Controlling Financial Processes at a MunicipalityControlling Financial Processes at a Municipality
Controlling Financial Processes at a Municipality
Process mining Evangelist
 
Sets theories and applications that can used to imporve knowledge
Sets theories and applications that can used to imporve knowledgeSets theories and applications that can used to imporve knowledge
Sets theories and applications that can used to imporve knowledge
saumyasl2020
 
Understanding Complex Development Processes
Understanding Complex Development ProcessesUnderstanding Complex Development Processes
Understanding Complex Development Processes
Process mining Evangelist
 
AWS Certified Machine Learning Slides.pdf
AWS Certified Machine Learning Slides.pdfAWS Certified Machine Learning Slides.pdf
AWS Certified Machine Learning Slides.pdf
philsparkshome
 
Mining a Global Trade Process with Data Science - Microsoft
Mining a Global Trade Process with Data Science - MicrosoftMining a Global Trade Process with Data Science - Microsoft
Mining a Global Trade Process with Data Science - Microsoft
Process mining Evangelist
 
Process Mining Machine Recoveries to Reduce Downtime
Process Mining Machine Recoveries to Reduce DowntimeProcess Mining Machine Recoveries to Reduce Downtime
Process Mining Machine Recoveries to Reduce Downtime
Process mining Evangelist
 
Language Learning App Data Research by Globibo [2025]
Language Learning App Data Research by Globibo [2025]Language Learning App Data Research by Globibo [2025]
Language Learning App Data Research by Globibo [2025]
globibo
 
CS-404 COA COURSE FILE JAN JUN 2025.docx
CS-404 COA COURSE FILE JAN JUN 2025.docxCS-404 COA COURSE FILE JAN JUN 2025.docx
CS-404 COA COURSE FILE JAN JUN 2025.docx
nidarizvitit
 
2-Raction quotient_١٠٠١٤٦.ppt of physical chemisstry
2-Raction quotient_١٠٠١٤٦.ppt of physical chemisstry2-Raction quotient_١٠٠١٤٦.ppt of physical chemisstry
2-Raction quotient_١٠٠١٤٦.ppt of physical chemisstry
bastakwyry
 
Transforming health care with ai powered
Transforming health care with ai poweredTransforming health care with ai powered
Transforming health care with ai powered
gowthamarvj
 
HershAggregator (2).pdf musicretaildistribution
HershAggregator (2).pdf musicretaildistributionHershAggregator (2).pdf musicretaildistribution
HershAggregator (2).pdf musicretaildistribution
hershtara1
 
What is ETL? Difference between ETL and ELT?.pdf
What is ETL? Difference between ETL and ELT?.pdfWhat is ETL? Difference between ETL and ELT?.pdf
What is ETL? Difference between ETL and ELT?.pdf
SaikatBasu37
 
national income & related aggregates (1)(1).pptx
national income & related aggregates (1)(1).pptxnational income & related aggregates (1)(1).pptx
national income & related aggregates (1)(1).pptx
j2492618
 
Lagos School of Programming Final Project Updated.pdf
Lagos School of Programming Final Project Updated.pdfLagos School of Programming Final Project Updated.pdf
Lagos School of Programming Final Project Updated.pdf
benuju2016
 
How to Set Up Process Mining in a Decentralized Organization?
How to Set Up Process Mining in a Decentralized Organization?How to Set Up Process Mining in a Decentralized Organization?
How to Set Up Process Mining in a Decentralized Organization?
Process mining Evangelist
 
Day 1 MS Excel Basics #.pptxDay 1 MS Excel Basics #.pptxDay 1 MS Excel Basics...
Day 1 MS Excel Basics #.pptxDay 1 MS Excel Basics #.pptxDay 1 MS Excel Basics...Day 1 MS Excel Basics #.pptxDay 1 MS Excel Basics #.pptxDay 1 MS Excel Basics...
Day 1 MS Excel Basics #.pptxDay 1 MS Excel Basics #.pptxDay 1 MS Excel Basics...
Jayantilal Bhanushali
 
Introduction to systems thinking tools_Eng.pdf
Introduction to systems thinking tools_Eng.pdfIntroduction to systems thinking tools_Eng.pdf
Introduction to systems thinking tools_Eng.pdf
AbdurahmanAbd
 
Publication-launch-How-is-Life-for-Children-in-the-Digital-Age-15-May-2025.pdf
Publication-launch-How-is-Life-for-Children-in-the-Digital-Age-15-May-2025.pdfPublication-launch-How-is-Life-for-Children-in-the-Digital-Age-15-May-2025.pdf
Publication-launch-How-is-Life-for-Children-in-the-Digital-Age-15-May-2025.pdf
StatsCommunications
 
problem solving.presentation slideshow bsc nursing
problem solving.presentation slideshow bsc nursingproblem solving.presentation slideshow bsc nursing
problem solving.presentation slideshow bsc nursing
vishnudathas123
 
L1_Slides_Foundational Concepts_508.pptx
L1_Slides_Foundational Concepts_508.pptxL1_Slides_Foundational Concepts_508.pptx
L1_Slides_Foundational Concepts_508.pptx
38NoopurPatel
 
Controlling Financial Processes at a Municipality
Controlling Financial Processes at a MunicipalityControlling Financial Processes at a Municipality
Controlling Financial Processes at a Municipality
Process mining Evangelist
 
Sets theories and applications that can used to imporve knowledge
Sets theories and applications that can used to imporve knowledgeSets theories and applications that can used to imporve knowledge
Sets theories and applications that can used to imporve knowledge
saumyasl2020
 
AWS Certified Machine Learning Slides.pdf
AWS Certified Machine Learning Slides.pdfAWS Certified Machine Learning Slides.pdf
AWS Certified Machine Learning Slides.pdf
philsparkshome
 
Ad

Increasing the Accuracy of LLM Applications with Graph-based RAG_ Practical Implementations.pdf

  • 2. 71% OF ENTERPRISES ARE STUCK LAUNCHING GENAI PROJECTS.
  • 3. A WIDE-REACHING PROBLEM ● 71% of enterprises are stuck launching GenAI projects1 Published by McKinsey May 2024 1 | Stanford 2024 2 ● Current RAGs are only 65% accurate max, too focused on semantic search2
  • 4. VECTOR SEARCH IS INACCURATE 1. "Raphael, a master of the Italian High Renaissance, is known for his exquisite paintings. Though most of his works are housed in the Vatican Museums, some are also displayed at the Louvre." 2. "Leonardo da Vinci, an Italian Renaissance artist, is famous for several masterpieces, including the Mona Lisa, which is housed at the Louvre Museum in Paris. His works are among the most visited and well-known in the world." 3. "The Louvre Museum is home to several Italian Renaissance paintings, notably from artists such as Raphael and Michelangelo, reflecting the rich artistic history of Italy." 4. "Donatello, a master sculptor from the early Italian Renaissance, is renowned for his bronze and marble sculptures rather than paintings. While his influence is widely acknowledged in major museums, including the Louvre" Which Italian artist has the largest number of paintings on display currently in the Louvre? Query
  • 6. SOLVE IT WITH FACT-GROUNDED KNOWLEDGE, SERVED FAST.
  • 7. INTRODUCTION TO GRAPH-BASED RAG RAG Overview ● Retrieval-Augmented Generation (RAG) augments LLM applications with external knowledge retrieval to increase accuracy and reduce hallucinations.
  • 8. INTRODUCTION TO GRAPH-BASED RAG Why Knowledge Graphs? ● A Knowledge Graph is a structured representation of information. It organizes data into nodes (entities) and edges (the relationships between them). �� ● Very useful in discovering deep and intricate connections in your data. This enables complex querying capabilities.
  • 9. 9 L. DA VINCI MONA LISA LOUVRE VENUE IS A 🏫 LOCATED IN PARIS Which Italian artist has the largest number of paintings on display currently in the Louvre? Query KG Output Vector Output Semantic search-based answer which offers only a partial view of the knowledge Liberty Leading the People CREATED DISPLAYED IN D I S P L A Y E D I N La Belle Jardinière D I S P L A Y E D I N CREATED DISPLAYED IN CREATED Relationship- based answer which aggregates many knowledge points GraphRAG is the optimal solution.
  • 10. Aug. 2021 “Unifying large language models & knowledge graphs: A roadmap” May 2023 “LLM for knowledge graph construction and reasoning: Recent capabilities” Jun. 2023 “ChatGPT is not Enough: Enhancing LLM Models with knowledge graphs for fact-aware language modeling” Jun. 2024 “From local to global: a graphRAG approach to query-focused summarization” - Microsoft Research GRAPHRAG IS THE OPTIMAL SOLUTION
  • 11. OPTIMAL LLM <> KNOWLEDGE GRAPH SYNERGY TEXT INPUT LLMs OUTPUT KNOWLEDGE GRAPHS ✨KG-enhanced LLMs ● Structural Facts ● Domain-specific Knowledge ● Symbolic-reasoning TASKS KGs OUTPUT LLMs ✨LLM-augmented KGs ● General Knowledge ● Language Processing ● Generalizability
  • 12. ACCURATE TO SAY YES GraphRAG
  • 13. GRAPH-BASED RAG ARCHITECTURE The Process ● Construct ● Query ● Retrieve ● Generate
  • 14. LLM-READY ARCHITECTURE LLM used for Entity and Relationship Extraction (ERE) I LOVE GRAPHRAG Knowledge Graph stored in a Graph Database Ingestion
  • 15. LLM-READY ARCHITECTURE Query Knowledge Retrieval Enterprise Knowledge Retrieval: extracting the relevant sub-knowledge Personalized Memory Retrieval: extracting the relevant sub-long memory Knowledge Retrieval Memory Retrieval
  • 16. LLM-READY ARCHITECTURE Answer Generation Accurate response with improved personalization and context-awareness Query Knowledge Retrieval Memory Retrieval Response
  • 17. WHEN TO USE GRAPHRAG Well-suited for: ● Complex queries ● Factual accuracy ● Rich contextual understanding ● Large-scale knowledge bases ● Dynamic information
  • 18. USE CASE: ADVANCED CHATBOT LLM-based Bot ● A customer support chatbot retrieves related support tickets and knowledge base articles from a graph database, enhancing response accuracy Frameworks like LangChain and LlamaIndex enable seamless data retrieval for LLMs
  • 19. USE CASE: ADVANCED FINANCE CHATBOT Build GraphRAG-Powered AI Assistant Finance Queries
  • 20. USE CASE: HEALTHCARE CHATBOT Constructed a mental health chatbot using FalkorDB, OpenAI, and LlamaIndex
  • 21. FALKORDB’S ROLE Store correctly ● A low-latency graph database, supports both graph traversals and vector similarity searches, making it ideal for GraphRAG implementations.
  • 22. SCALABILITY IN PRODUCTION ENVIRONMENTS Scaling Strategies ● Horizontal & vertical scalability for handling a large number of knowledge graphs, big and small. ⚪ 🟣 ● Keep low-latency features in mind for applications that require user interactions For example: Reducing graph traversal times
  • 23. GRAPHRAG TOOLS AND FRAMEWORKS Schema management, knowledge graphs, and LLM integration Using GraphRAG-SDK, the process of creating a knowledge graph is very simple # Auto generate graph schema from unstructured data sources = [Source("./data/the_matrix.txt")] s = Schema.auto_detect(sources) # Create a knowledge graph based on schema g = KnowledgeGraph("IMDB", schema=s) g.process_sources(sources)
  • 24. 🔴 Live Demo: GraphRAG
  • 25. 🔴 Live Demo: CodeGraph
  • 26. CONCLUSION - ENHANCING LLM ACCURACY WITH GRAPHRAG We explored how integrating knowledge graphs with Retrieval-Augmented Generation (RAG) techniques significantly enhances the accuracy and performance of LLMs June ‘23: “ChatGPT is not Enough: Enhancing LLM Models with knowledge graphs for fact-aware language modeling”
  • 27. KEY TAKEAWAYS Accuracy ● GraphRAG ensures that LLM responses are grounded in a rich knowledge graph, leading to more accurate and reliable outputs.
  • 28. KEY TAKEAWAYS Performance ● The ability to handle large-scale graphs (and many of them) and perform real-time traversals enhances the speed and efficiency of LLM applications
  • 29. KEY TAKEAWAYS Scale ● A scalable architecture allows GraphRAG to be effectively used in production environments, maintaining consistent performance as data volumes increase.
  • 30. KEY TAKEAWAYS Explainability ● The structured nature of knowledge graphs offers transparency, making it easier to understand and debug LLM responses
  • 31. RECOMMENDATIONS Get RAG Right: ● Understand your data ● Integrate LLMs correctly ● Leverage knowledge graphs ● Think about scale ● Optimize your prompts ● Refine & double-down
  翻译: