Skip to content

Commit

Permalink
[CONSOLE] Autocomplete for the inference API (#173014)
Browse files Browse the repository at this point in the history
This PR adds the to autocomplete definitions in Console for the _inference API
  • Loading branch information
davidkyle authored Dec 11, 2023
1 parent b54fac4 commit 61cd731
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 61cd731

Please sign in to comment.