I'm encountering an issue with the MongoDBAtlasDocumentStore in the Haystack library. Despite setting return_embedding=True in the configuration, embedded vectors are returned as None when retrieving documents from the MongoDB collection.
Steps to Reproduce:
Set up a MongoDBAtlasDocumentStore with the following configuration:
Description:
I'm encountering an issue with the MongoDBAtlasDocumentStore in the Haystack library. Despite setting
return_embedding=True
in the configuration, embedded vectors are returned asNone
when retrieving documents from the MongoDB collection.Steps to Reproduce:
Save documents to the MongoDB collection using
ds.write_documents(squad_docs)
.Retrieve documents from the collection using
ds.get_all_documents()
.Check the embedding of the retrieved documents, e.g.,
all_docs[0]['embedding']
.Expected Behavior:
The
embedding
field of the retrieved documents should contain the embedded vectors.Actual Behavior:
The
embedding
field of the retrieved documents isNone
, despite settingreturn_embedding=True
in the configuration.Additional Information: