as a list of tuples, each containing a Document object and
its similarity score.
Parameters
embedding (List[float]) – The embedding vector to compare against.
k (int, optional) – The number of top similar documents to retrieve.
Returns
A list of tuples, each containinga Document object and its similarity score.
Return type
List[Tuple[Document, float]]
verify_version() → None[source]¶
Check if the connected Neo4j database version supports vector indexing.
Queries the Neo4j database to retrieve its version and compares it
against a target version (5.11.0) that is known to support vector
indexing. Raises a ValueError if the connected Neo4j version is
not supported.
Examples using Neo4jVector¶
Neo4j
Neo4j Vector Index