Skip to content

[Inference API] Add special case to inference API #116962

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 7 commits into from
Nov 18, 2024

Conversation

maxhniebergall
Copy link
Contributor

Adds support for the reranker in the inference API

@elasticsearchmachine elasticsearchmachine added the Team:ML Meta label for the ML team label Nov 18, 2024
@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/ml-core (Team:ML)

@elasticsearchmachine
Copy link
Collaborator

Hi @maxhniebergall, I've created a changelog YAML for you.

@@ -0,0 +1,5 @@
pr: 116962
summary: "[Inference API] Add special case for elastic reranker in inference API"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: maybe omit the [...] part

* @param map Source map containing the config
* @return The builder
*/
public static Builder fromRequestMap(Map<String, Object> map) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: I'm fine with keep it since it's the pattern we have, but I don't believe we use this method yet right?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good point, we could remove this. I'm ambiguous about it. We could remove some of the constructors as well. I'm leaning towards just leaving them in.

@maxhniebergall
Copy link
Contributor Author

@elastimachine merge upstream

@maxhniebergall maxhniebergall enabled auto-merge (squash) November 18, 2024 20:58
@maxhniebergall
Copy link
Contributor Author

@elasticmachine merge upstream

@maxhniebergall maxhniebergall merged commit f7b6e20 into main Nov 18, 2024
17 checks passed
@maxhniebergall maxhniebergall deleted the inferenceAPIImprovement branch November 18, 2024 22:59
maxhniebergall added a commit that referenced this pull request Nov 19, 2024
* Add reranker special case to inference API

* Update docs/changelog/116962.yaml

* Update 116962.yaml

* spotless

* improvements from review

* Fix typo
elasticsearchmachine pushed a commit that referenced this pull request Nov 19, 2024
* Add reranker special case to inference API

* Update docs/changelog/116962.yaml

* Update 116962.yaml

* spotless

* improvements from review

* Fix typo
rjernst pushed a commit to rjernst/elasticsearch that referenced this pull request Nov 20, 2024
* Add reranker special case to inference API

* Update docs/changelog/116962.yaml

* Update 116962.yaml

* spotless

* improvements from review

* Fix typo
alexey-ivanov-es pushed a commit to alexey-ivanov-es/elasticsearch that referenced this pull request Nov 28, 2024
* Add reranker special case to inference API

* Update docs/changelog/116962.yaml

* Update 116962.yaml

* spotless

* improvements from review

* Fix typo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
>enhancement :ml Machine learning Team:ML Meta label for the ML team v8.17.0 v9.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants