From 54fcd476bb3ce089eac92aa1e6838ac31215150a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolas=20Greni=C3=A9?= Date: Sun, 4 Feb 2024 15:13:29 -0800 Subject: [PATCH] docs: Update ollama examples with new community libraries (#17007) - **Description:** Updating one line code sample for Ollama with new **langchain_community** package - **Issue:** - **Dependencies:** none - **Twitter handle:** @picsoung --- docs/docs/integrations/providers/ollama.mdx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/docs/integrations/providers/ollama.mdx b/docs/docs/integrations/providers/ollama.mdx index da10174a16..ba00e2a246 100644 --- a/docs/docs/integrations/providers/ollama.mdx +++ b/docs/docs/integrations/providers/ollama.mdx @@ -21,7 +21,7 @@ To use, you should set up the environment variables `ANYSCALE_API_BASE` and ## LLM ```python -from langchain.llms import Ollama +from langchain_community.llms import Ollama ``` See the notebook example [here](/docs/integrations/llms/ollama). @@ -31,7 +31,7 @@ See the notebook example [here](/docs/integrations/llms/ollama). ### Chat Ollama ```python -from langchain.chat_models import ChatOllama +from langchain_community.chat_models import ChatOllama ``` See the notebook example [here](/docs/integrations/chat/ollama). @@ -47,7 +47,7 @@ See the notebook example [here](/docs/integrations/chat/ollama_functions). ## Embedding models ```python -from langchain.embeddings import OllamaEmbeddings +from langchain_community.embeddings import OllamaEmbeddings ``` See the notebook example [here](/docs/integrations/text_embedding/ollama).