Saturday, June 21, 2025
News PouroverAI
Visit PourOver.AI
No Result
View All Result
  • Home
  • AI Tech
  • Business
  • Blockchain
  • Data Science & ML
  • Cloud & Programming
  • Automation
  • Front-Tech
  • Marketing
  • Home
  • AI Tech
  • Business
  • Blockchain
  • Data Science & ML
  • Cloud & Programming
  • Automation
  • Front-Tech
  • Marketing
News PouroverAI
No Result
View All Result

An Easy Way to Comprehend How GraphRAG Works | by Rendy Dalimunthe | Jun, 2024

June 8, 2024
in AI Technology
Reading Time: 8 mins read
0 0
A A
0
Share on FacebookShare on Twitter


Examples to help you understand the GraphRAG mechanism

Towards Data Science

Developing a chatbot that can tackle real questions and give appropriate, precise answers is really a hard job. While there has been remarkable progress in large language models, an open challenge is to couple these models with knowledge bases in order to deliver reliable and context-rich responses.

Photo by Google DeepMind on Unsplash

The key issues almost always come down to hallucination (the model is creating wrong or non-existing information) and contextual understanding, where the model is unable to understand the nuanced relationships between different pieces of information. Others have tried to build robust Q&A systems without much success, since the models often return shabby answers, though they are connected to comprehensive knowledge bases.

While RAG can reduce hallucination by connecting the generated response to real-world data, answering complex questions accurately is a different cup of tea. Users are often greeted with answers such as, “The xx topic is not explicitly covered in the retrieved text” even when the knowledge base clearly contains the information, albeit in a less obvious manner. This is where GraphRAG (Graph Retrieval-Augmented Generation) comes in handy, improving the model’s model’s ability to provide precise and contextually rich answers by leveraging structured knowledge graphs.

RAG: Bridging Retrieval and Generation

RAG represented a major step in combining the best of both retrieval-based and generation-based methods. Given a query, RAG retrieves relevant documents or passages from a large corpus and then generates the answer with this information. One can, therefore, be sure that the generated text can be informative and context-relevant as it is grounded on fact data.

For example, in a question like ”What is the capital of France?” the RAG system will look in its corpus for documents related to the country of France and the mention of its capital, Paris. It will retrieve relevant passages and respond by generating an answer such as ”The capital of France is Paris.” This style fits very well with a simple query and clearly documented answers.

However, RAG falters on more complex queries, specifically those where one needs to understand relationships between entities, when these relationships are not explicit in retrieved documents. The system is coming to its failure and the downfall with questions like “How did the scientific contributions of the 17th century influence early 20th-century physics?” (more on this example later).

GraphRAG: Harnessing the Power of Knowledge Graphs

GraphRAG, as first outlined in the Microsoft Research Blog here, aims to get around these limitations by infusing graph-based retrieval mechanisms into the model. Basically, it reorganizes the unstructured text of the knowledge base into a structured knowledge graph, in which nodes represent entities (e.g., people, places, concepts), and edges represent relationships between entities.

This structured format enables the model to better comprehend and employ the interrelations between different pieces of information.

Photo by Alina Grubnyak on Unsplash

Let us now go into a little bit of detail to understand the concept of GraphRAG, in a comparison with RAG, using the easy way.

As starter, let’s take a hypothetical knowledge base comprising sentences from various scientific and historical texts as follows:

1. “Albert Einstein developed the theory of relativity, which revolutionized theoretical physics and astronomy.”

2. “The theory of relativity was formulated in the early 20th century and has had a profound impact on our understanding of space and time.”

3. “Isaac Newton, known for his laws of motion and universal gravitation, laid the groundwork for classical mechanics.”

4. “In 1915, Einstein presented the general theory of relativity, expanding on his earlier work on special relativity.”

5. “Newton’s work in the 17th century provided the foundation for much of modern physics.”

In a RAG system, these sentences would be stored as unstructured text. And asking “How did the scientific contributions of the 17th century influence early 20th-century physics?”, for instance, could have put the system in a difficult position if the exact phrasing and retrieval quality of the documents did not link the 17th-century influence directly with early 20th-century physics. RAG might give answers like “Isaac Newton’s work in the 17th century provided the foundation for much of modern physics. Albert Einstein developed the theory of relativity in the early 20th century”, since the mechanism was able to retrieve relevant information but cannot clearly explain the influence of 17th-century physics on early 20th-century developments.

In contrast, GraphRAG turns this text into a structured knowledge graph. A knowledge graph represents how different things are related to each other. It uses a set of ontologies, which are a set of rules to help organize the information. This way, it can find hidden connections, not only the obvious ones.

Using GraphRAG system, the previous knowledge base will be transformed into nodes and edges like the following.

Nodes: Albert Einstein, theory of relativity, theoretical physics, astronomy, early 20th century, space, time, Isaac Newton, laws of motion, universal gravitation, classical mechanics, 1915, general theory of relativity, special relativity, 17th century, modern physics.
Edges:- (Albert Einstein) – [developed] → (theory of relativity)- (theory of relativity) – [revolutionized] → (theoretical physics)- (theory of relativity) – [revolutionized] → (astronomy)- (theory of relativity) – [formulated in] → (early 20th century)- (theory of relativity) – [impacted] → (understanding of space and time)- (Isaac Newton) – [known for] → (laws of motion)- (Isaac Newton) – [known for] → (universal gravitation)- (Isaac Newton) – [laid the groundwork for] → (classical mechanics)- (general theory of relativity) – [presented by] → (Albert Einstein)- (general theory of relativity) – [expanded on] → (special relativity)- (Newton’s work) – [provided foundation for] → (modern physics)

When prompted with the question “How did the scientific contributions of the 17th century influence early 20th-century physics?” GraphRAG’s -based retriever can recognize the progression from Newton’s work to Einstein’s advancements, highlighting the influence of 17th-century physics on the early 20th-century development. This structured retrieval enables the answer to be contextually rich and accurate: “Isaac Newton’s laws of motion and universal gravitation, formulated in the 17th century, provided the foundation for classical mechanics. These principles influenced Albert Einstein’s development of the theory of relativity in the early 20th century, which expanded our understanding of space and time.”



Source link

Tags: ComprehendDalimuntheEasyGraphRAGJunRendyworks
Previous Post

MVA investors’ Aaron Davis sells Tango Therapeutics shares worth $985,880 By Investing.com

Next Post

Gold tumbles on solid US nonfarm payroll report, China slowing down gold buying

Related Posts

How insurance companies can use synthetic data to fight bias
AI Technology

How insurance companies can use synthetic data to fight bias

June 10, 2024
From Low-Level to High-Level Tasks: Scaling Fine-Tuning with the ANDROIDCONTROL Dataset
AI Technology

From Low-Level to High-Level Tasks: Scaling Fine-Tuning with the ANDROIDCONTROL Dataset

June 10, 2024
Decoding Decoder-Only Transformers: Insights from Google DeepMind’s Paper
AI Technology

Decoding Decoder-Only Transformers: Insights from Google DeepMind’s Paper

June 9, 2024
How Game Theory Can Make AI More Reliable
AI Technology

How Game Theory Can Make AI More Reliable

June 9, 2024
Buffer of Thoughts (BoT): A Novel Thought-Augmented Reasoning AI Approach for Enhancing Accuracy, Efficiency, and Robustness of LLMs
AI Technology

Buffer of Thoughts (BoT): A Novel Thought-Augmented Reasoning AI Approach for Enhancing Accuracy, Efficiency, and Robustness of LLMs

June 9, 2024
Deciphering Doubt: Navigating Uncertainty in LLM Responses
AI Technology

Deciphering Doubt: Navigating Uncertainty in LLM Responses

June 9, 2024
Next Post
Gold tumbles on solid US nonfarm payroll report, China slowing down gold buying

Gold tumbles on solid US nonfarm payroll report, China slowing down gold buying

FusOn-pLM: Advancing Precision Therapy for Fusion Oncoproteins through Enhanced Protein Language Modeling

FusOn-pLM: Advancing Precision Therapy for Fusion Oncoproteins through Enhanced Protein Language Modeling

Propagandists are using AI too

Propagandists are using AI too

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

  • Trending
  • Comments
  • Latest
23 Plagiarism Facts and Statistics to Analyze Latest Trends

23 Plagiarism Facts and Statistics to Analyze Latest Trends

June 4, 2024
Managing PDFs in Node.js with pdf-lib

Managing PDFs in Node.js with pdf-lib

November 16, 2023
How ‘Chain of Thought’ Makes Transformers Smarter

How ‘Chain of Thought’ Makes Transformers Smarter

May 13, 2024
Is C.AI Down? Here Is What To Do Now

Is C.AI Down? Here Is What To Do Now

January 10, 2024
The Importance of Choosing a Reliable Affiliate Network and Why Olavivo is Your Ideal Partner

The Importance of Choosing a Reliable Affiliate Network and Why Olavivo is Your Ideal Partner

October 30, 2023
Best headless UI libraries in React Native

Best headless UI libraries in React Native

September 28, 2023
Can You Guess What Percentage Of Their Wealth The Rich Keep In Cash?

Can You Guess What Percentage Of Their Wealth The Rich Keep In Cash?

June 10, 2024
AI Compared: Which Assistant Is the Best?

AI Compared: Which Assistant Is the Best?

June 10, 2024
How insurance companies can use synthetic data to fight bias

How insurance companies can use synthetic data to fight bias

June 10, 2024
5 SLA metrics you should be monitoring

5 SLA metrics you should be monitoring

June 10, 2024
From Low-Level to High-Level Tasks: Scaling Fine-Tuning with the ANDROIDCONTROL Dataset

From Low-Level to High-Level Tasks: Scaling Fine-Tuning with the ANDROIDCONTROL Dataset

June 10, 2024
UGRO Capital: Targeting to hit milestone of Rs 20,000 cr loan book in 8-10 quarters: Shachindra Nath

UGRO Capital: Targeting to hit milestone of Rs 20,000 cr loan book in 8-10 quarters: Shachindra Nath

June 10, 2024
Facebook Twitter LinkedIn Pinterest RSS
News PouroverAI

The latest news and updates about the AI Technology and Latest Tech Updates around the world... PouroverAI keeps you in the loop.

CATEGORIES

  • AI Technology
  • Automation
  • Blockchain
  • Business
  • Cloud & Programming
  • Data Science & ML
  • Digital Marketing
  • Front-Tech
  • Uncategorized

SITEMAP

  • Disclaimer
  • Privacy Policy
  • DMCA
  • Cookie Privacy Policy
  • Terms and Conditions
  • Contact us

Copyright © 2023 PouroverAI News.
PouroverAI News

No Result
View All Result
  • Home
  • AI Tech
  • Business
  • Blockchain
  • Data Science & ML
  • Cloud & Programming
  • Automation
  • Front-Tech
  • Marketing

Copyright © 2023 PouroverAI News.
PouroverAI News

Welcome Back!

Login to your account below

Forgotten Password? Sign Up

Create New Account!

Fill the forms bellow to register

All fields are required. Log In

Retrieve your password

Please enter your username or email address to reset your password.

Log In