elastic / elasticsearch

Free and Open Source, Distributed, RESTful Search Engine
https://www.elastic.co/products/elasticsearch
Other
1.37k stars 24.87k forks source link

[8.16] Add version prefix to Inference Service API path #117365

Open demjened opened 2 days ago

demjened commented 2 days ago

Manual backport of #117095 (I forgot to set the auto-backport label on that PR).


This PR updates the configuration of the Elastic Inference Service's inference API path. It adds the /api/v1 prefix to the path, i.e. <EIS base URL>/api/v1/sparse-text-embedding/ELSERv2.

Currently EIS exposes both the versioned and unversioned endpoint with identical behavior. Once this PR is merged, the unversioned endpoint can be removed as there is no other dependency on it.