Skip to content

Commit

Permalink
🌿 fix: Mongo Vector Store - retrieval not working (#50)
Browse files Browse the repository at this point in the history
  • Loading branch information
indradeep authored Jun 21, 2024
1 parent f2a02f4 commit 1d58df5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion store_factory.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'.")
Expand Down

0 comments on commit 1d58df5

Please sign in to comment.