elastic / eland

Python Client and Toolkit for DataFrames, Big Data, Machine Learning and ETL in Elasticsearch
https://eland.readthedocs.io
Apache License 2.0
635 stars 98 forks source link

Add CLI hit for rerank task type #712

Closed jeffvestal closed 3 weeks ago

jeffvestal commented 1 month ago

The Elasticsearch inference API supports a rerank task type for reranker models loaded into elasticsearch via eland. Eland does not have a reranker task_type. Instead, the task type text_similarity should be used.

Updating the CLI help message to direct users to use text_similarity for rerankers will reduce confusion and frustration.

Something along the lines of text_similarity, used for rerank tasks in the Inference API