Skip to content

Commit

Permalink
Change InMemory import paths (#292)
Browse files Browse the repository at this point in the history
  • Loading branch information
bilgeyucel authored Jan 30, 2024
1 parent 76046e2 commit f3a793b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion content/blog/guide-to-using-zephyr-with-haystack2/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ Once again, let’s define all of our components:
from haystack.components.builders.prompt_builder import PromptBuilder
from haystack.components.embedders import SentenceTransformersTextEmbedder
from haystack.components.generators import HuggingFaceLocalGenerator
from haystack.components.retrievers import InMemoryEmbeddingRetriever
from haystack.components.retrievers.in_memory import InMemoryEmbeddingRetriever

SentenceTransformersTextEmbedder(model="thenlper/gte-large")

Expand Down
4 changes: 2 additions & 2 deletions content/overview/quick-start.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@ Then, index your data to the DocumentStore, build a RAG pipeline, and ask a ques
import os

from haystack import Pipeline, Document
from haystack.document_stores import InMemoryDocumentStore
from haystack.components.retrievers import InMemoryBM25Retriever
from haystack.document_stores.in_memory import InMemoryDocumentStore
from haystack.components.retrievers.in_memory import InMemoryBM25Retriever
from haystack.components.generators import OpenAIGenerator
from haystack.components.builders.prompt_builder import PromptBuilder

Expand Down

0 comments on commit f3a793b

Please sign in to comment.