[ML] Use release ELSER version (#167888)

## Summary

Updates ELSER model IDs to the release version
This commit is contained in:
Dima Arnautov 2023-10-04 00:19:43 +02:00 committed by GitHub
parent 395f75eadc
commit 984d5e6daa
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 14 additions and 14 deletions

View file

@ -58,7 +58,7 @@ describe('modelsProvider', () => {
config: { input: { field_names: ['text_field'] } },
default: true,
description: 'Elastic Learned Sparse EncodeR v2 (Tech Preview)',
name: '.elser_model_2_SNAPSHOT',
name: '.elser_model_2',
version: 2,
},
{
@ -66,7 +66,7 @@ describe('modelsProvider', () => {
config: { input: { field_names: ['text_field'] } },
description:
'Elastic Learned Sparse EncodeR v2, optimized for linux-x86_64 (Tech Preview)',
name: '.elser_model_2_linux-x86_64_SNAPSHOT',
name: '.elser_model_2_linux-x86_64',
os: 'Linux',
recommended: true,
version: 2,
@ -110,7 +110,7 @@ describe('modelsProvider', () => {
config: { input: { field_names: ['text_field'] } },
recommended: true,
description: 'Elastic Learned Sparse EncodeR v2 (Tech Preview)',
name: '.elser_model_2_SNAPSHOT',
name: '.elser_model_2',
version: 2,
},
{
@ -118,7 +118,7 @@ describe('modelsProvider', () => {
config: { input: { field_names: ['text_field'] } },
description:
'Elastic Learned Sparse EncodeR v2, optimized for linux-x86_64 (Tech Preview)',
name: '.elser_model_2_linux-x86_64_SNAPSHOT',
name: '.elser_model_2_linux-x86_64',
os: 'Linux',
version: 2,
},
@ -129,7 +129,7 @@ describe('modelsProvider', () => {
describe('getELSER', () => {
test('provides a recommended definition by default', async () => {
const result = await modelService.getELSER();
expect(result.name).toEqual('.elser_model_2_linux-x86_64_SNAPSHOT');
expect(result.name).toEqual('.elser_model_2_linux-x86_64');
});
test('provides a default version if there is no recommended', async () => {
@ -155,7 +155,7 @@ describe('modelsProvider', () => {
});
const result = await modelService.getELSER();
expect(result.name).toEqual('.elser_model_2_SNAPSHOT');
expect(result.name).toEqual('.elser_model_2');
});
test('provides the requested version', async () => {
@ -165,7 +165,7 @@ describe('modelsProvider', () => {
test('provides the requested version of a recommended architecture', async () => {
const result = await modelService.getELSER({ version: 2 });
expect(result.name).toEqual('.elser_model_2_linux-x86_64_SNAPSHOT');
expect(result.name).toEqual('.elser_model_2_linux-x86_64');
});
});
});