Skip to content

Commit

Permalink
fix e2e test
Browse files Browse the repository at this point in the history
  • Loading branch information
mhaligowski committed Nov 29, 2023
1 parent 14581ed commit 6b3f107
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 7 deletions.
10 changes: 5 additions & 5 deletions e2e/pipelines/test_gradient_rag_pipelines.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@
import json
import pytest

from haystack.preview import Pipeline, Document
from haystack import Pipeline, Document
from haystack.components.embedders.gradient_document_embedder import GradientDocumentEmbedder
from haystack.components.embedders.gradient_text_embedder import GradientTextEmbedder
from haystack.preview.document_stores import InMemoryDocumentStore
from haystack.preview.components.writers import DocumentWriter
from haystack.preview.components.retrievers import InMemoryEmbeddingRetriever
from haystack.preview.components.generators.gradient.base import GradientGenerator
from haystack.document_stores import InMemoryDocumentStore
from haystack.components.writers import DocumentWriter
from haystack.components.retrievers import InMemoryEmbeddingRetriever
from haystack.components.generators.gradient.base import GradientGenerator
from haystack.components.builders.answer_builder import AnswerBuilder
from haystack.components.builders.prompt_builder import PromptBuilder

Expand Down
3 changes: 2 additions & 1 deletion haystack/components/generators/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
from haystack.components.generators.cohere import CohereGenerator
from haystack.components.generators.gradient.base import GradientGenerator
from haystack.components.generators.hugging_face_local import HuggingFaceLocalGenerator
from haystack.components.generators.hugging_face_tgi import HuggingFaceTGIGenerator
from haystack.components.generators.openai import GPTGenerator

__all__ = ["HuggingFaceLocalGenerator", "HuggingFaceTGIGenerator", "GPTGenerator", "CohereGenerator"]
__all__ = ["HuggingFaceLocalGenerator", "HuggingFaceTGIGenerator", "GPTGenerator", "CohereGenerator", "GradientGenerator"]
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import logging
from haystack.lazy_imports import LazyImport

from haystack.preview import component, default_to_dict
from haystack import component, default_to_dict

with LazyImport(message="Run 'pip install gradientai'") as gradientai_import:
from gradientai import Gradient
Expand Down

0 comments on commit 6b3f107

Please sign in to comment.