|
@@ -106,9 +106,9 @@ public class ElasticInferenceService extends SenderService {
|
|
|
static final String DEFAULT_CHAT_COMPLETION_MODEL_ID_V1 = "rainbow-sprinkles";
|
|
|
static final String DEFAULT_CHAT_COMPLETION_ENDPOINT_ID_V1 = defaultEndpointId(DEFAULT_CHAT_COMPLETION_MODEL_ID_V1);
|
|
|
|
|
|
- // elser-v2
|
|
|
- static final String DEFAULT_ELSER_MODEL_ID_V2 = "elser-v2";
|
|
|
- static final String DEFAULT_ELSER_ENDPOINT_ID_V2 = defaultEndpointId(DEFAULT_ELSER_MODEL_ID_V2);
|
|
|
+ // elser-2
|
|
|
+ static final String DEFAULT_ELSER_2_MODEL_ID = "elser_model_2";
|
|
|
+ static final String DEFAULT_ELSER_ENDPOINT_ID_V2 = defaultEndpointId("elser-2");
|
|
|
|
|
|
// multilingual-text-embed
|
|
|
static final String DEFAULT_MULTILINGUAL_EMBED_MODEL_ID = "multilingual-embed-v1";
|
|
@@ -174,13 +174,13 @@ public class ElasticInferenceService extends SenderService {
|
|
|
),
|
|
|
MinimalServiceSettings.chatCompletion(NAME)
|
|
|
),
|
|
|
- DEFAULT_ELSER_MODEL_ID_V2,
|
|
|
+ DEFAULT_ELSER_2_MODEL_ID,
|
|
|
new DefaultModelConfig(
|
|
|
new ElasticInferenceServiceSparseEmbeddingsModel(
|
|
|
DEFAULT_ELSER_ENDPOINT_ID_V2,
|
|
|
TaskType.SPARSE_EMBEDDING,
|
|
|
NAME,
|
|
|
- new ElasticInferenceServiceSparseEmbeddingsServiceSettings(DEFAULT_ELSER_MODEL_ID_V2, null, null),
|
|
|
+ new ElasticInferenceServiceSparseEmbeddingsServiceSettings(DEFAULT_ELSER_2_MODEL_ID, null, null),
|
|
|
EmptyTaskSettings.INSTANCE,
|
|
|
EmptySecretSettings.INSTANCE,
|
|
|
elasticInferenceServiceComponents,
|
|
@@ -213,7 +213,6 @@ public class ElasticInferenceService extends SenderService {
|
|
|
DenseVectorFieldMapper.ElementType.FLOAT
|
|
|
)
|
|
|
),
|
|
|
-
|
|
|
DEFAULT_RERANK_MODEL_ID_V1,
|
|
|
new DefaultModelConfig(
|
|
|
new ElasticInferenceServiceRerankModel(
|