The agent engineering platform.
Python agentsaiai-agentsanthropicchatgptdeepagentsenterpriseframeworkgeminigenerative-ailangchainlanggraphllmmultiagentopen-sourceopenaipydanticpythonragtypescript
[Community]: FIxed the DocumentDBVectorSearch `_similarity_search_without_score` (#22970)
Mohammad Mohtashimbf839676c71f
diff --git a/libs/community/langchain_community/vectorstores/documentdb.py b/libs/community/langchain_community/vectorstores/documentdb.pyindex d56f1a5712..730c517a15 100644--- a/libs/community/langchain_community/vectorstores/documentdb.py+++ b/libs/community/langchain_community/vectorstores/documentdb.py@@ -328,8 +328,8 @@ class DocumentDBVectorSearch(VectorStore):A list of documents closest to the query vector"""pipeline: List[dict[str, Any]] = [+ {"$match": filter},{- "$match": filter,"$search": {"vectorSearch": {"vector": embeddings,@@ -339,7 +339,7 @@ class DocumentDBVectorSearch(VectorStore):"efSearch": ef_search,}},- }+ },]cursor = self._collection.aggregate(pipeline)