From 1d532be3183254cdf42675ceff9dadd30daafeef Mon Sep 17 00:00:00 2001 From: Massimiliano Pippi Date: Thu, 18 Jan 2024 09:36:59 +0100 Subject: [PATCH] fix import paths for beta5 --- integrations/qdrant/src/qdrant_haystack/document_store.py | 2 +- integrations/qdrant/tests/test_document_store.py | 2 +- integrations/qdrant/tests/test_legacy_filters.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/integrations/qdrant/src/qdrant_haystack/document_store.py b/integrations/qdrant/src/qdrant_haystack/document_store.py index c4b709332..4fd724f67 100644 --- a/integrations/qdrant/src/qdrant_haystack/document_store.py +++ b/integrations/qdrant/src/qdrant_haystack/document_store.py @@ -8,8 +8,8 @@ from grpc import RpcError from haystack import default_from_dict, default_to_dict from haystack.dataclasses import Document -from haystack.document_stores import DuplicatePolicy from haystack.document_stores.errors import DocumentStoreError, DuplicateDocumentError +from haystack.document_stores.types import DuplicatePolicy from haystack.utils.filters import convert from qdrant_client import grpc from qdrant_client.http import models as rest diff --git a/integrations/qdrant/tests/test_document_store.py b/integrations/qdrant/tests/test_document_store.py index bbc16b9df..0118ae0cf 100644 --- a/integrations/qdrant/tests/test_document_store.py +++ b/integrations/qdrant/tests/test_document_store.py @@ -2,8 +2,8 @@ import pytest from haystack import Document -from haystack.document_stores import DuplicatePolicy from haystack.document_stores.errors import DuplicateDocumentError +from haystack.document_stores.types import DuplicatePolicy from haystack.testing.document_store import ( CountDocumentsTest, DeleteDocumentsTest, diff --git a/integrations/qdrant/tests/test_legacy_filters.py b/integrations/qdrant/tests/test_legacy_filters.py index 6cb78c653..957603423 100644 --- a/integrations/qdrant/tests/test_legacy_filters.py +++ b/integrations/qdrant/tests/test_legacy_filters.py @@ -2,7 +2,7 @@ import pytest from haystack import Document -from haystack.document_stores import DocumentStore +from haystack.document_stores.types import DocumentStore from haystack.testing.document_store import LegacyFilterDocumentsTest from haystack.utils.filters import FilterError