Skip to content

Commit 53b779f

Browse files
committed
List reference articles automatically, won fight with mdx and astro
1 parent 9610187 commit 53b779f

File tree

1 file changed

+16
-21
lines changed

1 file changed

+16
-21
lines changed
Lines changed: 16 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
title: GraphRAG Patterns Catalog
33
description: List of GraphRAG retriever patterns and accompanying Knowledge Graph Models
44
---
5+
import { getCollection, getEntry } from 'astro:content';
6+
export const pages = await getCollection('docs');
57

68
## GraphRAG Patterns Catalog
79

@@ -12,30 +14,23 @@ Finding the perfect GraphRAG pattern for your application isn’t straightforwar
1214

1315
### GraphRAG Patterns
1416

15-
* [Basic Retriever](/reference/graphrag/basic-retriever/)
16-
* [Cypher Templates](/reference/graphrag/cypher-templates/)
17-
* [Dynamic Cypher Generation](/reference/graphrag/dynamic-cypher-generation/)
18-
* [Global Community Summary Retriever](/reference/graphrag/global-community-summary-retriever/)
19-
* [Graph-Enhanced Vector Search](reference/graphrag/graph-enhanced-vector-search/)
20-
* [Hypothetical Question Retriever](reference/graphrag/hypothetical-question-retriever/)
21-
* [Local Retriever](reference/graphrag/local-retriever/)
22-
* [Metadata Filtering](reference/graphrag/metadata-filtering/)
23-
* [Parent-Child Retriever](reference/graphrag/parent-child-retriever/)
24-
* [Pattern Matching](reference/graphrag/pattern-matching/)
25-
* [Text2Cypher](reference/graphrag/text2cypher/)
17+
<ul>
18+
{pages.filter(page => page.slug.indexOf("/graphrag/")!=-1).map(page => (
19+
<li key={page.slug}>
20+
<a href={"/"+page.slug}>{page.data.title}</a>
21+
</li>
22+
))}
23+
</ul>
2624

2725
### Knowledge Graph Models
2826

29-
* [Domain Graph](reference/knowledge-graph/domain-graph/)
30-
* [Lexical Graph](reference/knowledge-graph/lexical-graph/)
31-
* [Parent-Child Lexical Graph](reference/knowledge-graph/lexical-graph-parent-child/)
32-
* [Lexical Graph with Sibling Structure](reference/knowledge-graph/lexical-graph-sibling-structure/)
33-
* [Lexical Graph with Extracted Entities](reference/knowledge-graph/lexical-graph-extracted-entities/)
34-
* [Lexical Graph with Extracted Entities and Community Summaries](reference/knowledge-graph/lexical-graph-extracted-entities-community-summaries/)
35-
* [Lexical Graph with Hierarchical Structure](reference/knowledge-graph/lexical-graph-hierarchical-structure/)
36-
* [Lexical Graph with Hypothetical Questions](reference/knowledge-graph/lexical-graph-hypothetical-questions/)
37-
* [Memory Graph](reference/knowledge-graph/memory-graph/)
38-
* [Text Sequence](reference/knowledge-graph/text-seq/)
27+
<ul>
28+
{pages.filter(page => page.slug.indexOf("/knowledge-graph/")!=-1).map(page => (
29+
<li key={page.slug}>
30+
<a href={"/"+page.slug}>{page.data.title}</a>
31+
</li>
32+
))}
33+
</ul>
3934

4035
### Data Preparation
4136

0 commit comments

Comments
 (0)