Skip to content

Commit d2b510d

Browse files
committed
moved the feature config block to the query by phrase section
1 parent cf266af commit d2b510d

File tree

1 file changed

+22
-20
lines changed

1 file changed

+22
-20
lines changed

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

Lines changed: 22 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -306,26 +306,6 @@ input VectorIndexInput {
306306
If the optional field `provider` is set, the type is used for a query by phrase, otherwise for a query by vector.
307307
Allowed values for the `provider` field are defined by the available link:https://neo4j.com/docs/cypher-manual/current/genai-integrations/#ai-providers[GenAI providers].
308308

309-
Additionally, add the following feature configuration when you are using queries by phrase and the GenAI plugin:
310-
311-
[source, graphql]
312-
----
313-
const neoSchema = new Neo4jGraphQL({
314-
typeDefs,
315-
driver,
316-
features: {
317-
vector: {
318-
OpenAI: {
319-
token: "my-open-ai-token",
320-
model: "text-embedding-3-small",
321-
},
322-
},
323-
},
324-
});
325-
----
326-
327-
Again, `OpenAI` is one of the GenAI providers for generating vector embeddings.
328-
329309

330310
=== Usage
331311

@@ -394,6 +374,28 @@ Perform a query which utilizes the link:https://neo4j.com/docs/cypher-manual/cur
394374
Requires credentials for the plugin.
395375
====
396376

377+
Add the following feature configuration to your instance of Neo4j GraphQL:
378+
379+
.Feature configuration
380+
[source, graphql]
381+
----
382+
const neoSchema = new Neo4jGraphQL({
383+
typeDefs,
384+
driver,
385+
features: {
386+
vector: {
387+
OpenAI: {
388+
token: "my-open-ai-token",
389+
model: "text-embedding-3-small",
390+
},
391+
},
392+
},
393+
});
394+
----
395+
396+
`OpenAI` is one of the GenAI providers for generating vector embeddings.
397+
See link:https://neo4j.com/docs/cypher-manual/current/genai-integrations/#ai-providers[GenAI providers] for the full list of providers and their respective identifiers.
398+
397399
.Type definition
398400
[source, graphql]
399401
----

0 commit comments

Comments
 (0)