Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[DOCS] Changes the cohere example to use a different model #106037

Merged
merged 2 commits into from
Mar 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@

The instructions in this tutorial shows you how to use the {infer} API with
various services to perform semantic search on your data. The following examples
use Cohere's `embed-english-light-v3.0` model and OpenAI's
`text-embedding-ada-002` second generation embedding model. You can use any
Cohere and OpenAI models, they are all supported by the {infer} API.
use Cohere's `embed-english-v3.0` model and OpenAI's `text-embedding-ada-002`
second generation embedding model. You can use any Cohere and OpenAI models,
they are all supported by the {infer} API.

Click the name of the service you want to use on any of the widgets below to
review the corresponding instructions.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ PUT cohere-embeddings
"properties": {
"content_embedding": { <1>
"type": "dense_vector", <2>
"dims": 384, <3>
"dims": 1024, <3>
"element_type": "float"
},
"content": { <4>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ GET cohere-embeddings/_search
"query_vector_builder": {
"text_embedding": {
"model_id": "cohere_embeddings",
"model_text": "Calculate fuel cost"
"model_text": "Muscles in human body"
}
},
"k": 10,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ PUT _inference/text_embedding/cohere_embeddings <1>
"service": "cohere",
"service_settings": {
"api_key": "<api_key>", <2>
"model_id": "embed-english-light-v3.0", <3>
"model_id": "embed-english-v3.0", <3>
"embedding_type": "int8"
},
"task_settings": {
Expand Down