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
+22-20Lines changed: 22 additions & 20 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -306,26 +306,6 @@ input VectorIndexInput {
306
306
If the optional field `provider` is set, the type is used for a query by phrase, otherwise for a query by vector.
307
307
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].
308
308
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
-
329
309
330
310
=== Usage
331
311
@@ -394,6 +374,28 @@ Perform a query which utilizes the link:https://neo4j.com/docs/cypher-manual/cur
394
374
Requires credentials for the plugin.
395
375
====
396
376
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.
0 commit comments