From 4dd05791a292e9437e359b0730e81ae00333afb5 Mon Sep 17 00:00:00 2001 From: Mohammed Noumaan Ahamed Date: Mon, 15 Apr 2024 20:58:39 +0530 Subject: [PATCH] docs: quickstart retrieval chain for Cohere(API) (#20475) - **Description:** a description of the change - **Issue:** the issue # it fixes, if applicable - **Dependencies:** any dependencies required for this change - **Twitter handle:** if your PR gets announced, and you'd like a mention, we'll gladly shout you out! Description: fixes LangChainDeprecationWarning: The class `langchain_community.embeddings.cohere.CohereEmbeddings` was deprecated in langchain-community 0.0.30 and will be removed in 0.2.0. An updated version of the class exists in the langchain-cohere package and should be used instead. To use it run `pip install -U langchain-cohere` and import as `from langchain_cohere import CohereEmbeddings`. ![Screenshot 2024-04-15 200948](https://github.com/langchain-ai/langchain/assets/93511919/085b967d-a6fd-42c6-9404-faab8c5630ec) Dependencies : langchain_cohere Twitter handle: @Mo_Noumaan --- docs/docs/get_started/quickstart.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/docs/get_started/quickstart.mdx b/docs/docs/get_started/quickstart.mdx index 7cb7bb7679..a34a884fe9 100644 --- a/docs/docs/get_started/quickstart.mdx +++ b/docs/docs/get_started/quickstart.mdx @@ -293,7 +293,7 @@ embeddings = OllamaEmbeddings() Make sure you have the `cohere` package installed and the appropriate environment variables set (these are the same as needed for the LLM). ```python -from langchain_community.embeddings import CohereEmbeddings +from langchain_cohere.embeddings import CohereEmbeddings embeddings = CohereEmbeddings() ```