You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Assumption: Neo4j running with populated vector index in place.
90
+
91
+
Limitation: The query over the vector index is an _approximate_ nearest neighbor search and may not give exact results. [See this reference for more details](https://neo4j.com/docs/cypher-manual/current/indexes/semantic-indexes/vector-indexes/#_limitiations_and_known_issues).
92
+
93
+
While the library has more retrievers than shown here, the following examples should be able to get you started.
94
+
95
+
In the following example, we use a simple vector search as retriever,
96
+
that will perform a similarity search over the `index-name` vector index
97
+
in Neo4j.
98
+
99
+
```python
100
+
from neo4j import GraphDatabase
101
+
from neo4j_genai.retrievers import VectorRetriever
102
+
from neo4j_genai.llm import OpenAILLM
103
+
from neo4j_genai.generation import GraphRAG
104
+
from neo4j_genai.embeddings.openai import OpenAIEmbeddings
Assumed Neo4j is running with populated vector index in place.
164
+
165
+
***********
166
+
Limitations
167
+
***********
168
+
169
+
The query over the vector index is an *approximate* nearest neighbor search and may not give exact results. `See this reference for more details <https://neo4j.com/docs/cypher-manual/current/indexes/semantic-indexes/vector-indexes/#_limitiations_and_known_issues>`_.
0 commit comments