Skip to content

Commit 5a18e8b

Browse files
rsill-neo4jmjfwebb
andauthored
Apply suggestions from code review
Co-authored-by: Michael Webb <[email protected]>
1 parent f734cd8 commit 5a18e8b

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

modules/ROOT/pages/directives/indexes-and-constraints.adoc

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ This embedding is then compared to the node vector embeddings in the database.
269269
====
270270
* The database must be Neo4j version 5.15 or higher.
271271
* 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.
273273
* Queries by vector index cannot be performed across multiple labels.
274274
* Queries by phrase require credentials for the Neo4j GenAI plugin.
275275
====
@@ -311,7 +311,7 @@ Allowed values for the `provider` field are defined by the available link:https:
311311

312312
==== Query by vector index
313313

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.
315315

316316
.Type definition
317317
[source, graphql]
@@ -327,7 +327,7 @@ type Product @vector(indexes: [{
327327
}
328328
----
329329

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.
331331

332332
.Example query
333333
[source, graphql]
@@ -363,11 +363,11 @@ The input `$vector` is a list of `FLOAT` values and should look similar to this:
363363
}
364364
----
365365

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`.
367367

368368
==== Query by phrase
369369

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.
371371

372372
[NOTE]
373373
====
@@ -389,7 +389,7 @@ type Product @vector(indexes: [{
389389
}
390390
----
391391

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.
393393

394394
.Example query
395395
[source, graphql]
@@ -412,4 +412,4 @@ query SearchProductsByPhrase($phrase: String!) {
412412
----
413413

414414
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

Comments
 (0)