Skip to content

Commit d43c25a

Browse files
committed
Update vector index docs
(cherry picked from commit 347fc87)
1 parent 6bbb654 commit d43c25a

File tree

2 files changed

+16
-21
lines changed

2 files changed

+16
-21
lines changed

modules/ROOT/pages/directives/index.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ Particularly useful for types that are not correctly pluralized or are non-Engli
112112
| Indicates that there should be a uniqueness constraint in the database for the fields that it is applied to.
113113

114114
| xref::/directives/indexes-and-constraints.adoc#_vector_index_search[`@vector`]
115-
| Perform a vector index search on your database either based by passing in a vector index or a search phrase. label:beta[]
115+
| Perform a vector index search on your database either based by passing in a vector index or a search phrase.
116116

117117
|===
118118

@@ -149,4 +149,4 @@ of any required fields that is passed as arguments to the custom resolver.
149149
| xref:/integrations/relay-compatibility.adoc[`@relayId`]
150150
| Specifies that the field should be used as the global node identifier for Relay.
151151

152-
|===
152+
|===

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

Lines changed: 14 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,6 @@ await neoSchema.assertIndexesAndConstraints();
248248

249249
:description: Directives related to generative AI in the Neo4j GraphQL Library.
250250

251-
[role=label--beta]
252251
== Vector index search
253252

254253
With the `@vector` GraphQL directive you can query your database to perform a vector index search.
@@ -331,15 +330,13 @@ This defines the query to be performed on all `Product` nodes which have a vecto
331330
----
332331
query FindSimilarProducts($vector: [Float]!) {
333332
searchByDescription(vector: $vector) {
334-
productsConnection {
335-
edges {
336-
cursor
337-
score
338-
node {
339-
id
340-
name
341-
description
342-
}
333+
edges {
334+
cursor
335+
score
336+
node {
337+
id
338+
name
339+
description
343340
}
344341
}
345342
}
@@ -415,15 +412,13 @@ This defines the query to be performed on all `Product` nodes which have a vecto
415412
----
416413
query SearchProductsByPhrase($phrase: String!) {
417414
searchByPhrase(phrase: $phrase) {
418-
productsConnection {
419-
edges {
420-
cursor
421-
score
422-
node {
423-
id
424-
name
425-
description
426-
}
415+
edges {
416+
cursor
417+
score
418+
node {
419+
id
420+
name
421+
description
427422
}
428423
}
429424
}

0 commit comments

Comments
 (0)