Skip to content

Commit 9d93616

Browse files
committed
[DOCS] Resloves conflict.
1 parent 40d155a commit 9d93616

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

docs/reference/inference/put-inference.asciidoc

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,12 @@ creating the {infer} model, you cannot change the associated API key. If you
162162
want to use a different API key, delete the {infer} model and recreate it with
163163
the same name and the updated API key.
164164
165+
`dimensions`:::
166+
(Optional, integer)
167+
The number of dimensions the resulting output embeddings should have.
168+
Only supported in `text-embedding-3` and later models.
169+
If not set the OpenAI defined default for the model is used.
170+
165171
`model_id`:::
166172
(Required, string)
167173
The name of the model to use for the {infer} task. Refer to the
@@ -399,8 +405,8 @@ been
399405
[[inference-example-openai]]
400406
===== OpenAI service
401407

402-
The following example shows how to create an {infer} endpoint called
403-
`openai_embeddings` to perform a `text_embedding` task type.
408+
The following example shows how to create an {infer} endpoint called `openai-embeddings` to perform a `text_embedding` task type.
409+
The embeddings created by requests to this endpoint will have 128 dimensions.
404410

405411
[source,console]
406412
------------------------------------------------------------
@@ -409,7 +415,8 @@ PUT _inference/text_embedding/openai_embeddings
409415
"service": "openai",
410416
"service_settings": {
411417
"api_key": "<api_key>",
412-
"model_id": "text-embedding-ada-002"
418+
"model_id": "text-embedding-3-small",
419+
"dimensions": 128
413420
}
414421
}
415422
------------------------------------------------------------

0 commit comments

Comments
 (0)