From 2de241d11507d2aff0ed005992aecf32147e9980 Mon Sep 17 00:00:00 2001 From: Liam Thompson <32779855+leemthompo@users.noreply.github.com> Date: Wed, 27 Nov 2024 10:49:08 +0100 Subject: [PATCH 1/3] Update "Download and deploy ELSER" snippet with adaptive allocations --- docs/en/stack/ml/nlp/ml-nlp-elser.asciidoc | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/docs/en/stack/ml/nlp/ml-nlp-elser.asciidoc b/docs/en/stack/ml/nlp/ml-nlp-elser.asciidoc index 2625c11f2..610f0756f 100644 --- a/docs/en/stack/ml/nlp/ml-nlp-elser.asciidoc +++ b/docs/en/stack/ml/nlp/ml-nlp-elser.asciidoc @@ -122,16 +122,20 @@ The easiest and recommended way to download and deploy ELSER is to use the {ref} ---------------------------------- PUT _inference/sparse_embedding/my-elser-model { - "service": "elasticsearch", + "service": "elser", "service_settings": { - "num_allocations": 1, - "num_threads": 1, - "model_id": ".elser_model_2_linux-x86_64" + "adaptive_allocations": { + "enabled": true, + "min_number_of_allocations": 3, + "max_number_of_allocations": 10 + }, + "num_threads": 1 } } ---------------------------------- -- The API request automatically initiates the model download and then deploy the model. +This example uses <> through adaptive allocation. Refer to the {ref}/infer-service-elser.html[ELSER {infer} service documentation] to learn more about the available settings. From 11626458096167a06ea97639fd90519170efd3c2 Mon Sep 17 00:00:00 2001 From: Liam Thompson <32779855+leemthompo@users.noreply.github.com> Date: Wed, 27 Nov 2024 10:54:20 +0100 Subject: [PATCH 2/3] Typos --- docs/en/stack/ml/nlp/ml-nlp-elser.asciidoc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/docs/en/stack/ml/nlp/ml-nlp-elser.asciidoc b/docs/en/stack/ml/nlp/ml-nlp-elser.asciidoc index 610f0756f..2fa461c14 100644 --- a/docs/en/stack/ml/nlp/ml-nlp-elser.asciidoc +++ b/docs/en/stack/ml/nlp/ml-nlp-elser.asciidoc @@ -122,14 +122,15 @@ The easiest and recommended way to download and deploy ELSER is to use the {ref} ---------------------------------- PUT _inference/sparse_embedding/my-elser-model { - "service": "elser", + "service": "elasticsearch", "service_settings": { "adaptive_allocations": { "enabled": true, "min_number_of_allocations": 3, "max_number_of_allocations": 10 }, - "num_threads": 1 + "num_threads": 1, + "model_id": ".elser_model_2_linux-x86_64" } } ---------------------------------- From 3ab0363c2e4acf70fa9e072dc42e6773131c5e6a Mon Sep 17 00:00:00 2001 From: Liam Thompson <32779855+leemthompo@users.noreply.github.com> Date: Wed, 27 Nov 2024 10:58:44 +0100 Subject: [PATCH 3/3] Update docs/en/stack/ml/nlp/ml-nlp-elser.asciidoc --- docs/en/stack/ml/nlp/ml-nlp-elser.asciidoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/en/stack/ml/nlp/ml-nlp-elser.asciidoc b/docs/en/stack/ml/nlp/ml-nlp-elser.asciidoc index 2fa461c14..241213c44 100644 --- a/docs/en/stack/ml/nlp/ml-nlp-elser.asciidoc +++ b/docs/en/stack/ml/nlp/ml-nlp-elser.asciidoc @@ -126,7 +126,7 @@ PUT _inference/sparse_embedding/my-elser-model "service_settings": { "adaptive_allocations": { "enabled": true, - "min_number_of_allocations": 3, + "min_number_of_allocations": 1, "max_number_of_allocations": 10 }, "num_threads": 1,