Skip to content

[ML] inference task type separation 8.x #3903

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Mar 7, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1,884 changes: 1,163 additions & 721 deletions output/schema/schema.json

Large diffs are not rendered by default.

7 changes: 0 additions & 7 deletions output/schema/validation-errors.json
Original file line number Diff line number Diff line change
Expand Up @@ -355,13 +355,6 @@
],
"response": []
},
"inference.update": {
"request": [
"/_inference/{inference_id}/_update: different http methods in the json spec",
"/_inference/{task_type}/{inference_id}/_update: different http methods in the json spec"
],
"response": []
},
"ingest.delete_geoip_database": {
"request": [
"Request: query parameter 'master_timeout' does not exist in the json spec",
Expand Down
198 changes: 119 additions & 79 deletions output/typescript/types.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions specification/_doc_ids/table.csv
Original file line number Diff line number Diff line change
Expand Up @@ -321,6 +321,7 @@ inference-api-put,https://www.elastic.co/guide/en/elasticsearch/reference/{branc
inference-api-put-watsonx,https://www.elastic.co/guide/en/elasticsearch/reference/{branch}/infer-service-watsonx-ai.html
inference-api-stream,https://www.elastic.co/guide/en/elasticsearch/reference/{branch}/stream-inference-api.html
inference-api-update,https://www.elastic.co/guide/en/elasticsearch/reference/{branch}/update-inference-api.html
inference-api-chat-completion,https://www.elastic.co/guide/en/elasticsearch/reference/{branch}/chat-completion-inference-api.html
inference-processor,https://www.elastic.co/guide/en/elasticsearch/reference/{branch}/inference-processor.html
info-api,https://www.elastic.co/guide/en/elasticsearch/reference/{branch}/info-api.html
ingest,https://www.elastic.co/guide/en/elasticsearch/reference/{branch}/ingest.html
Expand Down
31 changes: 31 additions & 0 deletions specification/_json_spec/inference.chat_completion_unified.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{
"inference.chat_completion_unified": {
"documentation": {
"url": "https://www.elastic.co/guide/en/elasticsearch/reference/master/chat-completion-inference.html",
"description": "Perform chat completion inference"
},
"stability": "stable",
"visibility": "public",
"headers": {
"accept": ["text/event-stream"],
"content_type": ["application/json"]
},
"url": {
"paths": [
{
"path": "/_inference/chat_completion/{inference_id}/_stream",
"methods": ["POST"],
"parts": {
"inference_id": {
"type": "string",
"description": "The inference Id"
}
}
}
]
},
"body": {
"description": "The inference payload"
}
}
}
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"inference.inference": {
"inference.completion": {
"documentation": {
"url": "https://www.elastic.co/guide/en/elasticsearch/reference/master/post-inference-api.html",
"description": "Perform inference"
"description": "Perform completion inference"
},
"stability": "experimental",
"visibility": "public",
Expand All @@ -13,28 +13,14 @@
"url": {
"paths": [
{
"path": "/_inference/{inference_id}",
"path": "/_inference/completion/{inference_id}",
"methods": ["POST"],
"parts": {
"inference_id": {
"type": "string",
"description": "The inference Id"
}
}
},
{
"path": "/_inference/{task_type}/{inference_id}",
"methods": ["POST"],
"parts": {
"task_type": {
"type": "string",
"description": "The task type"
},
"inference_id": {
"type": "string",
"description": "The inference Id"
}
}
}
]
},
Expand Down
31 changes: 31 additions & 0 deletions specification/_json_spec/inference.rerank.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{
"inference.rerank": {
"documentation": {
"url": "https://www.elastic.co/guide/en/elasticsearch/reference/master/post-inference-api.html",
"description": "Perform reranking inference"
},
"stability": "stable",
"visibility": "public",
"headers": {
"accept": ["application/json"],
"content_type": ["application/json"]
},
"url": {
"paths": [
{
"path": "/_inference/rerank/{inference_id}",
"methods": ["POST"],
"parts": {
"inference_id": {
"type": "string",
"description": "The inference Id"
}
}
}
]
},
"body": {
"description": "The inference payload"
}
}
}
Loading