Skip to content

Commit 34e24e0

Browse files
committed
restructure
1 parent 2d16d90 commit 34e24e0

File tree

7 files changed

+33
-42
lines changed

7 files changed

+33
-42
lines changed
File renamed without changes.
File renamed without changes.

Lab_5_Knowledge_Graph/README.md

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -28,18 +28,19 @@ Add semantic search capabilities to your graph:
2828
- Create a vector index in Neo4j
2929
- Perform similarity search to find relevant chunks
3030

31-
### 03_entity_extraction.ipynb - Entity Extraction
32-
Extract structured entities and relationships from text:
33-
- Learn the difference between lexical and semantic graphs
34-
- Define a schema with entity and relationship types
35-
- Use `SimpleKGPipeline` to extract entities from text
36-
- Query the combined graph (chunks + entities)
37-
38-
### 04_full_dataset.ipynb - Working with the Full Dataset
39-
Load the complete SEC 10-K dataset and explore richer results:
40-
- Load pre-built knowledge graph with multiple company filings
41-
- See improved search results with more data
42-
- Explore the expanded entity and relationship network
31+
### 03_vector_retriever.ipynb - Vector Retriever
32+
Learn the fundamentals of semantic search with vector retrieval:
33+
- Set up a VectorRetriever using Neo4j's vector index
34+
- Perform semantic similarity searches on your knowledge graph
35+
- Use GraphRAG to combine vector search with LLM-generated answers
36+
- Understand how vector search finds contextually similar content
37+
38+
### 04_vector_cypher_retriever.ipynb - Vector Cypher Retriever
39+
Combine vector search with custom Cypher queries for enhanced context:
40+
- Create custom Cypher retrieval queries to traverse graph relationships
41+
- Return additional context like companies and asset managers alongside text chunks
42+
- Discover shared risks among companies using graph traversal
43+
- Compare results with and without graph-enhanced context
4344

4445
## Getting Started
4546

File renamed without changes.
File renamed without changes.
File renamed without changes.

Lab_6_Retrievers/README.md

Lines changed: 20 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Lab 6 - GraphRAG Retrievers
22

3-
In this lab, you'll learn how to implement Graph Retrieval-Augmented Generation (GraphRAG) using different retriever strategies with the Neo4j GraphRAG Python package. You'll explore vector search, combine vector search with Cypher queries for richer context, and use natural language to generate Cypher queries automatically.
3+
In this lab, you'll learn how to use natural language to query your knowledge graph, extract structured entities from text, and work with a complete dataset. You'll use Text2Cypher to convert questions into Cypher queries, build richer graphs through entity extraction, and see the full power of GraphRAG with real-world data.
44

55
## Prerequisites
66

@@ -12,34 +12,33 @@ Before starting, make sure you have:
1212

1313
## Lab Overview
1414

15-
This lab consists of three notebooks that demonstrate different retrieval strategies:
15+
This lab consists of three notebooks:
1616

17-
### 01_vector_retriever.ipynb - Vector Retriever
18-
Learn the fundamentals of semantic search with vector retrieval:
19-
- Set up a VectorRetriever using Neo4j's vector index
20-
- Perform semantic similarity searches on your knowledge graph
21-
- Use GraphRAG to combine vector search with LLM-generated answers
22-
- Understand how vector search finds contextually similar content
23-
24-
### 02_vector_cypher_retriever.ipynb - Vector Cypher Retriever
25-
Combine vector search with custom Cypher queries for enhanced context:
26-
- Create custom Cypher retrieval queries to traverse graph relationships
27-
- Return additional context like companies and asset managers alongside text chunks
28-
- Discover shared risks among companies using graph traversal
29-
- Compare results with and without graph-enhanced context
30-
31-
### 03_text2cypher_retriever.ipynb - Text2Cypher Retriever
17+
### 01_text2cypher_retriever.ipynb - Text2Cypher Retriever
3218
Use natural language to query your graph directly:
3319
- Automatically convert natural language questions to Cypher queries
3420
- Query specific nodes, relationships, and properties without writing Cypher
3521
- Understand the graph schema and how it guides query generation
3622
- Build accessible natural language interfaces to your knowledge graph
3723

24+
### 02_entity_extraction.ipynb - Entity Extraction
25+
Extract structured entities and relationships from text:
26+
- Learn the difference between lexical and semantic graphs
27+
- Define a schema with entity and relationship types
28+
- Use `SimpleKGPipeline` to extract entities from text
29+
- Query the combined graph (chunks + entities)
30+
31+
### 03_full_dataset.ipynb - Working with the Full Dataset
32+
Load the complete SEC 10-K dataset and explore richer results:
33+
- Load pre-built knowledge graph with multiple company filings
34+
- See improved search results with more data
35+
- Explore the expanded entity and relationship network
36+
3837
## Getting Started
3938

40-
1. Open the first notebook: `01_vector_retriever.ipynb`
39+
1. Open the first notebook: `01_text2cypher_retriever.ipynb`
4140
2. Work through each notebook in order
42-
3. Each notebook introduces a different retrieval strategy
41+
3. Each notebook builds on the previous one
4342

4443
### Running Locally
4544

@@ -59,19 +58,10 @@ Menu items 5, 6, and 7 correspond to notebooks 1, 2, and 3 respectively.
5958

6059
## Key Concepts
6160

62-
- **Vector Retriever**: Uses semantic similarity to find relevant text chunks based on meaning, not just keywords
63-
- **Vector Cypher Retriever**: Combines vector search with Cypher graph traversal to return richer, relationship-aware context
6461
- **Text2Cypher Retriever**: Converts natural language questions into Cypher queries for precise, fact-based answers
62+
- **Entity Extraction**: Using LLMs to identify companies, products, services, and relationships from text
63+
- **Knowledge Graph**: Combined structure of documents, chunks, and extracted entities
6564
- **GraphRAG**: A pipeline that combines retrievers with LLMs to generate contextual answers grounded in your knowledge graph
66-
- **Retrieval Context**: The data returned by retrievers that grounds LLM responses in your actual data
67-
68-
## When to Use Each Retriever
69-
70-
| Retriever | Best For |
71-
|-----------|----------|
72-
| **Vector** | Semantic questions where meaning matters more than exact matches |
73-
| **Vector Cypher** | Questions requiring both semantic similarity and graph relationships |
74-
| **Text2Cypher** | Fact-based questions about specific entities, counts, or relationships |
7565

7666
## Next Steps
7767

0 commit comments

Comments
 (0)