Those settings provide the ability to configure things like similarity measure and dimensions which are not applicable to reranking. The common service settings class should be renamed to remove confusion and the rerank service settings probably shouldn't rely on it and only parse the url field.
Description
The cohere rerank implementation allows configuring fields that probably don't apply. The implementation leverages the common settings here: https://github.com/elastic/elasticsearch/blob/main/x-pack/plugin/inference/src/main/java/org/elasticsearch/xpack/inference/services/cohere/rerank/CohereRerankServiceSettings.java#L30
Those settings provide the ability to configure things like similarity measure and dimensions which are not applicable to reranking. The common service settings class should be renamed to remove confusion and the rerank service settings probably shouldn't rely on it and only parse the
url
field.