diff --git a/libs/community/langchain_community/vectorstores/mongodb_atlas.py b/libs/community/langchain_community/vectorstores/mongodb_atlas.py index ab15d0a7fcd..ae645568f99 100644 --- a/libs/community/langchain_community/vectorstores/mongodb_atlas.py +++ b/libs/community/langchain_community/vectorstores/mongodb_atlas.py @@ -215,7 +215,6 @@ class MongoDBAtlasVectorSearch(VectorStore): for res in cursor: text = res.pop(self._text_key) score = res.pop("score") - del res[self._embedding_key] docs.append((Document(page_content=text, metadata=res), score)) return docs