-
Notifications
You must be signed in to change notification settings - Fork 3.5k
fix : mongodb vector store config #2991
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?
Conversation
"user": "my-user", | ||
"password": "my-password", | ||
"db_name": "mem0_db", | ||
"collection_name": "memories", |
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 keep collection name as mem0
provider: 'mongodb', | ||
config: { | ||
dbName: 'mem0_db', | ||
collectionName: 'memories', |
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.
Same here
|
||
> **Note**: `user` and `password` must either be provided together or omitted together. | ||
<Tabs> |
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.
Can you please add a screenshot on how this looks? Also we want to keep the table format consistent so if this alters the table then we want to keep older format. And then raise another PR for all table changes.
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.
this note from some contributor's implementation
"""Configuration for MongoDB vector database.""" | ||
|
||
db_name: str = Field("mem0_db", description="Name of the MongoDB database") | ||
collection_name: str = Field("mem0", description="Name of the MongoDB collection") | ||
embedding_model_dims: Optional[int] = Field(1536, description="Dimensions of the embedding vectors") | ||
user: Optional[str] = Field(None, description="MongoDB user for authentication") | ||
password: Optional[str] = Field(None, description="Password for the MongoDB user") |
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 are we removing user, password, host and port?
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.
that all params we could get from connection string , if we want to use that way than i'll put option for this
Description
fixes mongo config issue
Fixes #2980
Type of change
How Has This Been Tested?
Checklist: