forked from Archives/langchain
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
5c97f70bf1
Running the Cohere embeddings example from the docs: ```python from langchain.embeddings import CohereEmbeddings embeddings = CohereEmbeddings(cohere_api_key= cohere_api_key) text = "This is a test document." query_result = embeddings.embed_query(text) doc_result = embeddings.embed_documents([text]) ``` I get the error: ```bash CohereError(message=res['message'], http_status=response.status_code, headers=response.headers) cohere.error.CohereError: embed is not an available endpoint on this model ``` This is because the `model` string is set to `medium` which is not currently available. From the Cohere docs: > Currently available models are small and large (default) |
1 year ago | |
---|---|---|
.. | ||
hyde | 1 year ago | |
__init__.py | 1 year ago | |
base.py | 2 years ago | |
cohere.py | 1 year ago | |
huggingface.py | 2 years ago | |
huggingface_hub.py | 2 years ago | |
openai.py | 2 years ago |