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
Copy file name to clipboardExpand all lines: modules/ROOT/pages/directives/indexes-and-constraints.adoc
+7-7Lines changed: 7 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -269,7 +269,7 @@ This embedding is then compared to the node vector embeddings in the database.
269
269
====
270
270
* The database must be Neo4j version 5.15 or higher.
271
271
* The node vector embeddings already exist in the database. See link:https://neo4j.com/docs/cypher-manual/current/indexes/semantic-indexes/vector-indexes/[Vector indexes] to learn more about vector indexes in Cypher and Neo4j.
272
-
* The embeddings must have been created using the same method.
272
+
* The embeddings must have been created using the same method, that is, the same provider and model.
273
273
* Queries by vector index cannot be performed across multiple labels.
274
274
* Queries by phrase require credentials for the Neo4j GenAI plugin.
275
275
====
@@ -311,7 +311,7 @@ Allowed values for the `provider` field are defined by the available link:https:
311
311
312
312
==== Query by vector index
313
313
314
-
Perform a nearest neighbor search by passing a vector index to find nodes with a vector embedding similar to that index.
314
+
Perform a nearest neighbor search by passing a vector to find nodes with a vector embedding similar to that vector.
315
315
316
316
.Type definition
317
317
[source, graphql]
@@ -327,7 +327,7 @@ type Product @vector(indexes: [{
327
327
}
328
328
----
329
329
330
-
This defines the query to be performed on all `Product` nodes which have a vector index named `productDescriptionIndex` for the property `descriptionVector`, implying that a vector index has been created for the `description` property of each node.
330
+
This defines the query to be performed on all `Product` nodes which have a vector index named `productDescriptionIndex` for the property `descriptionVector`, implying that a vector embedding has been created for the `description` property of each node.
331
331
332
332
.Example query
333
333
[source, graphql]
@@ -363,11 +363,11 @@ The input `$vector` is a list of `FLOAT` values and should look similar to this:
363
363
}
364
364
----
365
365
366
-
The query returns all `Product` nodes with a vector embedding on their `descriptionVector` property which is similar to the vector index argument `$vector`.
366
+
The query returns all `Product` nodes with a vector embedding on their `descriptionVector` property which is similar to the query argument `$vector`.
367
367
368
368
==== Query by phrase
369
369
370
-
Perform a query which utilizes the link:https://neo4j.com/docs/cypher-manual/current/genai-integrations/[Neo4j GenAI plugin] to create a vector embedding for a search phrase and then compares it to existing vector embeddings on nodes in the database.
370
+
Perform a query which utilizes the link:https://neo4j.com/docs/cypher-manual/current/genai-integrations/[Neo4j GenAI plugin] to create a vector embedding for a search phrase and then compare it to existing vector embeddings on nodes in the database.
371
371
372
372
[NOTE]
373
373
====
@@ -389,7 +389,7 @@ type Product @vector(indexes: [{
389
389
}
390
390
----
391
391
392
-
This defines the query to be performed on all `Product` nodes which have a vector index named `productDescriptionIndex` for the property `descriptionVector`, implying that a vector index has been created for the `description` property of each node.
392
+
This defines the query to be performed on all `Product` nodes which have a vector index named `productDescriptionIndex` for the property `descriptionVector`, implying that a vector embedding has been created for the `description` property of each node.
First, the query passes the query phrase argument `$phrase` to the GenAI plugin and lets it generate a vector embedding for the phrase.
415
-
Then it returns all `Product` nodes with a vector embedding on their `descriptionVector` property which is similar to the vector embedding generated by the plugin.
415
+
Then it returns all `Product` nodes with a vector embedding on their `descriptionVector` property which are similar to the vector embedding generated by the plugin.
0 commit comments