qdrant / qdrant-haystack

An integration of Qdrant ANN vector database backend with Haystack
Apache License 2.0
42 stars 11 forks source link

Cannot import QdrantDocumentStore due to import error #23

Closed burtonrj closed 1 year ago

burtonrj commented 1 year ago

Hi, I'm using qdrant-haystack version 1.0.4 with haystack version 1.18.1. When I try to import QdrantDocumentStore I get the following import error:

ImportError: cannot import name 'get_batches_from_generator' from 'haystack.document_stores.base'

Checking the haystack main branch, get_batches_from_generator appears to be missing from haystack.document_stores.base. It looks like it has been moved to haystack.utils.batching but you might need to double-check this is the same function.

kacperlukawski commented 1 year ago

@burtonrj Thanks for letting me know, the fix it's almost ready.

kacperlukawski commented 1 year ago

@burtonrj Fixed in 1.0.5

burtonrj commented 1 year ago

Amazing! Thank you! I'll test it out when I get a chance.

burtonrj commented 1 year ago

Just back to say this worked perfectly, thanks for the quick fix.