From 855cac71bd792bde8a02d6a700b3e1ecc2f18385 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Istv=C3=A1n=20Zolt=C3=A1n=20Szab=C3=B3?= Date: Wed, 6 Mar 2024 18:35:40 +0100 Subject: [PATCH 1/2] [DOCS] Changes the cohere example to use a different model. --- .../search-your-data/semantic-search-inference.asciidoc | 6 +++--- .../tab-widgets/inference-api/infer-api-mapping.asciidoc | 2 +- .../tab-widgets/inference-api/infer-api-task.asciidoc | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/docs/reference/search/search-your-data/semantic-search-inference.asciidoc b/docs/reference/search/search-your-data/semantic-search-inference.asciidoc index b9bb36b21ea12..97a37e34eb116 100644 --- a/docs/reference/search/search-your-data/semantic-search-inference.asciidoc +++ b/docs/reference/search/search-your-data/semantic-search-inference.asciidoc @@ -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. diff --git a/docs/reference/tab-widgets/inference-api/infer-api-mapping.asciidoc b/docs/reference/tab-widgets/inference-api/infer-api-mapping.asciidoc index 4b70a1b84f45f..e43bbd036b44e 100644 --- a/docs/reference/tab-widgets/inference-api/infer-api-mapping.asciidoc +++ b/docs/reference/tab-widgets/inference-api/infer-api-mapping.asciidoc @@ -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> diff --git a/docs/reference/tab-widgets/inference-api/infer-api-task.asciidoc b/docs/reference/tab-widgets/inference-api/infer-api-task.asciidoc index 3395fea9cc053..be0319fcf1ec1 100644 --- a/docs/reference/tab-widgets/inference-api/infer-api-task.asciidoc +++ b/docs/reference/tab-widgets/inference-api/infer-api-task.asciidoc @@ -7,7 +7,7 @@ PUT _inference/text_embedding/cohere_embeddings <1> "service": "cohere", "service_settings": { "api_key": "", <2> - "model_id": "embed-english-light-v3.0", <3> + "model_id": "embed-english-v3.0", <3> "embedding_type": "int8" }, "task_settings": { From ea04c9b950d98ad67751375063cee25dad2cc2a7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Istv=C3=A1n=20Zolt=C3=A1n=20Szab=C3=B3?= Date: Wed, 6 Mar 2024 18:45:05 +0100 Subject: [PATCH 2/2] [DOCS] Changes search query text for cohere example. --- .../tab-widgets/inference-api/infer-api-search.asciidoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/reference/tab-widgets/inference-api/infer-api-search.asciidoc b/docs/reference/tab-widgets/inference-api/infer-api-search.asciidoc index 0c71ab7cecbce..1e8470471491f 100644 --- a/docs/reference/tab-widgets/inference-api/infer-api-search.asciidoc +++ b/docs/reference/tab-widgets/inference-api/infer-api-search.asciidoc @@ -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,