Skip to content
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

Add note about using text_similarity task for rerank to the import model CLI #716

Merged
merged 1 commit into from
Aug 12, 2024

Conversation

davidkyle
Copy link
Member

As reported in #712 several people have tried to use --task-type rerank to upload a reranking model to Elasticsearch where --task-type text_similarity should be used. This change adds a message to eland_import_hub_model help to use --task-type text_similarity for reranking and adds the same information to the error message produced when the --task-type argument fails validation.

There isn't a straight forward extension point to change the error message produced by ArgParse when the argument as a set of valid choices. Catching and checking the ArgumentError is the best option I could see.

Closes #712

@davidkyle davidkyle added enhancement New feature or request topic:NLP Issue or PR about NLP model support and eland_import_hub_model labels Aug 12, 2024
@davidkyle davidkyle merged commit 5a76f82 into elastic:main Aug 12, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request topic:NLP Issue or PR about NLP model support and eland_import_hub_model
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add CLI hit for rerank task type
2 participants