Skip to content
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

feat: mongo-db adaptor #1427

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open

feat: mongo-db adaptor #1427

wants to merge 1 commit into from

Conversation

jobyid
Copy link

@jobyid jobyid commented Dec 24, 2024

Added an adaptor which connects to mongo db atlas. Allowing you to store agent data in the cloud. If you have the appropriate tier you can also take advantage of their vector search functionality.
It should have all the same functionality as the other database adaptors.

Relates to:

Adding the option of using MongoDB in the cloud to store you agents data

Risks

Low, adds additional options for database usage

Background

What does this PR do?

Adds the option to store your agents data in MongoDB Atlas, and take advantage of their vector search. I have also updated the .env.example to include the additional variables for the mongo connection. And added to the agent index with functionality to initialise this database if required.

What kind of change is this?

Adding an additional feature

Why are we doing this? Any context or related work?

In my day job we exclusively use mongoDB for our database needs, for commercials and performance reasons. As we want to develop AI Agents, we need to have the mongoDB adaptor. IN the sprit of OpenSource I wanted to make sure it was available for the whole community to use as well.

Documentation changes needed?

A small additional input to the documentation is required to make users aware of the additional functionality and how it can be actioned.
Similar to the Postgres set up just adding in the appropriate connection string to the .env file will action he change to start using MongoDB as the database.

Testing

Where should a reviewer start?

The reviewer will need to have a least a free account with mongoDB atlas, then add the connection string and a Database name to the .env file. After that the agent should run as expected, saving memories as before. The reviewer can verify the saved data inside the MongoDB interface.

Detailed testing steps

  1. Create MongoDB atlas account
  2. Add connection string and Database name to .env file
  3. Run agent
  4. Verify inside MongoDB interface that the collections have formed and data is being stored

Added an adaptor which connects to mongo db atlas. Allowing you to store agent data in the cloud.
If you have the appropriate tier you can also take advantage of their vector search functionaility.
@odilitime odilitime changed the base branch from main to develop December 25, 2024 00:25
@odilitime odilitime changed the title mongo-db adaptor feat: mongo-db adaptor Dec 25, 2024
@odilitime odilitime added Plugin_new Mark PRs that are a new plugin Needs Testing labels Dec 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Needs Testing Plugin_new Mark PRs that are a new plugin
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants