[8.12] [CONSOLE] Autocomplete for the inference API (#173014) (#173082)

# Backport

This will backport the following commits from `main` to `8.12`:
- [[CONSOLE] Autocomplete for the inference API
(#173014)](https://github.com/elastic/kibana/pull/173014)

<!--- Backport version: 8.9.7 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/backport)

<!--BACKPORT [{"author":{"name":"David
Kyle","email":"david.kyle@elastic.co"},"sourceCommit":{"committedDate":"2023-12-11T16:41:26Z","message":"[CONSOLE]
Autocomplete for the inference API (#173014)\n\nThis PR adds the to
autocomplete definitions in Console for the _inference
API","sha":"61cd731417208a601d50330b9da069be11a339c5","branchLabelMapping":{"^v8.13.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["backport","Feature:Console","release_note:skip","v8.12.0","v8.13.0"],"number":173014,"url":"https://github.com/elastic/kibana/pull/173014","mergeCommit":{"message":"[CONSOLE]
Autocomplete for the inference API (#173014)\n\nThis PR adds the to
autocomplete definitions in Console for the _inference
API","sha":"61cd731417208a601d50330b9da069be11a339c5"}},"sourceBranch":"main","suggestedTargetBranches":["8.12"],"targetPullRequestStates":[{"branch":"8.12","label":"v8.12.0","labelRegex":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v8.13.0","labelRegex":"^v8.13.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/173014","number":173014,"mergeCommit":{"message":"[CONSOLE]
Autocomplete for the inference API (#173014)\n\nThis PR adds the to
autocomplete definitions in Console for the _inference
API","sha":"61cd731417208a601d50330b9da069be11a339c5"}}]}] BACKPORT-->

Co-authored-by: David Kyle <david.kyle@elastic.co>
This commit is contained in:
Kibana Machine 2023-12-11 12:57:28 -05:00 committed by GitHub
parent 16278bfd33
commit f578d469a2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 109 additions and 0 deletions

View file

@ -0,0 +1,27 @@
{
"inference.delete_model": {
"url_params": {
"error_trace": "__flag__",
"filter_path": [],
"human": "__flag__",
"pretty": "__flag__"
},
"url_components": {
"task_type": [
"sparse_embedding",
"text_embedding"
]
},
"methods": [
"DELETE"
],
"patterns": [
"_inference/{task_type}/{model_id}"
],
"documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/master/delete-inference-api.html",
"availability": {
"stack": true,
"serverless": false
}
}
}

View file

@ -0,0 +1,27 @@
{
"inference.get_model": {
"url_params": {
"error_trace": "__flag__",
"filter_path": [],
"human": "__flag__",
"pretty": "__flag__"
},
"url_components": {
"task_type": [
"sparse_embedding",
"text_embedding"
]
},
"methods": [
"GET"
],
"patterns": [
"_inference/{task_type}/{model_id}"
],
"documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/master/get-inference-api.html",
"availability": {
"stack": true,
"serverless": false
}
}
}

View file

@ -0,0 +1,27 @@
{
"inference.inference": {
"url_params": {
"error_trace": "__flag__",
"filter_path": [],
"human": "__flag__",
"pretty": "__flag__"
},
"url_components": {
"task_type": [
"sparse_embedding",
"text_embedding"
]
},
"methods": [
"POST"
],
"patterns": [
"_inference/{task_type}/{model_id}"
],
"documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/master/post-inference-api.html",
"availability": {
"stack": true,
"serverless": false
}
}
}

View file

@ -0,0 +1,27 @@
{
"inference.put_model": {
"url_params": {
"error_trace": "__flag__",
"filter_path": [],
"human": "__flag__",
"pretty": "__flag__"
},
"url_components": {
"task_type": [
"sparse_embedding",
"text_embedding"
]
},
"methods": [
"PUT"
],
"patterns": [
"_inference/{task_type}/{model_id}"
],
"documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/master/put-inference-api.html",
"availability": {
"stack": true,
"serverless": false
}
}
}

View file

@ -6,6 +6,7 @@
"human": "__flag__",
"pretty": "__flag__",
"cache_size": [],
"deployment_id": "",
"number_of_allocations": [
"1"
],