Open maxhniebergall opened 1 month ago
Pinging @elastic/ml-core (Team:ML)
@maxhniebergall is this still an issue? I tried to reproduce the issue but the POST inference request returned a validation error when the query was not present
"type": "action_request_validation_exception",
"reason": "Validation Failed: 1: Field [query] cannot be null for task type [rerank];"
It looks like the request validation was fixed in #110147 but that fix predates this issue.
@davidkyle, I just tried it out and its still timing out for me. I don't see that validation exception at all in my test.
Thanks @maxhniebergall I've got it now. The validation exception is thrown if using the URL that includes the task type, if not you get the timeout.
# This call will not pass the validation checks
POST _inference/rerank/my-reranker
{
"input": ["test1", "test2", "test3"]
}
"Validation Failed: 1: Field [query] cannot be null for task type [rerank];"
# This call will time out
POST _inference/my-reranker
{
"input": ["test1", "test2", "test3"]
}
Elasticsearch Version
main git:b5d6fa0130dd987cea0c215751553478dc38f632
Installed Plugins
No response
Java Version
bundled
OS Version
macos
Problem Description
When making a request to cohere rerank endpoint without including both documents and query, there should be an illegal argument exception / bad request, but instead the request times out as the error is swallowed inside elasticsearch somewhere.
Steps to Reproduce
Logs (if relevant)