weaviate-haystack 2.2.1__tar.gz → 3.0.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {weaviate_haystack-2.2.1 → weaviate_haystack-3.0.0}/CHANGELOG.md +7 -1
- {weaviate_haystack-2.2.1 → weaviate_haystack-3.0.0}/PKG-INFO +1 -1
- {weaviate_haystack-2.2.1 → weaviate_haystack-3.0.0}/src/haystack_integrations/document_stores/weaviate/document_store.py +2 -2
- {weaviate_haystack-2.2.1 → weaviate_haystack-3.0.0}/tests/test_document_store.py +0 -9
- {weaviate_haystack-2.2.1 → weaviate_haystack-3.0.0}/.gitignore +0 -0
- {weaviate_haystack-2.2.1 → weaviate_haystack-3.0.0}/LICENSE.txt +0 -0
- {weaviate_haystack-2.2.1 → weaviate_haystack-3.0.0}/README.md +0 -0
- {weaviate_haystack-2.2.1 → weaviate_haystack-3.0.0}/docker-compose.yml +0 -0
- {weaviate_haystack-2.2.1 → weaviate_haystack-3.0.0}/pydoc/config.yml +0 -0
- {weaviate_haystack-2.2.1 → weaviate_haystack-3.0.0}/pyproject.toml +0 -0
- {weaviate_haystack-2.2.1 → weaviate_haystack-3.0.0}/src/haystack_integrations/components/retrievers/weaviate/__init__.py +0 -0
- {weaviate_haystack-2.2.1 → weaviate_haystack-3.0.0}/src/haystack_integrations/components/retrievers/weaviate/bm25_retriever.py +0 -0
- {weaviate_haystack-2.2.1 → weaviate_haystack-3.0.0}/src/haystack_integrations/components/retrievers/weaviate/embedding_retriever.py +0 -0
- {weaviate_haystack-2.2.1 → weaviate_haystack-3.0.0}/src/haystack_integrations/document_stores/weaviate/__init__.py +0 -0
- {weaviate_haystack-2.2.1 → weaviate_haystack-3.0.0}/src/haystack_integrations/document_stores/weaviate/_filters.py +0 -0
- {weaviate_haystack-2.2.1 → weaviate_haystack-3.0.0}/src/haystack_integrations/document_stores/weaviate/auth.py +0 -0
- {weaviate_haystack-2.2.1 → weaviate_haystack-3.0.0}/tests/__init__.py +0 -0
- {weaviate_haystack-2.2.1 → weaviate_haystack-3.0.0}/tests/conftest.py +0 -0
- {weaviate_haystack-2.2.1 → weaviate_haystack-3.0.0}/tests/test_auth.py +0 -0
- {weaviate_haystack-2.2.1 → weaviate_haystack-3.0.0}/tests/test_bm25_retriever.py +0 -0
- {weaviate_haystack-2.2.1 → weaviate_haystack-3.0.0}/tests/test_embedding_retriever.py +0 -0
- {weaviate_haystack-2.2.1 → weaviate_haystack-3.0.0}/tests/test_files/robot1.jpg +0 -0
- {weaviate_haystack-2.2.1 → weaviate_haystack-3.0.0}/tests/test_filters.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
-
## [
|
|
3
|
+
## [integrations/weaviate-v2.2.1] - 2024-09-07
|
|
4
4
|
|
|
5
5
|
### 🚀 Features
|
|
6
6
|
|
|
@@ -10,6 +10,12 @@
|
|
|
10
10
|
|
|
11
11
|
- Weaviate filter error (#811)
|
|
12
12
|
- Fix connection to Weaviate Cloud Service (#624)
|
|
13
|
+
- Pin weaviate-client (#1046)
|
|
14
|
+
- Weaviate - fix connection issues with some WCS URLs (#1058)
|
|
15
|
+
|
|
16
|
+
### 🧪 Testing
|
|
17
|
+
|
|
18
|
+
- Do not retry tests in `hatch run test` command (#954)
|
|
13
19
|
|
|
14
20
|
### ⚙️ Miscellaneous Tasks
|
|
15
21
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.3
|
|
2
2
|
Name: weaviate-haystack
|
|
3
|
-
Version:
|
|
3
|
+
Version: 3.0.0
|
|
4
4
|
Summary: An integration of Weaviate vector database with Haystack
|
|
5
5
|
Project-URL: Source, https://github.com/deepset-ai/haystack-core-integrations
|
|
6
6
|
Project-URL: Documentation, https://github.com/deepset-ai/haystack-core-integrations/blob/main/integrations/weaviate/README.md
|
|
@@ -12,7 +12,6 @@ from haystack.core.serialization import default_from_dict, default_to_dict
|
|
|
12
12
|
from haystack.dataclasses.document import Document
|
|
13
13
|
from haystack.document_stores.errors import DocumentStoreError, DuplicateDocumentError
|
|
14
14
|
from haystack.document_stores.types.policy import DuplicatePolicy
|
|
15
|
-
from haystack.utils.filters import convert
|
|
16
15
|
|
|
17
16
|
import weaviate
|
|
18
17
|
from weaviate.collections.classes.data import DataObject
|
|
@@ -388,7 +387,8 @@ class WeaviateDocumentStore:
|
|
|
388
387
|
:returns: A list of Documents that match the given filters.
|
|
389
388
|
"""
|
|
390
389
|
if filters and "operator" not in filters and "conditions" not in filters:
|
|
391
|
-
|
|
390
|
+
msg = "Invalid filter syntax. See https://docs.haystack.deepset.ai/docs/metadata-filtering for details."
|
|
391
|
+
raise ValueError(msg)
|
|
392
392
|
|
|
393
393
|
result = []
|
|
394
394
|
if filters:
|
|
@@ -660,15 +660,6 @@ class TestWeaviateDocumentStore(CountDocumentsTest, WriteDocumentsTest, DeleteDo
|
|
|
660
660
|
with pytest.raises(ValueError):
|
|
661
661
|
document_store._embedding_retrieval(query_embedding=[], distance=0.1, certainty=0.1)
|
|
662
662
|
|
|
663
|
-
def test_filter_documents_with_legacy_filters(self, document_store):
|
|
664
|
-
docs = []
|
|
665
|
-
for index in range(10):
|
|
666
|
-
docs.append(Document(content="This is some content", meta={"index": index}))
|
|
667
|
-
document_store.write_documents(docs)
|
|
668
|
-
result = document_store.filter_documents({"content": {"$eq": "This is some content"}})
|
|
669
|
-
|
|
670
|
-
assert len(result) == 10
|
|
671
|
-
|
|
672
663
|
def test_filter_documents_below_default_limit(self, document_store):
|
|
673
664
|
docs = []
|
|
674
665
|
for index in range(9998):
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|