Skip to content

Commit

Permalink
[8.12] [CONSOLE] Autocomplete for the inference API (#173014) (#173082)
Browse files Browse the repository at this point in the history
# Backport

This will backport the following commits from `main` to `8.12`:
- [[CONSOLE] Autocomplete for the inference API
(#173014)](#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":"[email protected]"},"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 <[email protected]>
  • Loading branch information
kibanamachine and davidkyle authored Dec 11, 2023
1 parent 16278bf commit f578d46
Show file tree
Hide file tree
Showing 5 changed files with 109 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -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
}
}
}
Original file line number Diff line number Diff line change
@@ -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
}
}
}
Original file line number Diff line number Diff line change
@@ -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
}
}
}
Original file line number Diff line number Diff line change
@@ -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
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
"human": "__flag__",
"pretty": "__flag__",
"cache_size": [],
"deployment_id": "",
"number_of_allocations": [
"1"
],
Expand Down

0 comments on commit f578d46

Please sign in to comment.