qdrant-haystack 4.2.0__tar.gz → 5.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.

Potentially problematic release.


This version of qdrant-haystack might be problematic. Click here for more details.

Files changed (23) hide show
  1. {qdrant_haystack-4.2.0 → qdrant_haystack-5.0.0}/CHANGELOG.md +10 -0
  2. {qdrant_haystack-4.2.0 → qdrant_haystack-5.0.0}/PKG-INFO +1 -1
  3. {qdrant_haystack-4.2.0 → qdrant_haystack-5.0.0}/src/haystack_integrations/document_stores/qdrant/document_store.py +4 -4
  4. {qdrant_haystack-4.2.0 → qdrant_haystack-5.0.0}/.gitignore +0 -0
  5. {qdrant_haystack-4.2.0 → qdrant_haystack-5.0.0}/LICENSE.txt +0 -0
  6. {qdrant_haystack-4.2.0 → qdrant_haystack-5.0.0}/README.md +0 -0
  7. {qdrant_haystack-4.2.0 → qdrant_haystack-5.0.0}/examples/embedding_retrieval.py +0 -0
  8. {qdrant_haystack-4.2.0 → qdrant_haystack-5.0.0}/pydoc/config.yml +0 -0
  9. {qdrant_haystack-4.2.0 → qdrant_haystack-5.0.0}/pyproject.toml +0 -0
  10. {qdrant_haystack-4.2.0 → qdrant_haystack-5.0.0}/src/haystack_integrations/components/retrievers/qdrant/__init__.py +0 -0
  11. {qdrant_haystack-4.2.0 → qdrant_haystack-5.0.0}/src/haystack_integrations/components/retrievers/qdrant/retriever.py +0 -0
  12. {qdrant_haystack-4.2.0 → qdrant_haystack-5.0.0}/src/haystack_integrations/document_stores/qdrant/__init__.py +0 -0
  13. {qdrant_haystack-4.2.0 → qdrant_haystack-5.0.0}/src/haystack_integrations/document_stores/qdrant/converters.py +0 -0
  14. {qdrant_haystack-4.2.0 → qdrant_haystack-5.0.0}/src/haystack_integrations/document_stores/qdrant/filters.py +0 -0
  15. {qdrant_haystack-4.2.0 → qdrant_haystack-5.0.0}/src/haystack_integrations/document_stores/qdrant/migrate_to_sparse.py +0 -0
  16. {qdrant_haystack-4.2.0 → qdrant_haystack-5.0.0}/tests/__init__.py +0 -0
  17. {qdrant_haystack-4.2.0 → qdrant_haystack-5.0.0}/tests/conftest.py +0 -0
  18. {qdrant_haystack-4.2.0 → qdrant_haystack-5.0.0}/tests/test_converters.py +0 -0
  19. {qdrant_haystack-4.2.0 → qdrant_haystack-5.0.0}/tests/test_dict_converters.py +0 -0
  20. {qdrant_haystack-4.2.0 → qdrant_haystack-5.0.0}/tests/test_document_store.py +0 -0
  21. {qdrant_haystack-4.2.0 → qdrant_haystack-5.0.0}/tests/test_filters.py +0 -0
  22. {qdrant_haystack-4.2.0 → qdrant_haystack-5.0.0}/tests/test_legacy_filters.py +0 -0
  23. {qdrant_haystack-4.2.0 → qdrant_haystack-5.0.0}/tests/test_retriever.py +0 -0
@@ -1,5 +1,15 @@
1
1
  # Changelog
2
2
 
3
+ ## [integrations/qdrant-v4.2.0] - 2024-08-27
4
+
5
+ ### 🚜 Refactor
6
+
7
+ - Qdrant Query API (#1025)
8
+
9
+ ### 🧪 Testing
10
+
11
+ - Do not retry tests in `hatch run test` command (#954)
12
+
3
13
  ## [integrations/qdrant-v4.1.2] - 2024-07-15
4
14
 
5
15
  ### 🐛 Bug Fixes
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: qdrant-haystack
3
- Version: 4.2.0
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
@@ -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, ids: List[str]):
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 ids]
392
+ ids = [convert_id(_id) for _id in document_ids]
393
393
  try:
394
394
  self.client.delete(
395
395
  collection_name=self.index,