From 50d61b5954a41e0fb0898c44a74d439d7c6867cb Mon Sep 17 00:00:00 2001 From: angrykoala Date: Wed, 9 Oct 2024 11:16:26 +0200 Subject: [PATCH] Update vector index docs (cherry picked from commit 347fc878e934c8751e37dc6e59eafadfa5e5f746) --- modules/ROOT/pages/directives/index.adoc | 4 +-- .../directives/indexes-and-constraints.adoc | 33 ++++++++----------- 2 files changed, 16 insertions(+), 21 deletions(-) diff --git a/modules/ROOT/pages/directives/index.adoc b/modules/ROOT/pages/directives/index.adoc index 598e9518..0bad8f45 100644 --- a/modules/ROOT/pages/directives/index.adoc +++ b/modules/ROOT/pages/directives/index.adoc @@ -112,7 +112,7 @@ Particularly useful for types that are not correctly pluralized or are non-Engli | Indicates that there should be a uniqueness constraint in the database for the fields that it is applied to. | xref::/directives/indexes-and-constraints.adoc#_vector_index_search[`@vector`] -| Perform a vector index search on your database either based by passing in a vector index or a search phrase. label:beta[] +| Perform a vector index search on your database either based by passing in a vector index or a search phrase. |=== @@ -149,4 +149,4 @@ of any required fields that is passed as arguments to the custom resolver. | xref:/integrations/relay-compatibility.adoc[`@relayId`] | Specifies that the field should be used as the global node identifier for Relay. -|=== \ No newline at end of file +|=== diff --git a/modules/ROOT/pages/directives/indexes-and-constraints.adoc b/modules/ROOT/pages/directives/indexes-and-constraints.adoc index 77810f8f..d750a1b7 100644 --- a/modules/ROOT/pages/directives/indexes-and-constraints.adoc +++ b/modules/ROOT/pages/directives/indexes-and-constraints.adoc @@ -248,7 +248,6 @@ await neoSchema.assertIndexesAndConstraints(); :description: Directives related to generative AI in the Neo4j GraphQL Library. -[role=label--beta] == Vector index search 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 ---- query FindSimilarProducts($vector: [Float]!) { searchByDescription(vector: $vector) { - productsConnection { - edges { - cursor - score - node { - id - name - description - } + edges { + cursor + score + node { + id + name + description } } } @@ -415,15 +412,13 @@ This defines the query to be performed on all `Product` nodes which have a vecto ---- query SearchProductsByPhrase($phrase: String!) { searchByPhrase(phrase: $phrase) { - productsConnection { - edges { - cursor - score - node { - id - name - description - } + edges { + cursor + score + node { + id + name + description } } }