- Goal: Add relationships to improve the context around each chunk.
- We can create linked list of all chunks belonging to a section.
- Another relationship: Connecting the form to the first chunk of each section.
- This will enable to easily navigate from the form to the beginning of a particular section.
- Neo4j Vector Index:
Neo4jVector
- Neo4j x LangChain: Deep Dive Into the New Vector Index Implementation
- The
retrieval_query
parameter allows you to collect, transform, or calculate any additional graph information you want to return from the similarity search.
- The
- Neo4j’s Vector Search: Unlocking Deeper Insights for AI-Powered Applications
- Fast approximate k-nearest neighbor (KNN)
- Hierarchical Navigable Small World (HNSW)
- Jupyter Notebook
- Observation:
- Default retrieval is from a single chunk. For window query, context is expanded with adjacent chunks.
- This is reflected in the answer to the query on Netapp's ransomware protection. Window query expands the context by mentioning NetApp's ONTAP data management software.