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

Cohere service is not available in the 8.12 release #208

Closed
liu-xiao-guo opened this issue Mar 18, 2024 · 0 comments · Fixed by #209
Closed

Cohere service is not available in the 8.12 release #208

liu-xiao-guo opened this issue Mar 18, 2024 · 0 comments · Fixed by #209
Assignees
Labels
documentation Improvements or additions to documentation

Comments

@liu-xiao-guo
Copy link

For the notebook at https://github.com/elastic/elasticsearch-labs/blob/main/notebooks/integrations/cohere/inference-cohere.ipynb. In the following code:

API_KEY = getpass("Enter Cohere API key:  ")

client.inference.put_model(
    task_type="text_embedding",
    model_id="cohere_embeddings",
    body={
        "service": "cohere",
        "service_settings": {
            "api_key": API_KEY,
            "model_id": "embed-english-v3.0",
            "embedding_type": "int8",
        },
        "task_settings": {},
    },
)

Cohere does not work for Elastic Stack normal release. It returns the following error:

BadRequestError: BadRequestError(400, 'status_exception', 'Unknown service [cohere]')

For Elastic Stack 8.12 installation.

According to our documentation at https://www.elastic.co/guide/en/elasticsearch/reference/current/put-inference-api.html. Currently, only the following services are supported:

ELSER
OpenAI
Hugging Face

According to the reply from our Slack discussion, "Cohere" is only currently supported on Serverless.

It would be good to point out this to the developers.

@szabosteve szabosteve self-assigned this Mar 18, 2024
@szabosteve szabosteve added the documentation Improvements or additions to documentation label Mar 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants