What this covers

This 41-minute video walks through the architecture and practical workings of GraphRAG, Microsoft's approach to combining knowledge graphs with retrieval-augmented generation. Adam Lucik builds the case by first diagnosing why traditional vector-based RAG falters—semantic similarity retrieval on text chunks misses connections and broader themes—then demonstrates how structuring unstructured data into entities, relationships, and hierarchical communities enables richer, multi-hop reasoning. The presentation moves from conceptual framing into implementation, covering GraphRAG's full indexing pipeline: entity and relationship extraction via LLM, community clustering using the Leiden algorithm, and the generation of community reports that capture meaning at multiple levels of granularity.

The bulk of the runtime is devoted to the three retrieval modes GraphRAG provides. Local search starts with semantic lookups on node embeddings and traverses the graph to gather entities, relationships, and community summaries. Global search retrieves community reports from higher levels to answer thematic questions traditional RAG cannot—a capability grounded in the structured hierarchies the graph creates. DRIFT search (Dynamic Reasoning and Inference with Flexible Traversal) combines both, using hypothetical document embeddings to generate initial answers and follow-up questions, then conducting local searches on each. The video then runs side-by-side comparisons between GraphRAG's three modes and a simple vector database, showing where each excels. Lucik frames knowledge graphs not as a replacement but as complementary to traditional RAG, most valuable when relationships and context across complex unstructured information matter. Trade-offs are acknowledged: GraphRAG demands more computational resources, greater implementation complexity, and domain expertise in schema design, while traditional RAG remains simpler and faster for straightforward tasks.

Sharpest takeaway

Knowledge graph-based RAG systems preserve structural relationships and enable multi-hop reasoning across documents, making them superior to traditional vector-based RAG for complex information retrieval, particularly when documents contain interconnected concepts that simple semantic similarity cannot capture.

  • Knowledge graphs explicitly represent entities, relationships, and communities hierarchically, while traditional RAG treats text as flat chunks, losing structural context
  • Graph RAG enables three complementary search modes (local, global, drift) that leverage community detection and graph traversal to answer both specific and broad questions, whereas traditional RAG relies purely on semantic similarity
  • Empirical comparison shows graph RAG produces more complete, coherent answers with specific supporting details across dispersed information, while traditional vector RAG returns fragmented or generic responses

The claims · ranked43 claims · weighted by value

This asset isn't compiled yet

You're seeing its claims, ranked. Compile it to build the argument threads, weight them, and check each claim against your library — the full view.

0.79

Drift search (Dynamic Reasoning and Inference with Flexible Traversal) combines global and local search by using hypothetical document embedding (HyDE) to start at the global level, generating an initial answer plus follow-up questions, then running local searches for each follow-up to create a pseudo-refinement loop—with relevance-scored follow-ups guiding traversal—aggregating all intermediate responses via map-reduce into a final ranked answer.

definitionhigh valueestablishednovelty 4/4durability 2/4· Adam Lucik

“drift search which is a novel idea introduced by Microsoft that stands for dynamic reasoning in inference with flexible traversal... it is going to go through hypothetical document embedding or hide... that hypothetical document instead of the query is going to be the one that's actually embedded and used to run the first stage of retrieval... for each of the follow-up questions... we switch over to our local search... This is going to create a pseudo refinement Loop”

0.78

DRIFT (Dynamic Reasoning in Inference with Flexible Traversal) search is a novel technique introduced by Microsoft that combines global and local search by using hypothetical document embedding to generate a document based on the query that is then embedded and used to retrieve similar community reports, followed by generation of an initial answer and follow-up questions, then local search on each follow-up question with relevance scoring to create a pseudo-refinement loop.

factualhigh valueestablishednovelty 3/4durability 3/4· Adam Lucik

“drift search is a pretty cool combination of both Global and local search essentially it is going to include Community Information within the search process going all the way down to local information when a user actually implements a query it is going to go through hypothetical document embedding or hide here where essentially what it's going to do is take the query look at an example document from something like a community report and generate a hypothetical document based on that query that hypothetical document instead of the query is going to be the one that's actually embedded and used to run the first stage of retrieval that first stage of retrieval is going to be retrieving the most similar to this hypothetical document Community reports so we'll be starting at a global level then from all of these retrieved Community reports that we have here what we do is we generate an initial answer to the query along with follow-up questions then for each of the follow-up questions that we generated from this we switch over to our local search”

0.75

Knowledge graphs are not a new concept—they were introduced by Google and power much of the advanced Google search used today—but traditionally their creation was very resource intensive, requiring either manual building and curation or conversion of relational databases into graph structures.

factualhigh valueestablishednovelty 2/4durability 3/4· Adam Lucik

“knowledge graphs are not necessarily A New Concept per se they were actually introduced by Google and power a lot of the advanced Google search that we have today but the issue with knowledge graphs is that traditionally their creation and making a Knowledge Graph has been a very resource intensive process you either had to literally manually build and curate these things or convert some sort of traditional relational database into a graph based structure”

0.71

As you scale a knowledge base by adding topics or more text on the same topic, traditional RAG gets bottlenecked at the retrieval step because retrieving just N relevant chunks based on the query misses connections between similarities across the data and broader themes the information conveys.

causalhigh valueestablishednovelty 2/4durability 3/4· Adam Lucik

“as you introduce more complexities into your knowledge base whether that be additional topics or just more text on the same topic we start to get bottlenecked by this retrieval step simply retrieving just the N number of relevant chunks based on the user's query can miss connections between similarities across your data or broader themes”

0.71

With the advent of large language models, knowledge graphs can now be created automatically by using LLMs' reasoning capabilities to read unstructured text (Word documents, PDFs, blog posts) to identify entities, infer relationships, and structure information—and LLMs can also update and maintain those graphs.

causalhigh valueestablishednovelty 2/4durability 3/4· Adam Lucik

“now with the Advent of large language models we're actually able to start taking advantage of them for the automated creation of graph-based representations of data so now what we can do is use their Advanced reasoning capabilities across unstructured text... to identify entities infer relationships and actually automatically structure the information in a way that was previously a very intensive manual process”

0.70

Global search is something traditional RAG performs very poorly at, because it can only return specificities from unstructured text chunks; GraphRAG's embedded Community Reports allow it to answer queries about broad themes and ideas across the entire knowledge base.

causalhigh valuecontestednovelty 3/4durability 3/4· Adam Lucik

“Global search is going to be something that traditional rag actually performs very poorly at... which allows us in turn to be able to answer queries about broad themes and ideas across our unstructured data as mentioned this is something that traditional rag really cannot do because it only has the ability to return back the specificities from our unstructured text chunks”

0.69

GraphRAG uses a lengthy prompt with examples to make the LLM identify all entities (name, type, description) from given entity types, then identify pairs of related source/target entities with a relationship description and an integer strength score from 1 to 10, which is later used when merging the subgraphs.

factualhigh valueestablishednovelty 3/4durability 2/4· Adam Lucik

“it'll go through first and write down all the entity names The Entity types and the entity descriptions... what it's going to do is identify pairs of source and Target entities that are clearly related to each other so it'll say the source entity the target entity and then the relationship description between them and then what we also try and do is have some sort of integer score ranked 1 to 10 indicating the strength of the relationship this will come into play later when we actually merge all of the subgraphs”

0.69

GraphRAG's indexing data flow loads and splits text into chunks, extracts entities and relationships with an LLM per chunk, merges and summarizes the per-chunk subgraphs, creates embeddings for the nodes, performs community detection, and then generates Community Reports (summaries of information within communities) which are also embedded.

factualhigh valueestablishednovelty 3/4durability 2/4· Adam Lucik

“it's loading and splitting the text first into chunks it is then going to extract entities and relationships with a language model for each chunk it is then going to merge and summarize the per chunk subgraphs... We will then create embeddings for the nodes... as well as do some form of community detection then finally... we're also going to create Community reports which are going to be summarizations of these the information actually within communities that are going to be embedded as well”

0.69

After building the basic graph, GraphRAG applies the Leiden algorithm to group nodes into hierarchical communities at different levels of granularity, and embeds nodes with the node2vec algorithm, so that communities capture obvious connections while embeddings capture subtle patterns.

factualhigh valueestablishednovelty 3/4durability 2/4· Adam Lucik

“we can apply the AFF forementioned leaden algorithm to create and group these nodes into different hierarchical related entities or communities... what we'll be doing is actually also embedding the nodes using the node to VC algorithm so later on we'll be able to use the communities as well as the embeddings to allow us to look at both the subtle patterns through embeddings and the obvious connections through communities”

0.69

When merging per-chunk subgraphs, entities with the same name and type are merged by combining their descriptions into an array, relationships with the same source and target are likewise merged into an array, and then these arrays are summarized one final time by an LLM into a single explanation given all context across chunks.

factualhigh valueestablishednovelty 3/4durability 2/4· Adam Lucik

“any entities with the same name and type are going to be merged by creating a simple array of their descriptions and then any relationships with the same source and Target are merged also by creating an array of their descriptions the final step is then summarizing these arrays or lists one more time into a single final explanation given all the context”

0.69

Global search retrieves the most similar community reports at a specified hierarchical level, then uses a map-reduce style approach: an LLM extracts key points from each report with relevance scores, ranks and filters out the least relevant points, and returns the most important points as context for generation.

factualhigh valueestablishednovelty 3/4durability 2/4· Adam Lucik

“we can use the embedded Community reports at a specified hierarchical level to return back the nearest or most similar Community reports to that query we then run a series of generation steps... take the report and extract out the key points... attach with it a relevant score... This then goes through a map reduce style approach where what it does is it ranks and filters these intermediary points trying to remove the ones that are least relevant”

0.69

Local search first uses semantic search over node embeddings to find relevant entities, treats those as entry points, then traverses to connected text chunks, relevant community reports, related entities and their relationships, combining, filtering and ranking the results to fit the context window for the LLM's response.

factualhigh valueestablishednovelty 3/4durability 2/4· Adam Lucik

“first search for the relevant entities to our query using semantic search... these nodes are going to become the entry points on our graph that we can now Traverse so starting at these points we look at the connected chunks of text... as well as different relevant Community reports... other entities and the relationships between all of them... are all going to be combined filtered and ranked to fit within our context window”

0.69

GraphRAG generates Community Reports by aggregating and summarizing the main concepts across communities and levels, capturing increasingly higher-level ideas as communities become broader, and embeds these reports into a vector store for use in broad retrieval.

factualhigh valueestablishednovelty 3/4durability 2/4· Adam Lucik

“what graph rag implements is community report generation and summarization so with the clear Community groupings what we can do is actually aggregate all of the main Concepts across the different levels and across the different communities into summaries this will allow us to increasingly capture the groupings of the ideas and get to higher level and higher level ideas as those communities become more broad”

0.69

Knowledge graphs were introduced by Google and power a lot of the advanced Google search that exists today, but traditionally their creation has been a very resource intensive process requiring either manual building and curation or conversion of relational databases into graph-based structures.

factualhigh valueestablishednovelty 1/4durability 3/4· Adam Lucik

“knowledge graphs are not necessarily A New Concept per se they were actually introduced by Google and power a lot of the advanced Google search that we have today but the issue with knowledge graphs is that traditionally their creation and making a Knowledge Graph has been a very resource intensive process you either had to literally manually build and curate these things or convert some sort of traditional relational database into a graph based structure”

0.68

Traditional RAG benefits from simpler implementation/deployment, suits straightforward retrieval tasks, handles structured text data well, and has lower computational overhead, but loses structural information when chunking, can break related content, has limited ability to capture relationships, and struggles to reason across disparate facts—risking incomplete or fragmented answers.

normativehigh valueestablishednovelty 2/4durability 3/4· Adam Lucik

“the benefits of traditional rag are much simpler implementation and deployment... lower comp computational overhead some of the drawbacks... it loses structural information when chunking the documents it can break up related content... struggles when it has to reason or connect multiple facts that might be disperate or strewn across a document so there are potentials for incomplete or fragmented answers”

0.68

Communities create a structured way of understanding different levels of granularity in the knowledge graph, ranging from broad overviews of concepts at the top level to very detailed local clusters at lower levels, aiding organization and navigation during retrieval.

factualhigh valueestablishednovelty 2/4durability 3/4· Adam Lucik

“communities is that they create the structured way of understanding different levels of granularity within our knowledge graph from very broad overviews of Concepts at a top level to very very detailed local clusters at lower levels this will really help us in organizing and also navigating these knowledge graphs”

0.68

The three main components of knowledge graphs in GraphRAG are entities (distinct objects/persons/places/events/concepts extracted from text chunks, forming nodes), relationships (connections between entities, also extracted by LLM analysis), and communities (clusters of related entities identified through hierarchical community detection, typically the Leiden algorithm).

definitionhigh valueestablishednovelty 2/4durability 3/4· Adam Lucik

“the three main components of knowledge graphs this includes entities relationships and communities an entity in this case is going to be a distinct object person place event or concept that has been extracted from a chunk of text through a language model analysis... relationships then are going to be the different connections between two of our entities... communities so communities are more so going to be clusters of related entities and the relationships identified through some form of hierarchical community detection generally this is going to be using something like the leaden algorithm”

0.68

GraphRAG preserves structural relationships and hierarchies in unstructured knowledge, captures connections between related information better, provides more complete and contextual answers with improved retrieval accuracy, supports complex multi-hop reasoning, maintains document coherence, and offers more interpretability—at the cost of greater implementation/maintenance complexity, more processing to build and update the graph, higher computational overhead (notably slower retrieval), need for domain expertise to define schemas, and harder storage and scaling.

normativehigh valuecontestednovelty 2/4durability 3/4· Adam Lucik

“graph rag on the other hand has the benefits of preserving a lot of the structural relationships and hierarchies... better at capturing the connections... much more complete and contextual answers as well as some improved retrieval accuracy... better supports complex reasoning across multiple facts... The drawbacks to graph rag are that it's much more complex to implement and maintain requires a little bit more of processing... higher computational overhead... may require some domain expertise to Define some schemas”

0.68

GraphRAG does not replace traditional RAG; it still relies on regular embeddings and retrieval methods, so the two methodologies are complementary and can be used in tandem, with graph-based approaches being most valuable when you need to maintain relationships and nuances between complex unstructured information.

normativehigh valuecontestednovelty 2/4durability 3/4· Adam Lucik

“graph rag really still relies on on regular embeddings and retrieval methods themselves so these methodologies don't necessarily replace each other but they're more a complement to each other and can be used in tandem... graph rag is particularly valuable if you need to maintain relationships or nuances between complex information that you have that's unstructured but traditional rag is a lot easier to set up”

0.68

Traditional RAG has drawbacks of losing structural information when chunking documents, breaking up related content during chunking, having limited ability to capture relationships between information, and struggling to reason or connect multiple facts dispersed across a document, resulting in potential for incomplete or fragmented answers due to chunking boundaries.

factualhigh valueestablishednovelty 2/4durability 3/4· Adam Lucik

“some of the drawbacks that we have though are it loses structural information when chunking the documents it can break up related content during that chunking stage it has a limited ability to actually capture the relationships between different pieces of information purely relying on the language model as it's generating its final response and then it struggles when it has to reason or connect multiple facts that might be disperate or strewn across a a document so there are potentials for incomplete or fragmented answers due to these chunking boundaries”

0.66

A knowledge graph is a knowledge base that uses a graph structure data model to represent and operate on data, storing interlinked descriptions of entities (objects, events, situations, or concepts) while encoding the free-form semantics or relationships underlying those entities.

definitionhigh valueestablishednovelty 1/4durability 4/4· Adam Lucik

“a knowledge graph is a knowledge base that uses a graph structure data model or topology to represent and operate on data knowledge graphs are often used to store Interlink descriptions of entities which are objects events situations or concepts while also encoding the free form semantics or relationships underlying these entities”

0.65

GraphRAG uses a lengthy prompt that shows examples of entity types and relationships to have a language model identify all entities from given types in text chunks and then identify pairs of source and target entities that are clearly related, with relationship strength scored 1-10.

factualhigh valueestablishednovelty 1/4durability 3/4· Adam Lucik

“graph rag actually uses quite a lengthy prompt here where it shows some examples of how to actually put in the entities as well as the relationships given some chunk of text but the goal here is going to be given a text document that is relevant to the activity as well as a generated list of entity types what it's going to do is identify all of the entities from those given types from this text Chunk and then all of the relationships among the identified entities”

0.64

Knowledge graph RAG addresses the limitation of semantic similarity retrieval by introducing a structured hierarchical organization that lets the system start at and traverse different paths along the graph to retrieve the right information more effectively.

causalhigh valuecontestednovelty 2/4durability 3/4· Adam Lucik

“knowledge graphs and Knowledge Graph rag approaches address this limitation by introducing a structured hierarchical approach to the actual information organization and the retrieval that we run on our knowledge base we can take advantage of this structured way of knowing how Concepts ideas and different entities... are actually connected by allowing our system to both start at and Traverse these different paths along this graph”

0.63

Traditional RAG has benefits of simpler implementation and deployment, works well for straightforward information retrieval tasks, handles unstructured text data effectively, and has lower computational overhead compared to GraphRAG.

factualhigh valueestablishednovelty 0/4durability 3/4· Adam Lucik

“the benefits of traditional rag are much simpler implementation and deployment as you can see much uh more simple than what we've got going on up above that works well for very straightforward information retrieval tasks good at handling you know H structured Text data and has a bit of a lower comp computational overhead”

0.63

Traditional retrieval augmented generation systems follow a process of chunking documents into workable pieces, embedding them into a vector database using an embedding model, then at runtime embedding the user query and calculating semantic similarity to retrieve the top N relevant chunks which are passed as context to the language model along with the original query.

factualhigh valueestablishednovelty 0/4durability 3/4· Adam Lucik

“taking your document you chunk it into workable pieces of text that is all embedded into a vector database using an embedding model and then at runtime what happens is someone inputs a query that query is also embedded a semantic similarity calculation is ran across your vector database to retrieve semantically the top and relevant chunks and then those are of course passed through as context to the language model along with the original query”

0.61

When entities with the same name and type are found across multiple chunks, they are merged by creating an array of their descriptions; relationships with the same source and target are also merged by creating an array of their descriptions, and these arrays are then summarized into single final explanations.

factualhigh valueestablishednovelty 1/4durability 3/4· Adam Lucik

“any entities with the same name and type are going to be merged by creating a simple array of their descriptions and then any relationships with the same source and Target are merged also by creating an array of their descriptions the final step is then summarizing these arrays or lists one more time into a single final explanation given all the context of the entities in relationships across all of the chunks”

0.61

The Leiden algorithm is used for hierarchical community detection in knowledge graphs to create multiple levels of community groupings, with more specific communities at lower levels and broader communities at higher levels, allowing for multi-scale navigation of the graph.

factualhigh valueestablishednovelty 1/4durability 3/4· Adam Lucik

“what it's going to try and do is put similar nodes together into these communities at different levels of granularity so in this simple diagram that we see here for a level one Community detection what we might see is all of our nodes that are nicely connected will algorithmically move the similar nodes closer together and then what we can do is Define these level one communities and then once we kind of aggregate all of these into larger groupings of nodes we can then again follow the same thing and create a higher up community so this will be a level two community”

0.60

A knowledge graph is a knowledge base that uses a graph structure data model or topology to represent and operate on data, and knowledge graphs are often used to store interlinked descriptions of entities (objects, events, situations, or concepts) while also encoding the free form semantics or relationships underlying these entities.

definitionhigh valueestablishednovelty 0/4durability 4/4· Adam Lucik

“the technical definition is that a knowledge graph is a knowledge base that uses a graph structure data model or topology to represent and operate on data knowledge graphs are often used to store Interlink descriptions of entities which are objects events situations or concepts while also encoding the free form semantics or relationships underlying these entities”

0.58

GraphRAG by default splits text into chunks of 1,200 tokens with 100-token overlaps, which for the fine-tuning guide produced about 53 chunks.

factualhigh valueestablishednovelty 2/4durability 1/4· Adam Lucik

“it is first split by default into chunks of 1,200 tokens with 100 token overlaps so I've simulated this very quickly with the token teex Splitter from Lang chain and then when running this we can see that we have about 53 chunks”

0.52

GraphRAG methodologies do not necessarily replace traditional RAG methodologies but rather complement each other and can be used in tandem to enhance systems.

causalhigh valuespeaker onlynovelty 2/4durability 3/4· Adam Lucik

“graph rag really still relies on on regular embeddings and retrieval methods themselves so these methodologies don't necessarily replace each other but they're more a complement to each other and can be used in tandem to really enhance your system”

0.52

Global search struggles with specific technical details but excels at providing broader thematic overviews, while local search provides granular specific information from entities and relationships but misses broader contextual themes.

factualhigh valuespeaker onlynovelty 2/4durability 3/4· Adam Lucik

“we know that our local search is going quite smoothly and it's very much simulating what we would initially see with a traditional based approach but augmenting it through all of the additional context that we're able to gather and the different approach to actually finding the relevant information with our knowledge graph our second search method here Global search is going to be something that traditional rag actually performs very poorly at we can recall that through the clustering of communities during the indexing process we created Community reports as summaries of the different high level themes across the various levels of these groupings which allows us in turn to be able to answer queries about broad themes and ideas across our unstructured data as mentioned this is something that traditional rag really cannot do because it only has the ability to return back the specificities from our unstructured text chunks”

0.48

Graph RAG with DRIFT search is recommended when ready to scale simple proof-of-concepts up to more complex systems that require handling complex relationships and multiple interconnected concepts.

normativehigh valuespeaker onlynovelty 1/4durability 3/4· Adam Lucik

“so when you're ready to take your simple proof of concept with maybe something like a simple retrieval thing that we had here up to the next level you might want to consider a Knowledge Graph based approach”

0.45

In a local search for tools for model initialization, GraphRAG found relevant information beyond the document's explicit tools list (Hugging Face, PyTorch, TensorFlow), surfacing Nvidia Nemo and Optimum by Hugging Face through graph traversal—demonstrating it can pull related entities the explicit text section did not list.

factualhigh valuespeaker onlynovelty 3/4durability 1/4· Adam Lucik

“if you look back in the text at their explicit tools and libraries for model initialization you can see that it only has hugging face and Pie torch and tensor flow here but it also managed to find relevant information from things like Nemo and Optimum which talks about enhancing language model deployment efficiency”

0.45

Drift search produced markedly more specific and longer output for the RAG-vs-fine-tuning-vs-PEFT query than either global or local search alone, combining details strewn around the large document with the specifics from local granular searches.

factualhigh valuespeaker onlynovelty 3/4durability 1/4· Adam Lucik

“we can see a major difference we're starting to see a huge increase in the specificity of the output that we have here as well as the length... is able to combine a lot of really good details that are strewn all the way around the large document that we have with the specifics that are available in the local more granular searches”

0.40

When the same RAG-vs-fine-tuning-vs-PEFT query was run through a simple ChromaDB vector retrieval setup (chunked identically to GraphRAG), it returned a sparse, less specific list lacking detailed supporting arguments, inferior to GraphRAG's global, local, and drift responses.

factualhigh valuespeaker onlynovelty 2/4durability 1/4· Adam Lucik

“I have set up a very very simple instance of chroma DB and embedded all of the text documents... we get back what is a little bit of a sorry response in comparison to some of the earlier ones... not a lot of very specific information... then it says you know depends on the specific needs of the application without going into a lot of detail or supporting arguments”

0.39

Local search returned hugging face Transformers, PyTorch, TensorFlow, Nvidia Nemo, and Optimum by Hugging Face for the query about tools for model initialization, including some tools not explicitly listed in the document's tools section but implicitly related through community connections

factualhigh valuespeaker onlynovelty 1/4durability 2/4· Adam Lucik

“so we can see that model initialization is a critical step for setting up llms for operation and we can see some of the reports and entities that it actually referenced from this and then more specifically it tells me that hugging face Transformers pytorch and tensor flow are going to be Frameworks and then also Nvidia Nemo and Optimum by hugging face”

0.39

Global search on the broad query about choosing between RAG, fine-tuning, and PFT approaches successfully integrated insights from multiple community reports across different hierarchy levels, providing comprehensive overview of tradeoffs between approaches

factualhigh valuespeaker onlynovelty 1/4durability 2/4· Adam Lucik

“we can see that it's pulling from a wide variety of reports across the entire you know life of this knowledge base so really good broad question answer here and we can see that is pulling from a nice broad overview of the data”

0.38

Representing unstructured data as a graph is itself a good visualization aid because humans understand interconnected ideas and relationships, allowing one to see larger concepts, offshoots, and the overall structure of the data.

normativeestablishednovelty 1/4durability 2/4· Adam Lucik

“right off the bat this is already a great way to visualize unstructured data because we as humans of course are going to understand a little bit more of how these ideas and relationships are interconnected... be able to just understand the structure of a lot of this stuff”

0.35

The initial Graph RAG setup with Microsoft's package requires configuring the settings YAML file with OpenAI API keys and model selections (e.g., GPT-4 or GPT-4o for cost efficiency), then running the indexing command to create the knowledge graph.

factualhigh valuespeaker onlynovelty 0/4durability 2/4· Adam Lucik

“so you open up that yaml file and then insert in your open AI API key so it says graph rag API key you can save it as that but in my environment variables I have my openai API key set up here so I'll just replace that line with this that'll grab it there and then also if you're a little bit costc conscious you can change the model here to GPT 40 similarly down here for embedding models we are going to also insert in our open AI API key and after that that's really all you have to do one quick clarification is that actually the inputs file should be just input file”

0.34

Knowledge graphs mirror human cognition by explicitly mapping relationships between objects, concepts and ideas through both semantic and relational connections, paralleling how brains understand information not as isolated facts but as interconnected concepts.

factualcontestednovelty 1/4durability 2/4· Adam Lucik

“we're trying to mirror a little bit of human cognition within our data structure by explicitly mapping relationships between objects Concepts and ideas through both their semantic and relational connections this very much so parallels how our brains actually understand and internalize information not so much as isolated facts but more as interconnected Concepts”

0.25

Setting up GraphRAG is made easy by Microsoft's no-code/low-code package: you initialize with 'graph rag init' specifying a root folder, insert your OpenAI API key (and embedding model key) into the generated settings.yaml, optionally switch the model to GPT-4o to save cost, and run 'graph rag index' to build the graph in a few minutes.

factualestablishednovelty 1/4durability 1/4· Adam Lucik

“Microsoft has made this very easy by just implementing a no code low code graph rag package... open up that yaml file and then insert in your open AI API key... if you're a little bit costc conscious you can change the model here to GPT 40... type in graph rag index and then say our root file”

0.24

Traditional retrieval augmented generation works by chunking documents, embedding them into a vector database, and at runtime embedding the user query, running a semantic similarity calculation to retrieve the top N relevant chunks, and passing those plus the original query to the language model as context.

definitionestablishednovelty 0/4durability 2/4· Adam Lucik

“taking your document you chunk it into workable pieces of text that is all embedded into a vector database using an embedding model and then at runtime what happens is someone inputs a query that query is also embedded a semantic similarity calculation is ran across your vector database to retrieve semantically the top and relevant chunks”

0.19

By default, GraphRAG splits text into chunks of 1,200 tokens with 100 token overlaps to preserve context continuity during the chunking stage.

factualestablishednovelty 0/4durability 1/4· Adam Lucik

“it is first split by default into chunks of 1,200 tokens with 100 token overlaps”