Skip to content

Commit

Permalink
docs: Update ollama examples with new community libraries (langchain-…
Browse files Browse the repository at this point in the history
…ai#17007)

- **Description:** Updating one line code sample for Ollama with new
**langchain_community** package
  - **Issue:**
  - **Dependencies:** none
  - **Twitter handle:**  @picsoung
  • Loading branch information
picsoung authored Feb 4, 2024
1 parent bcfce14 commit 54fcd47
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/docs/integrations/providers/ollama.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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).
Expand All @@ -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).
Expand All @@ -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).
Expand Down

0 comments on commit 54fcd47

Please sign in to comment.