-
Notifications
You must be signed in to change notification settings - Fork 8.5k
Rename ELSER defaults #225852
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Rename ELSER defaults #225852
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
9c26bdf
Rename ELSER defaults
timgrein b03f197
Update tabular_page.test.tsx
timgrein 9d5dc25
Adjust tech preview logic
timgrein 2bf01b6
Merge branch 'rename-elser-defaults' of https://github.com/elastic/ki…
timgrein f2d827e
Update tabular_page.test.tsx
timgrein 78af665
Update tabular_page.test.tsx
timgrein 48c4da6
[CI] Auto-commit changed files from 'node scripts/eslint --no-cache -…
kibanamachine f2c1b81
Update tabular_page.test.tsx
timgrein eaea8cb
Merge branch 'main' into rename-elser-defaults
elasticmachine File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -89,19 +89,19 @@ const inferenceEndpoints = [ | |
| }, | ||
| }, | ||
| { | ||
| inference_id: '.elser-v2-elastic', | ||
| inference_id: '.elser-2-elastic', | ||
| task_type: 'sparse_embedding', | ||
| service: 'elastic', | ||
| service_settings: { | ||
| model_id: 'elser-v2', | ||
| model_id: 'elser_model_2', | ||
| }, | ||
| }, | ||
| { | ||
| inference_id: 'custom-inference-id', | ||
| task_type: 'sparse_embedding', | ||
| service: 'elastic', | ||
| service_settings: { | ||
| model_id: 'elser-v2', | ||
| model_id: 'elser_model_2', | ||
| }, | ||
| }, | ||
| ] as InferenceAPIConfigResponse[]; | ||
|
|
@@ -117,8 +117,8 @@ describe('When the tabular page is loaded', () => { | |
| render(<TabularPage inferenceEndpoints={inferenceEndpoints} />); | ||
|
|
||
| const rows = screen.getAllByRole('row'); | ||
| expect(rows[1]).toHaveTextContent('.elser-2-elasticsearch'); | ||
| expect(rows[2]).toHaveTextContent('.elser-v2-elastic'); | ||
| expect(rows[1]).toHaveTextContent('.elser-2-elastic'); | ||
| expect(rows[2]).toHaveTextContent('.elser-2-elasticsearch'); | ||
| expect(rows[3]).toHaveTextContent('.multilingual-e5-small-elasticsearch'); | ||
| expect(rows[4]).toHaveTextContent('.sparkles'); | ||
| expect(rows[5]).toHaveTextContent('custom-inference-id'); | ||
|
|
@@ -132,11 +132,11 @@ describe('When the tabular page is loaded', () => { | |
| render(<TabularPage inferenceEndpoints={inferenceEndpoints} />); | ||
|
|
||
| const rows = screen.getAllByRole('row'); | ||
| expect(rows[1]).toHaveTextContent('Elasticsearch'); | ||
| expect(rows[1]).toHaveTextContent('.elser_model_2'); | ||
| expect(rows[1]).toHaveTextContent('Elastic'); | ||
| expect(rows[1]).toHaveTextContent('.elser-2-elastic'); | ||
|
|
||
| expect(rows[2]).toHaveTextContent('Elastic'); | ||
| expect(rows[2]).toHaveTextContent('.elser-v2-elastic'); | ||
| expect(rows[2]).toHaveTextContent('Elasticsearch'); | ||
| expect(rows[2]).toHaveTextContent('.elser_model_2'); | ||
|
|
||
| expect(rows[3]).toHaveTextContent('Elasticsearch'); | ||
| expect(rows[3]).toHaveTextContent('.multilingual-e5-small'); | ||
|
|
@@ -145,7 +145,7 @@ describe('When the tabular page is loaded', () => { | |
| expect(rows[4]).toHaveTextContent('rainbow-sprinkles'); | ||
|
|
||
| expect(rows[5]).toHaveTextContent('Elastic'); | ||
| expect(rows[5]).toHaveTextContent('elser-v2'); | ||
| expect(rows[5]).toHaveTextContent('elser_model_2'); | ||
|
|
||
| expect(rows[6]).toHaveTextContent('Elasticsearch'); | ||
| expect(rows[6]).toHaveTextContent('.rerank-v1'); | ||
|
|
@@ -201,14 +201,14 @@ describe('When the tabular page is loaded', () => { | |
| expect(rows[9]).not.toHaveTextContent(preconfigured); | ||
| }); | ||
|
|
||
| it('should show tech preview badge only for reranker-v1 model, rainbow-sprinkles, and preconfigured elser-v2', () => { | ||
| it('should show tech preview badge only for reranker-v1 model, rainbow-sprinkles, and preconfigured elser_model_2', () => { | ||
| render(<TabularPage inferenceEndpoints={inferenceEndpoints} />); | ||
|
|
||
| const techPreview = 'TECH PREVIEW'; | ||
|
|
||
| const rows = screen.getAllByRole('row'); | ||
| expect(rows[1]).not.toHaveTextContent(techPreview); | ||
| expect(rows[2]).toHaveTextContent(techPreview); | ||
| expect(rows[1]).toHaveTextContent(techPreview); | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. now |
||
| expect(rows[2]).not.toHaveTextContent(techPreview); | ||
| expect(rows[3]).not.toHaveTextContent(techPreview); | ||
| expect(rows[4]).toHaveTextContent(techPreview); | ||
| expect(rows[5]).not.toHaveTextContent(techPreview); | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@timgrein This might create an ordering issue in the inference table. I suspect the CI failures are because of that.