Skip to content

Commit db9447f

Browse files
committed
feat: use OPEN_AI instead of OpenAI for the provider enum
1 parent 47213aa commit db9447f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -379,7 +379,7 @@ Requires credentials for the plugin.
379379
type Product @vector(indexes: [{
380380
indexName: "productDescriptionIndex",
381381
embeddingProperty: "descriptionVector",
382-
provider: OpenAI, # Assuming this is configured in the server
382+
provider: OPEN_AI, # Assuming this is configured in the server
383383
queryName: "searchByPhrase"
384384
}]) {
385385
id: ID!
@@ -411,4 +411,4 @@ query SearchProductsByPhrase($phrase: String!) {
411411
----
412412

413413
First, the query passes the query phrase argument `$phrase` to the GenAI plugin and lets it generate a vector embedding for the phrase.
414-
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.
414+
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)