Skip to content

anjor/graphrag-example

Repository files navigation

GraphRAG Example

An experiment to compare "regular" (hereafter referred to as baseline) RAG and GraphRAG.

Experiment

I indexed my favourite plasma physics paper by Alex Scheckochihin in two different ways. Before indexing, I extracted the pdf into a single text file using the code in data_extraction.py

  1. Baseline RAG -- chunking the text, calculating embeddings and storing them in pinecone
  2. GraphRAG -- indexing the graph using their built-in indexing pipeline

And then ran queries against both.

Results

The query used was What are the main themes of this article?. The results were:

Baseline

GraphRAG

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages