mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 17:59:23 -04:00
[Search Relevance] Remove v2 from ELSER callout (#171881)
In this PR, we removed the **v2** from the text-expansion-callout.
<img width="918" alt="Screenshot 2023-11-23 at 9 33 11 AM"
src="ea303544
-9dda-4b17-8798-0716609bddef">
This commit is contained in:
parent
07432ab3fe
commit
ce43003961
7 changed files with 29 additions and 29 deletions
|
@ -55,7 +55,7 @@ export const DeployModel = ({
|
|||
<h3>
|
||||
{i18n.translate(
|
||||
'xpack.enterpriseSearch.content.index.pipelines.textExpansionCallOut.title',
|
||||
{ defaultMessage: 'Improve your results with ELSER v2' }
|
||||
{ defaultMessage: 'Improve your results with ELSER' }
|
||||
)}
|
||||
</h3>
|
||||
</EuiText>
|
||||
|
|
|
@ -51,7 +51,7 @@ export const ModelDeployed = ({
|
|||
<h3>
|
||||
{i18n.translate(
|
||||
'xpack.enterpriseSearch.content.index.pipelines.textExpansionCallOut.deployedTitle',
|
||||
{ defaultMessage: 'Your ELSER v2 model has deployed but not started.' }
|
||||
{ defaultMessage: 'Your ELSER model has deployed but not started.' }
|
||||
)}
|
||||
</h3>
|
||||
</EuiText>
|
||||
|
|
|
@ -28,7 +28,7 @@ export const ModelDeploymentInProgress = ({
|
|||
<h3>
|
||||
{i18n.translate(
|
||||
'xpack.enterpriseSearch.content.index.pipelines.textExpansionCallOut.deployingTitle',
|
||||
{ defaultMessage: 'Your ELSER v2 model is deploying.' }
|
||||
{ defaultMessage: 'Your ELSER model is deploying.' }
|
||||
)}
|
||||
</h3>
|
||||
</EuiText>
|
||||
|
|
|
@ -50,20 +50,20 @@ export const ModelStarted = ({
|
|||
? isCompact
|
||||
? i18n.translate(
|
||||
'xpack.enterpriseSearch.content.index.pipelines.textExpansionCallOut.startedSingleThreadedTitleCompact',
|
||||
{ defaultMessage: 'Your ELSER v2 model is running single-threaded.' }
|
||||
{ defaultMessage: 'Your ELSER model is running single-threaded.' }
|
||||
)
|
||||
: i18n.translate(
|
||||
'xpack.enterpriseSearch.content.index.pipelines.textExpansionCallOut.startedSingleThreadedTitle',
|
||||
{ defaultMessage: 'Your ELSER v2 model has started single-threaded.' }
|
||||
{ defaultMessage: 'Your ELSER model has started single-threaded.' }
|
||||
)
|
||||
: isCompact
|
||||
? i18n.translate(
|
||||
'xpack.enterpriseSearch.content.index.pipelines.textExpansionCallOut.startedTitleCompact',
|
||||
{ defaultMessage: 'Your ELSER v2 model is running.' }
|
||||
{ defaultMessage: 'Your ELSER model is running.' }
|
||||
)
|
||||
: i18n.translate(
|
||||
'xpack.enterpriseSearch.content.index.pipelines.textExpansionCallOut.startedTitle',
|
||||
{ defaultMessage: 'Your ELSER v2 model has started.' }
|
||||
{ defaultMessage: 'Your ELSER model has started.' }
|
||||
)}
|
||||
</h3>
|
||||
</EuiText>
|
||||
|
@ -92,7 +92,7 @@ export const ModelStarted = ({
|
|||
'xpack.enterpriseSearch.content.index.pipelines.textExpansionCallOut.startedBody',
|
||||
{
|
||||
defaultMessage:
|
||||
'Enjoy the power of ELSER v2 in your custom Inference pipeline.',
|
||||
'Enjoy the power of ELSER in your custom Inference pipeline.',
|
||||
}
|
||||
)}
|
||||
</p>
|
||||
|
|
|
@ -80,19 +80,19 @@ describe('TextExpansionCalloutLogic', () => {
|
|||
});
|
||||
it('uses the correct title and message from a create error', () => {
|
||||
expect(getTextExpansionError(error, undefined, undefined)).toEqual({
|
||||
title: 'Error with ELSER v2 deployment',
|
||||
title: 'Error with ELSER deployment',
|
||||
message: error.body?.message,
|
||||
});
|
||||
});
|
||||
it('uses the correct title and message from a fetch error', () => {
|
||||
expect(getTextExpansionError(undefined, error, undefined)).toEqual({
|
||||
title: 'Error fetching ELSER v2 model',
|
||||
title: 'Error fetching ELSER model',
|
||||
message: error.body?.message,
|
||||
});
|
||||
});
|
||||
it('uses the correct title and message from a start error', () => {
|
||||
expect(getTextExpansionError(undefined, undefined, error)).toEqual({
|
||||
title: 'Error starting ELSER v2 deployment',
|
||||
title: 'Error starting ELSER deployment',
|
||||
message: error.body?.message,
|
||||
});
|
||||
});
|
||||
|
@ -303,7 +303,7 @@ describe('TextExpansionCalloutLogic', () => {
|
|||
describe('textExpansionError', () => {
|
||||
const error = {
|
||||
body: {
|
||||
error: 'Error with ELSER v2 deployment',
|
||||
error: 'Error with ELSER deployment',
|
||||
message: 'Mocked error message',
|
||||
statusCode: 500,
|
||||
},
|
||||
|
@ -318,21 +318,21 @@ describe('TextExpansionCalloutLogic', () => {
|
|||
it('returns extracted error for create', () => {
|
||||
CreateTextExpansionModelApiLogic.actions.apiError(error);
|
||||
expect(TextExpansionCalloutLogic.values.textExpansionError).toStrictEqual({
|
||||
title: 'Error with ELSER v2 deployment',
|
||||
title: 'Error with ELSER deployment',
|
||||
message: 'Mocked error message',
|
||||
});
|
||||
});
|
||||
it('returns extracted error for fetch', () => {
|
||||
FetchTextExpansionModelApiLogic.actions.apiError(error);
|
||||
expect(TextExpansionCalloutLogic.values.textExpansionError).toStrictEqual({
|
||||
title: 'Error fetching ELSER v2 model',
|
||||
title: 'Error fetching ELSER model',
|
||||
message: 'Mocked error message',
|
||||
});
|
||||
});
|
||||
it('returns extracted error for start', () => {
|
||||
StartTextExpansionModelApiLogic.actions.apiError(error);
|
||||
expect(TextExpansionCalloutLogic.values.textExpansionError).toStrictEqual({
|
||||
title: 'Error starting ELSER v2 deployment',
|
||||
title: 'Error starting ELSER deployment',
|
||||
message: 'Mocked error message',
|
||||
});
|
||||
});
|
||||
|
|
|
@ -97,7 +97,7 @@ export const getTextExpansionError = (
|
|||
title: i18n.translate(
|
||||
'xpack.enterpriseSearch.content.indices.pipelines.textExpansionCreateError.title',
|
||||
{
|
||||
defaultMessage: 'Error with ELSER v2 deployment',
|
||||
defaultMessage: 'Error with ELSER deployment',
|
||||
}
|
||||
),
|
||||
message: getErrorsFromHttpResponse(createError)[0],
|
||||
|
@ -107,7 +107,7 @@ export const getTextExpansionError = (
|
|||
title: i18n.translate(
|
||||
'xpack.enterpriseSearch.content.indices.pipelines.textExpansionStartError.title',
|
||||
{
|
||||
defaultMessage: 'Error starting ELSER v2 deployment',
|
||||
defaultMessage: 'Error starting ELSER deployment',
|
||||
}
|
||||
),
|
||||
message: getErrorsFromHttpResponse(startError)[0],
|
||||
|
@ -117,7 +117,7 @@ export const getTextExpansionError = (
|
|||
title: i18n.translate(
|
||||
'xpack.enterpriseSearch.content.indices.pipelines.textExpansionFetchError.title',
|
||||
{
|
||||
defaultMessage: 'Error fetching ELSER v2 model',
|
||||
defaultMessage: 'Error fetching ELSER model',
|
||||
}
|
||||
),
|
||||
message: getErrorsFromHttpResponse(fetchError)[0],
|
||||
|
|
|
@ -14445,18 +14445,18 @@
|
|||
"xpack.enterpriseSearch.content.index.pipelines.settings.reduceWhitespaceLabel": "减少空白",
|
||||
"xpack.enterpriseSearch.content.index.pipelines.settings.runMlInferenceDescrition": "使用兼容的已训练 ML 模型增强您的数据",
|
||||
"xpack.enterpriseSearch.content.index.pipelines.textExpansionCallOut.deployedBody": "您可以在单线程配置中启动模型以用于测试,或调整性能以用于生产环境。",
|
||||
"xpack.enterpriseSearch.content.index.pipelines.textExpansionCallOut.deployedTitle": "您的 ELSER v2 模型已部署,但尚未启动。",
|
||||
"xpack.enterpriseSearch.content.index.pipelines.textExpansionCallOut.deployedTitle": "您的 ELSER 模型已部署,但尚未启动。",
|
||||
"xpack.enterpriseSearch.content.index.pipelines.textExpansionCallOut.deployingBody": "同时,您可以继续使用其他上传的模型来创建管道。",
|
||||
"xpack.enterpriseSearch.content.index.pipelines.textExpansionCallOut.deployingTitle": "您的 ELSER v2 模型正在部署。",
|
||||
"xpack.enterpriseSearch.content.index.pipelines.textExpansionCallOut.deployingTitle": "您的 ELSER 模型正在部署。",
|
||||
"xpack.enterpriseSearch.content.index.pipelines.textExpansionCallOut.dismissButton": "关闭 ELSER 对外调用",
|
||||
"xpack.enterpriseSearch.content.index.pipelines.textExpansionCallOut.learnMoreLink": "了解详情",
|
||||
"xpack.enterpriseSearch.content.index.pipelines.textExpansionCallOut.startedBody": "在您的定制推理管道中体验 ELSER v2 的强大功能。",
|
||||
"xpack.enterpriseSearch.content.index.pipelines.textExpansionCallOut.startedBody": "在您的定制推理管道中体验 ELSER 的强大功能。",
|
||||
"xpack.enterpriseSearch.content.index.pipelines.textExpansionCallOut.startedSingleThreadedBody": "此单线程配置非常适合测试您的定制推理管道,但应微调性能以用于生产。",
|
||||
"xpack.enterpriseSearch.content.index.pipelines.textExpansionCallOut.startedSingleThreadedTitle": "您的 ELSER v2 模型已通过单线程方式启动。",
|
||||
"xpack.enterpriseSearch.content.index.pipelines.textExpansionCallOut.startedSingleThreadedTitleCompact": "您的 ELSER v2 模型正通过单线程方式运行。",
|
||||
"xpack.enterpriseSearch.content.index.pipelines.textExpansionCallOut.startedTitle": "您的 ELSER v2 模型已启动。",
|
||||
"xpack.enterpriseSearch.content.index.pipelines.textExpansionCallOut.startedTitleCompact": "您的 ELSER v2 模型正在运行。",
|
||||
"xpack.enterpriseSearch.content.index.pipelines.textExpansionCallOut.title": "通过 ELSER v2 改进您的结果",
|
||||
"xpack.enterpriseSearch.content.index.pipelines.textExpansionCallOut.startedSingleThreadedTitle": "您的 ELSER 模型已通过单线程方式启动。",
|
||||
"xpack.enterpriseSearch.content.index.pipelines.textExpansionCallOut.startedSingleThreadedTitleCompact": "您的 ELSER 模型正通过单线程方式运行。",
|
||||
"xpack.enterpriseSearch.content.index.pipelines.textExpansionCallOut.startedTitle": "您的 ELSER 模型已启动。",
|
||||
"xpack.enterpriseSearch.content.index.pipelines.textExpansionCallOut.startedTitleCompact": "您的 ELSER 模型正在运行。",
|
||||
"xpack.enterpriseSearch.content.index.pipelines.textExpansionCallOut.title": "通过 ELSER 改进您的结果",
|
||||
"xpack.enterpriseSearch.content.index.pipelines.textExpansionCallOut.titleBadge": "新建",
|
||||
"xpack.enterpriseSearch.content.index.searchApplication.createSearchApplication": "创建搜索应用程序",
|
||||
"xpack.enterpriseSearch.content.index.searchEngines.createEngineDisabledTooltip": "无法从隐藏索引创建搜索应用程序。",
|
||||
|
@ -14726,9 +14726,9 @@
|
|||
"xpack.enterpriseSearch.content.indices.pipelines.textExpansionCallOut.startModelButton.label": "以单线程方式启动",
|
||||
"xpack.enterpriseSearch.content.indices.pipelines.textExpansionCallOut.viewModelsButton": "查看详情",
|
||||
"xpack.enterpriseSearch.content.indices.pipelines.textExpansionCreateError.mlNotificationsLink": "Machine Learning 通知",
|
||||
"xpack.enterpriseSearch.content.indices.pipelines.textExpansionCreateError.title": "ELSER v2 部署出错",
|
||||
"xpack.enterpriseSearch.content.indices.pipelines.textExpansionFetchError.title": "提取 ELSER v2 模型时出错",
|
||||
"xpack.enterpriseSearch.content.indices.pipelines.textExpansionStartError.title": "启动 ELSER v2 部署时出错",
|
||||
"xpack.enterpriseSearch.content.indices.pipelines.textExpansionCreateError.title": "ELSER 部署出错",
|
||||
"xpack.enterpriseSearch.content.indices.pipelines.textExpansionFetchError.title": "提取 ELSER 模型时出错",
|
||||
"xpack.enterpriseSearch.content.indices.pipelines.textExpansionStartError.title": "启动 ELSER 部署时出错",
|
||||
"xpack.enterpriseSearch.content.indices.searchIndex.convertConnector.buttonLabel": "转换连接器",
|
||||
"xpack.enterpriseSearch.content.indices.selectConnector.allConnectorsLabel": "所有连接器",
|
||||
"xpack.enterpriseSearch.content.indices.selectConnector.callout.description.connectorsClient": "连接器客户端",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue