-
Notifications
You must be signed in to change notification settings - Fork 2.6k
+MongoDB Vector Support #2367
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
+MongoDB Vector Support #2367
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
@Dev-Khant could you please take a look at this one? |
|
||
class MongoVectorConfig(BaseModel): | ||
dbname: str = Field("mydatabase", description="Name of the MongoDB database") | ||
collection_name: str = Field("mycollection", description="Name of the MongoDB collection") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please set the default name as mem0
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add the relevant docs and tests for it. Thanks.
|
||
|
||
class MongoVectorConfig(BaseModel): | ||
dbname: str = Field("mydatabase", description="Name of the MongoDB database") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please set the name as mem0_db
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
updated!
mem0/vector_stores/mongodb.py
Outdated
|
||
from mem0.vector_stores.base import VectorStoreBase | ||
|
||
from mdb_toolkit import CustomMongoClient |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is this library needed here, why can't pymongo
be used directly?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
updated!
@Dev-Khant will add this soon! Sorry for delay |
Adding initial tests, updating use of get_embeddings Remove accidental formatting to unrelated files Fixing tests Fixing docs, adding comment Remove get_embeddings
Hi @Dev-Khant , this PR is ready for re-review when you get a second! |
Description
Add MongoDB as a VectorDB.
Fixes # (issue)
#1166
Type of change
Please delete options that are not relevant.
How Has This Been Tested?
There is working code that highlights how to use, and the output.
Please delete options that are not relevant.
Checklist:
Maintainer Checklist