Skip to content

Commit 79de3ad

Browse files
committed
2 parents d49f203 + f3de689 commit 79de3ad

18 files changed

+37
-34
lines changed

src/content/docs/concepts/intro-to-graphrag.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,18 +30,18 @@ To give you a clearer picture, the patterns explained in this post include:
3030
### Basic GraphRAG Patterns
3131

3232
* [Basic Retriever](/reference/graphrag/basic-retriever/)
33-
* [Pattern Matching](reference/graphrag/pattern-matching/)
33+
* [Pattern Matching](/reference/graphrag/pattern-matching/)
3434
* [Cypher Templates](/reference/graphrag/cypher-templates/)
35-
* [Graph-Enhanced Vector Search](reference/graphrag/graph-enhanced-vector-search/)
36-
* [Metadata Filtering](reference/graphrag/metadata-filtering/)
37-
* [Parent-Child Retriever](reference/graphrag/parent-child-retriever/)
35+
* [Graph-Enhanced Vector Search](/reference/graphrag/graph-enhanced-vector-search/)
36+
* [Metadata Filtering](/reference/graphrag/metadata-filtering/)
37+
* [Parent-Child Retriever](/reference/graphrag/parent-child-retriever/)
3838

3939
### Advanced GraphRAG patterns
4040

4141
* [Dynamic Cypher Generation](/reference/graphrag/dynamic-cypher-generation/)
4242
* [Global Community Summary Retriever](/reference/graphrag/global-community-summary-retriever/)
43-
* [Local Retriever](reference/graphrag/local-retriever/)
44-
* [Hypothetical Question Retriever](reference/graphrag/hypothetical-question-retriever/)
43+
* [Local Retriever](/reference/graphrag/local-retriever/)
44+
* [Hypothetical Question Retriever](/reference/graphrag/hypothetical-question-retriever/)
4545

4646

4747
### Knowledge Graph Models

src/content/docs/reference/graphrag/basic-retriever.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,8 @@ tags: ["Basic"]
1414

1515
## Required Graph Shape
1616

17-
[Lexical Graph](/reference/knowledge-graph/lexical-graph)
18-
1917
![](../../../../assets/images/knowledge-graph-lexical-graph.svg)
18+
[Lexical Graph](/reference/knowledge-graph/lexical-graph/)
2019

2120
## Context
2221

src/content/docs/reference/graphrag/cypher-templates.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ tags: ["Intermediate"]
77
## Required Graph Shape
88

99
![Domain Graph](../../../../assets/images/domain-graph.svg)
10-
[Domain Graph](/reference/knowledge-graph/domain-graph)
10+
[Domain Graph](/reference/knowledge-graph/domain-graph/)
1111

1212
## Context
1313

src/content/docs/reference/graphrag/dynamic-cypher-generation.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ tags: ["Intermediate"]
77
## Required Graph Shape
88

99
![Domain Graph](../../../../assets/images/domain-graph.svg)
10-
[Domain Graph](/reference/knowledge-graph/domain-graph)
10+
[Domain Graph](/reference/knowledge-graph/domain-graph/)
1111

1212
## Context
1313

@@ -33,7 +33,7 @@ Multiple templates can also be used in a chain or loop, which then leads to an a
3333

3434
## Usage
3535

36-
This pattern is an evolution of [Cypher Templates](/reference/graphrag/cypher-templates).
36+
This pattern is an evolution of [Cypher Templates](/reference/graphrag/cypher-templates/).
3737
It is much more flexible allowing for more diverse user questions to be answered.
3838
Still, the range of questions is limited by the provided snippets.
3939

src/content/docs/reference/graphrag/global-community-summary-retriever.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ tags: ["Advanced"]
1313
## Required Graph Shape
1414

1515
![](../../../../assets/images/knowledge-graph-lexical-graph-extracted-entities-community-summaries.svg)
16-
[Lexical Graph with Extracted Entities and Community Summaries](/reference/knowledge-graph/lexical-graph-extracted-entities-community-summaries)
16+
[Lexical Graph with Extracted Entities and Community Summaries](/reference/knowledge-graph/lexical-graph-extracted-entities-community-summaries/)
1717

1818
## Context
1919

@@ -51,7 +51,7 @@ RETURN c.full_content AS output
5151

5252
There are several variations in which you could use the Lexical Graph with extracted entities, communities, and community summaries:
5353

54-
* A [Local Retriever](../graphrag/local-retriever) could start by executing a vector search on the entity embeddings and traversing to related entities, chunks, or communities (e.g., see Integrating Microsoft GraphRAG into Neo4j).
54+
* A [Local Retriever](/reference/graphrag/local-retriever/) could start by executing a vector search on the entity embeddings and traversing to related entities, chunks, or communities (e.g., see Integrating Microsoft GraphRAG into Neo4j).
5555

5656
* Depending on the question, we could also execute a vector similarity search on embeddings of the Community Summaries first to identify which subgraph is relevant for the question, then traverse from the communities to its entities and chunks to retrieve additional information.
5757

src/content/docs/reference/graphrag/graph-enhanced-vector-search.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ tags: ["Advanced"]
1212
## Required Graph Shape
1313

1414
![](../../../../assets/images/knowledge-graph-lexical-graph-extracted-entities.svg)
15-
[Lexical Graph with Extracted Entities](/reference/knowledge-graph/lexical-graph-extracted-entities)
15+
[Lexical Graph with Extracted Entities](/reference/knowledge-graph/lexical-graph-extracted-entities/)
1616

1717
## Context
1818

@@ -29,7 +29,7 @@ A traversal starting at the found chunks is executed to retrieve more context.
2929

3030
## Usage
3131

32-
This pattern is useful for retrieving more enriched context than the results of executing only a vector search as in e.g. [Basic Retrievers](/reference/graphrag/basic-retriever) or [Parent-Child Retrievers](/reference/graphrag/parent-child-retriever).
32+
This pattern is useful for retrieving more enriched context than the results of executing only a vector search as in e.g. [Basic Retrievers](/reference/graphrag/basic-retriever/) or [Parent-Child Retrievers](/reference/graphrag/parent-child-retriever/).
3333
The additional traversal retrieves the interaction of entities within the provided data which reveals much richer information than the retrieval of specific text chunks.
3434
Naturally, the preprocessing for this GraphRAG pattern is effort.
3535
Furthermore, the amount of context that is returned by the Graph Traversal can be much larger context which the LLM needs be able to process.
@@ -69,4 +69,4 @@ There are some variations of this retriever:
6969

7070
## Example Implementations
7171

72-
- [Neo4j's Knowledge Graph Builder](https://github.com/neo4j-labs/llm-graph-builder)
72+
- [Neo4j's Knowledge Graph Builder](https://github.com/neo4j-labs/llm-graph-builder/)

src/content/docs/reference/graphrag/hypothetical-question-retriever.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ tags: ["Basic"]
66

77
## Required Graph Shape
88

9-
[Lexical Graph with Hypothetical Questions](/reference/knowledge-graph/lexical-graph-hypothetical-questions)
109
![Lexical Graph with Hypothetical Questions](../../../../assets/images/knowledge-graph-lexical-graph-hypothetical-questions.svg)
10+
[Lexical Graph with Hypothetical Questions](/reference/knowledge-graph/lexical-graph-hypothetical-questions/)
1111

1212
## Context
1313

@@ -21,7 +21,7 @@ A vector similarity search is executed on the previously generated questions. `k
2121

2222
## Usage
2323

24-
This pattern can yield better results in the vector similarity search than a question-to-chunk similarity search as used in e.g. [Basic Retrievers](/reference/graphrag/basic-retriever) or [Parent-Child Retrievers](/reference/graphrag/parent-child-retriever).
24+
This pattern can yield better results in the vector similarity search than a question-to-chunk similarity search as used in e.g. [Basic Retrievers](/reference/graphrag/basic-retriever/) or [Parent-Child Retrievers](/reference/graphrag/parent-child-retriever/).
2525
However, it also requires more pre-processing effort and cost in LLM calls for the question generation.
2626

2727
## Required pre-processing

src/content/docs/reference/graphrag/parent-child-retriever.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ tags: ["Basic"]
1111
## Required Graph Shape
1212

1313
![Parent-Child Lexical Graph](../../../../assets/images/knowledge-graph-lexical-graph-parent-child.svg)
14-
[Parent-Child Lexical Graph](/reference/knowledge-graph/lexical-graph-parent-child)
14+
[Parent-Child Lexical Graph](/reference/knowledge-graph/lexical-graph-parent-child/)
1515

1616
## Context
1717

@@ -29,7 +29,7 @@ Optionally chunks for the same parent are aggregated and their scores are averag
2929

3030
## Usage
3131

32-
This pattern is a useful evolution of the [Basic Retriever](/reference/graphrag/basic-retriever).
32+
This pattern is a useful evolution of the [Basic Retriever](/reference/graphrag/basic-retriever/).
3333
It is especially useful when several topics are covered in a chunk which subsequently influence the embedding negatively while smaller chunks will have more meaningful vector representations which can then lead to better similarity search results.
3434
With limited additional effort, better results can be obtained.
3535

@@ -62,7 +62,7 @@ RETURN parent.title + reduce(r="", c in chunks | r + "\n\n" + c.text) AS text,
6262

6363
## Similar Patterns
6464

65-
Similar patterns can be implemented on [Lexical Graphs With a Sibling Structure](../knowledge-graph/lexical-graph-sibling-structure) or [Lexical Graphs With a Hierarchical Structure](../knowledge-graph/lexical-graph-hierarchical-structure), where the additional context does not come from retrieving just the parent document but sibling documents or a previously set depth of structures.
65+
Similar patterns can be implemented on [Lexical Graphs With a Sibling Structure](/reference/knowledge-graph/lexical-graph-sibling-structure/) or [Lexical Graphs With a Hierarchical Structure](/reference/knowledge-graph/lexical-graph-hierarchical-structure/), where the additional context does not come from retrieving just the parent document but sibling documents or a previously set depth of structures.
6666
The Lexical Graph With Sibling Structure is, for example, currently implemented in [Neo4j’s LLM Knowledge Graph Builder](https://neo4j.com/labs/genai-ecosystem/llm-graph-builder/).
6767

6868
Note that there are two kinds of retrievers possible on a Lexical Graph With a Hierarchical Structure:

src/content/docs/reference/graphrag/text2cypher.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@ tags: ["Intermediate"]
77
## Required Graph Shape
88

99
![Domain Graph](../../../../assets/images/domain-graph.svg)
10-
[Domain Graph](/reference/knowledge-graph/domain-graph)
10+
[Domain Graph](/reference/knowledge-graph/domain-graph/)
1111

1212
## Context
1313

14-
The two related GraphRAG patterns [Cypher Templates](/reference/graphrag/cypher-templates) and [Dynamic Cypher Generation](/reference/graphrag/dynamic-cypher-generation) are both limited by the queries / query snippets that are defined during implementation.
14+
The two related GraphRAG patterns [Cypher Templates](/reference/graphrag/cypher-templates/) and [Dynamic Cypher Generation](/reference/graphrag/dynamic-cypher-generation/) are both limited by the queries / query snippets that are defined during implementation.
1515

1616
## Description
1717

@@ -35,7 +35,7 @@ The schema can be optionally enhanced by actual data value samples, distribution
3535

3636
## Further Considerations
3737

38-
If we compare [Cypher Templates](/reference/graphrag/cypher-templates), [Dynamic Cypher Generation](/reference/graphrag/dynamic-cypher-generation), and Text2Cypher, we could use the following analogy (illustrated in the images below)
38+
If we compare [Cypher Templates](/reference/graphrag/cypher-templates/), [Dynamic Cypher Generation](/reference/graphrag/dynamic-cypher-generation/), and Text2Cypher, we could use the following analogy (illustrated in the images below)
3939

4040
![](https://dist.neo4j.com/wp-content/uploads/20240917100605/1mLD1YAwWzz14neLgHwi-Kg.png)
4141

src/content/docs/reference/knowledge-graph/lexical-graph-extracted-entities-community-summaries.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,4 +43,4 @@ Additionally to extracting entities and their relationships, we need to form hie
4343

4444
## GraphRAG Pattern
4545

46-
A Lexical Graph with Extracted Entities and Community Summaries is used in [Global Community Summary Retrievers](/reference/graphrag/global-community-summary-retriever) and [Local Retrievers](/reference/graphrag/local-retriever).
46+
A Lexical Graph with Extracted Entities and Community Summaries is used in [Global Community Summary Retrievers](/reference/graphrag/global-community-summary-retriever/) and [Local Retrievers](/reference/graphrag/local-retriever/).

0 commit comments

Comments
 (0)