qdrant-haystack 4.2.0__py3-none-any.whl → 5.0.0__py3-none-any.whl
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.
Potentially problematic release.
This version of qdrant-haystack might be problematic. Click here for more details.
- haystack_integrations/document_stores/qdrant/document_store.py +4 -4
- {qdrant_haystack-4.2.0.dist-info → qdrant_haystack-5.0.0.dist-info}/METADATA +1 -1
- {qdrant_haystack-4.2.0.dist-info → qdrant_haystack-5.0.0.dist-info}/RECORD +5 -5
- {qdrant_haystack-4.2.0.dist-info → qdrant_haystack-5.0.0.dist-info}/WHEEL +0 -0
- {qdrant_haystack-4.2.0.dist-info → qdrant_haystack-5.0.0.dist-info}/licenses/LICENSE.txt +0 -0
|
@@ -334,7 +334,7 @@ class QdrantDocumentStore:
|
|
|
334
334
|
self,
|
|
335
335
|
documents: List[Document],
|
|
336
336
|
policy: DuplicatePolicy = DuplicatePolicy.FAIL,
|
|
337
|
-
):
|
|
337
|
+
) -> int:
|
|
338
338
|
"""
|
|
339
339
|
Writes documents to Qdrant using the specified policy.
|
|
340
340
|
The QdrantDocumentStore can handle duplicate documents based on the given policy.
|
|
@@ -358,7 +358,7 @@ class QdrantDocumentStore:
|
|
|
358
358
|
|
|
359
359
|
if len(documents) == 0:
|
|
360
360
|
logger.warning("Calling QdrantDocumentStore.write_documents() with empty list")
|
|
361
|
-
return
|
|
361
|
+
return 0
|
|
362
362
|
|
|
363
363
|
document_objects = self._handle_duplicate_documents(
|
|
364
364
|
documents=documents,
|
|
@@ -383,13 +383,13 @@ class QdrantDocumentStore:
|
|
|
383
383
|
progress_bar.update(self.write_batch_size)
|
|
384
384
|
return len(document_objects)
|
|
385
385
|
|
|
386
|
-
def delete_documents(self,
|
|
386
|
+
def delete_documents(self, document_ids: List[str]) -> None:
|
|
387
387
|
"""
|
|
388
388
|
Deletes documents that match the provided `document_ids` from the document store.
|
|
389
389
|
|
|
390
390
|
:param document_ids: the document ids to delete
|
|
391
391
|
"""
|
|
392
|
-
ids = [convert_id(_id) for _id in
|
|
392
|
+
ids = [convert_id(_id) for _id in document_ids]
|
|
393
393
|
try:
|
|
394
394
|
self.client.delete(
|
|
395
395
|
collection_name=self.index,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.3
|
|
2
2
|
Name: qdrant-haystack
|
|
3
|
-
Version:
|
|
3
|
+
Version: 5.0.0
|
|
4
4
|
Summary: An integration of Qdrant ANN vector database backend 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/qdrant/README.md
|
|
@@ -2,10 +2,10 @@ haystack_integrations/components/retrievers/qdrant/__init__.py,sha256=IRjcM4f8b5
|
|
|
2
2
|
haystack_integrations/components/retrievers/qdrant/retriever.py,sha256=DIqwa2JMVP7z52wmKdCfFk1ZdV0j50ZYCuRluQu5llk,18449
|
|
3
3
|
haystack_integrations/document_stores/qdrant/__init__.py,sha256=kUGc5uewqArhmVR-JqB_NmJ4kNkTIQIvYDNSoO2ELn0,302
|
|
4
4
|
haystack_integrations/document_stores/qdrant/converters.py,sha256=2hcuI3kty1dVHzX1WGXxEtlrnZ9E8TAG56XATCFa6Pw,2491
|
|
5
|
-
haystack_integrations/document_stores/qdrant/document_store.py,sha256=
|
|
5
|
+
haystack_integrations/document_stores/qdrant/document_store.py,sha256=Rr95CcyWImFwYuy8cKHdtH6784w4wKbuypSJ-wijgSs,37622
|
|
6
6
|
haystack_integrations/document_stores/qdrant/filters.py,sha256=Nv_eKIYKwUWvldJfa0omfFQ0kgqi6L3DUFeMuIWziOY,11751
|
|
7
7
|
haystack_integrations/document_stores/qdrant/migrate_to_sparse.py,sha256=yhZr4GB6N1S-Ikzl52hpuZt2aHNIb4leqFDhVMU3Uho,4910
|
|
8
|
-
qdrant_haystack-
|
|
9
|
-
qdrant_haystack-
|
|
10
|
-
qdrant_haystack-
|
|
11
|
-
qdrant_haystack-
|
|
8
|
+
qdrant_haystack-5.0.0.dist-info/METADATA,sha256=1N-UiU98RJX8yY6Ky7UMcXE3aKSjThqB9pBCqE6J_zY,1863
|
|
9
|
+
qdrant_haystack-5.0.0.dist-info/WHEEL,sha256=1yFddiXMmvYK7QYTqtRNtX66WJ0Mz8PYEiEUoOUUxRY,87
|
|
10
|
+
qdrant_haystack-5.0.0.dist-info/licenses/LICENSE.txt,sha256=B05uMshqTA74s-0ltyHKI6yoPfJ3zYgQbvcXfDVGFf8,10280
|
|
11
|
+
qdrant_haystack-5.0.0.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|