Skip to content

Commit

Permalink
[DOCS] Changes Cohere inference examples in tutorial and API docs (el…
Browse files Browse the repository at this point in the history
  • Loading branch information
szabosteve committed Mar 20, 2024
1 parent e293655 commit 33305a2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
5 changes: 2 additions & 3 deletions docs/reference/inference/put-inference.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ the same name and the updated API key.
(Optional, string)
Specifies the types of embeddings you want to get back. Defaults to `float`.
Valid values are:
* `byte`: use it for signed int8 embeddings (this is a synonym of `int8`).
* `float`: use it for the default float embeddings.
* `int8`: use it for signed int8 embeddings.
Expand Down Expand Up @@ -256,9 +257,7 @@ PUT _inference/text_embedding/cohere-embeddings
"service_settings": {
"api_key": "<api_key>",
"model": "embed-english-light-v3.0",
"embedding_type": "int8"
},
"task_settings": {
"embedding_type": "byte"
}
}
------------------------------------------------------------
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,7 @@ PUT _inference/text_embedding/cohere_embeddings <1>
"service_settings": {
"api_key": "<api_key>", <2>
"model_id": "embed-english-v3.0", <3>
"embedding_type": "int8"
},
"task_settings": {
"embedding_type": "byte"
}
}
------------------------------------------------------------
Expand Down

0 comments on commit 33305a2

Please sign in to comment.