Skip to content
Merged
Original file line number Diff line number Diff line change
Expand Up @@ -1089,6 +1089,8 @@ export const getDocLinks = ({ kibanaBranch, buildFlavor }: GetDocLinkOptions): D
inferenceAPIDocumentation: isServerless
? `${ELASTICSEARCH_SERVERLESS_APIS}operation/operation-inference-put`
: `${ELASTICSEARCH_APIS}operation/operation-inference-put`,
featureSettings: `${ELASTIC_DOCS}explore-analyze/ai-features/manage-access-to-ai-assistant`,
externalInference: `${ELASTIC_DOCS}explore-analyze/elastic-inference/external`,
},
synonyms: {
synonymsAPIDocumentation: isServerless
Expand Down
2 changes: 2 additions & 0 deletions src/platform/packages/shared/kbn-doc-links/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -707,6 +707,8 @@ export interface DocLinks {
};
readonly inferenceManagement: {
readonly inferenceAPIDocumentation: string;
readonly featureSettings: string;
readonly externalInference: string;
};
readonly synonyms: {
readonly synonymsAPIDocumentation: string;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,17 @@ class InferenceEndpointsDocLinks {
public elasticInferenceService: string = '';
public semanticSearchElser: string = '';
public semanticSearchE5: string = '';

public featureSettings: string = '';
public externalInference: string = '';
constructor() {}

setDocLinks(newDocLinks: DocLinks) {
this.createInferenceEndpoint = newDocLinks.inferenceManagement.inferenceAPIDocumentation;
this.elasticInferenceService = newDocLinks.enterpriseSearch.elasticInferenceService;
this.semanticSearchElser = newDocLinks.enterpriseSearch.elser;
this.semanticSearchE5 = newDocLinks.enterpriseSearch.e5Model;
this.featureSettings = newDocLinks.inferenceManagement.featureSettings;
this.externalInference = newDocLinks.inferenceManagement.externalInference;
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ export const ExternalInferenceEmptyPrompt: React.FC<ExternalInferenceEmptyPrompt
}
footer={
<EuiLink
href={docLinks.createInferenceEndpoint}
href={docLinks.externalInference}
target="_blank"
external
data-test-subj="viewDocumentationLink"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ describe('DefaultModelSection', () => {
);

expect(
screen.getByText('Features can allow users to select other models than the default.')
screen.getByText('Users can choose between multiple models for each feature.')
).toBeInTheDocument();
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -228,8 +228,7 @@ export const DefaultModelSection: React.FC<Props> = ({ defaultModelSettings }) =
: i18n.translate(
'xpack.searchInferenceEndpoints.settings.defaultModel.allowOtherModels.description',
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Consider a new i18n message id for allowOtherModels help text since the defaultMessage meaning shifted; keeping the old id can leave non-English strings on the old wording. After changing the id, run node scripts/i18n_check --fix.

{
defaultMessage:
'Features can allow users to select other models than the default.',
defaultMessage: 'Users can choose between multiple models for each feature.',
}
)}
</EuiText>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -161,10 +161,10 @@ export const ModelSettings: React.FC = () => {
flush="both"
target="_blank"
data-test-subj="settings-api-documentation"
href={docLinks.createInferenceEndpoint}
href={docLinks.featureSettings}
>
{i18n.translate('xpack.searchInferenceEndpoints.apiDocumentationLink', {
defaultMessage: 'API Documentation',
{i18n.translate('xpack.searchInferenceEndpoints.settings.documentationLabel', {
defaultMessage: 'Documentation',
})}
</EuiButtonEmpty>,
]}
Expand Down
Loading