Skip to content

Commit

Permalink
Update Ollama import paths (#126)
Browse files Browse the repository at this point in the history
* update ollama

* fix
  • Loading branch information
anakin87 authored Jan 16, 2024
1 parent bf00915 commit 9442841
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions integrations/ollama.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,9 @@ toc: true
- [Introduction](#introduction)
- [Installation](#installation)
- [Usage](#usage)
- [Example](#example)
- [Examples](#examples)
- [Text Generation](#text-generation)
- [Chat Generation](#chat-generation)

## Introduction

Expand Down Expand Up @@ -72,7 +74,7 @@ from haystack.components.builders.prompt_builder import PromptBuilder
from haystack.components.retrievers import InMemoryBM25Retriever
from haystack.document_stores.in_memory import InMemoryDocumentStore

from ollama_haystack import OllamaGenerator
from haystack_integrations.components.generators.ollama import OllamaGenerator

document_store = InMemoryDocumentStore()
document_store.write_documents(
Expand Down Expand Up @@ -125,7 +127,7 @@ both a military leader and an important politician.']
```python
from haystack.dataclasses import ChatMessage

from ollama_haystack import OllamaChatGenerator
from haystack_integrations.components.generators.ollama import OllamaChatGenerator

messages = [
ChatMessage.from_user("What's Natural Language Processing?"),
Expand Down

0 comments on commit 9442841

Please sign in to comment.