File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
integrations/qdrant/src/haystack_integrations/document_stores/qdrant Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -334,7 +334,7 @@ def write_documents(
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 @@ def write_documents(
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 @@ def write_documents(
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 ,
You can’t perform that action at this time.
0 commit comments