The agent engineering platform.
Python agentsaiai-agentsanthropicchatgptdeepagentsenterpriseframeworkgeminigenerative-ailangchainlanggraphllmmultiagentopen-sourceopenaipydanticpythonragtypescript
changed cohere.py to update the default model of embedding (#4709)
rajibe28f4a5f391b
diff --git a/langchain/embeddings/cohere.py b/langchain/embeddings/cohere.pyindex 527bb2c537..e4fe18b247 100644--- a/langchain/embeddings/cohere.py+++ b/langchain/embeddings/cohere.py@@ -18,11 +18,13 @@ class CohereEmbeddings(BaseModel, Embeddings):.. code-block:: pythonfrom langchain.embeddings import CohereEmbeddings- cohere = CohereEmbeddings(model="medium", cohere_api_key="my-api-key")+ cohere = CohereEmbeddings(+ model="embed-english-light-v2.0", cohere_api_key="my-api-key"+ )"""client: Any #: :meta private:- model: str = "large"+ model: str = "embed-english-v2.0""""Model name to use."""truncate: Optional[str] = None