Skip to content

Commit 228fe97

Browse files
committed
Updated basic retriever
1 parent b01e837 commit 228fe97

File tree

2 files changed

+26
-3
lines changed

2 files changed

+26
-3
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,4 +116,4 @@ In the above example, a vector similarity search is executed on the existing ind
116116

117117
* [Neo4j GraphAcademy: Build a Neo4j-backed Chatbot using Python](https://graphacademy.neo4j.com/courses/llm-chatbot-python/)
118118
* [Integrating Neo4j into the LangChain ecosystem](https://towardsdatascience.com/integrating-neo4j-into-the-langchain-ecosystem-df0e988344d2)
119-
* [Neo4j GraphAcademy: Mastering Retrieval-Augmented Generation (RAG)]https://graphacademy.neo4j.com/courses/genai-workshop-graphrag/
119+
* [Neo4j GraphAcademy: Mastering Retrieval-Augmented Generation (RAG)](https://graphacademy.neo4j.com/courses/genai-workshop-graphrag/)

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

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

77
## Alternative Names
88

9+
- Vector Retriever
910
- Naive Retriever
1011
- Baseline RAG
12+
- Basic RAG
1113
- Typical RAG
1214

1315
## Required Graph Shape
1416

1517
[Lexical Graph](/reference/knowledge-graph/lexical-graph)
1618

19+
![](../../../../assets/images/knowledge-graph-lexical-graph.svg)
20+
21+
## Context
22+
23+
It’s useful to chunk large documents into smaller pieces when creating embeddings.
24+
An embedding is a text’s semantic representation capturing the meaning of what the text is about.
25+
If the given text is long and contains too many diverse subjects, the informative value of its embedding deteriorates.
26+
1727
## Description
1828

19-
The user question is embedded using the same embedder that has been used before to create the chunk embeddings. A vector similarity search is executed on the chunk embeddings to retrieve k (number previously configured by developer / user) most similar chunks.
29+
The user question is embedded using the same embedder that has been used before to create the chunk embeddings.
30+
A vector similarity search is executed on the chunk embeddings to retrieve k (number previously configured by developer / user) most similar chunks.
2031

2132
## Usage
2233

23-
This pattern is useful if the user asks for specific information about a topic that exists in one or more (but not too many) chunks. The question should not require complex aggregations or knowledge about the whole dataset. Since the pattern only contains a vector similarity search it is easy to understand, implement and get started with.
34+
This pattern is useful if the user asks for specific information about a topic that exists in one or more (but not too many) chunks.
35+
The question should not require complex aggregations or knowledge about the whole dataset.
36+
Since the pattern only contains a vector similarity search it is easy to understand, implement and get started with.
37+
38+
## Required pre-processing
39+
40+
Split documents into chunks and use an embedding model to embed the text content of the chunks.
41+
See [chunking](/guides/chunking).
42+
43+
## Retrieval Query
44+
45+
No additional query is necessary since the Neo4j Vector retriever retrieves similar chunks by default.
2446

2547
## Further reading
2648

@@ -29,6 +51,7 @@ This pattern is useful if the user asks for specific information about a topic t
2951

3052
## Existing Implementations
3153

54+
- [Neo4j GraphRAG - Vector Retriever](https://neo4j.com/docs/neo4j-graphrag-python/current/user_guide_rag.html#vector-retriever)
3255
- [Langchain Retrievers: Vector store-backed retriever](https://python.langchain.com/v0.1/docs/modules/data_connection/retrievers/vectorstore/)
3356
- [Langchain: Neo4jVector](https://python.langchain.com/v0.2/docs/integrations/vectorstores/neo4jvector/)
3457

0 commit comments

Comments
 (0)