From e73b6d9790a7bdafabe1ad345474c3fd427d75f7 Mon Sep 17 00:00:00 2001 From: kosabogi Date: Thu, 13 Mar 2025 12:38:31 +0100 Subject: [PATCH 1/4] Harmonize ELSER model ID --- 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 280c7cdcd..ba244e9d2 100644 --- a/docs/en/stack/ml/nlp/ml-nlp-elser.asciidoc +++ b/docs/en/stack/ml/nlp/ml-nlp-elser.asciidoc @@ -120,7 +120,7 @@ The easiest and recommended way to download and deploy ELSER is to use the {ref} -- [source,console] ---------------------------------- -PUT _inference/sparse_embedding/my-elser-model +PUT _inference/sparse_embedding/.elser_model_2 { "service": "elser", "service_settings": { From c965836bccf0deaaf40e573c1110fba2d96441df Mon Sep 17 00:00:00 2001 From: kosabogi Date: Fri, 14 Mar 2025 08:49:56 +0100 Subject: [PATCH 2/4] Fix PUT API call --- docs/en/stack/ml/nlp/ml-nlp-elser.asciidoc | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/docs/en/stack/ml/nlp/ml-nlp-elser.asciidoc b/docs/en/stack/ml/nlp/ml-nlp-elser.asciidoc index ba244e9d2..2aab25dd9 100644 --- a/docs/en/stack/ml/nlp/ml-nlp-elser.asciidoc +++ b/docs/en/stack/ml/nlp/ml-nlp-elser.asciidoc @@ -120,17 +120,18 @@ The easiest and recommended way to download and deploy ELSER is to use the {ref} -- [source,console] ---------------------------------- -PUT _inference/sparse_embedding/.elser_model_2 +PUT _inference/sparse_embedding/my-elser-model { - "service": "elser", - "service_settings": { - "adaptive_allocations": { - "enabled": true, - "min_number_of_allocations": 1, - "max_number_of_allocations": 10 - }, - "num_threads": 1 - } + "service": "elasticsearch", + "service_settings": { + "model_id": ".elser_model_2_linux-x86_64", + "num_threads": 1, + "adaptive_allocations": { + "enabled": true, + "min_number_of_allocations": 1, + "max_number_of_allocations": 10 + } + } } ---------------------------------- -- From 08383e5623427f7e685d54a9e1d371da2724151a Mon Sep 17 00:00:00 2001 From: kosabogi Date: Mon, 17 Mar 2025 12:39:21 +0100 Subject: [PATCH 3/4] Fixing model_id --- 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 2aab25dd9..f9c0762b7 100644 --- a/docs/en/stack/ml/nlp/ml-nlp-elser.asciidoc +++ b/docs/en/stack/ml/nlp/ml-nlp-elser.asciidoc @@ -124,7 +124,7 @@ PUT _inference/sparse_embedding/my-elser-model { "service": "elasticsearch", "service_settings": { - "model_id": ".elser_model_2_linux-x86_64", + "model_id": ".elser_model_2", "num_threads": 1, "adaptive_allocations": { "enabled": true, From d5f136032f4e79aa263003ce15f887b380f7dead Mon Sep 17 00:00:00 2001 From: kosabogi Date: Mon, 17 Mar 2025 13:46:58 +0100 Subject: [PATCH 4/4] my-elser-endpoint --- 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 f9c0762b7..f83e5440e 100644 --- a/docs/en/stack/ml/nlp/ml-nlp-elser.asciidoc +++ b/docs/en/stack/ml/nlp/ml-nlp-elser.asciidoc @@ -120,7 +120,7 @@ The easiest and recommended way to download and deploy ELSER is to use the {ref} -- [source,console] ---------------------------------- -PUT _inference/sparse_embedding/my-elser-model +PUT _inference/sparse_embedding/my-elser-endpoint { "service": "elasticsearch", "service_settings": {