You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description
I am trying to use haystack with a sentence embedding model from the sentence-transformers library. Calling indexer.update_embeddings(embedding_retriever) results in an AttributeError.
Error message
line 318, in update_embeddings
"doc": {self.embedding_field: emb.tolist()},
AttributeError: 'list' object has no attribute 'tolist'
So something does not work in the handling of the embeddings given by the model.
System:
Haystack version (commit or version number): cloned yesterday
Thanks for reporting @anetschka ! I am able to reproduce this and already found the bug. While the DensePassageRetriever returns a List[ndarray], the EmbeddingRetriever returns List[List[float]]. I will add a fix for this
Description
I am trying to use haystack with a sentence embedding model from the sentence-transformers library. Calling indexer.update_embeddings(embedding_retriever) results in an AttributeError.
Error message
line 318, in update_embeddings
"doc": {self.embedding_field: emb.tolist()},
AttributeError: 'list' object has no attribute 'tolist'
So something does not work in the handling of the embeddings given by the model.
System:
The text was updated successfully, but these errors were encountered: