From 1d58df520f0962edfb9516f11a49f781ddb8c311 Mon Sep 17 00:00:00 2001 From: Indradeep Biswas Date: Fri, 21 Jun 2024 18:19:15 +0530 Subject: [PATCH] =?UTF-8?q?=F0=9F=8C=BF=20fix:=20Mongo=20Vector=20Store=20?= =?UTF-8?q?-=20retrieval=20not=20working=20(#50)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- store_factory.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/store_factory.py b/store_factory.py index 35b77fbd..16b81ef6 100644 --- a/store_factory.py +++ b/store_factory.py @@ -25,7 +25,7 @@ def get_vector_store( elif mode == "atlas-mongo": mongo_db = MongoClient(connection_string).get_database() mong_collection = mongo_db[collection_name] - return AtlasMongoVector(collection=mong_collection, embedding=embeddings) + return AtlasMongoVector(collection=mong_collection, embedding=embeddings, index_name=collection_name) else: raise ValueError("Invalid mode specified. Choose 'sync' or 'async'.")