-
Notifications
You must be signed in to change notification settings - Fork 5k
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
Add Mem0 as AI SDK Provider #3927
base: main
Are you sure you want to change the base?
Conversation
How to use the Graphite Merge QueueAdd either label to this PR to merge it via the merge queue:
You must have a Graphite account in order to use the merge queue. Sign up using this link. An organization admin has enabled the Graphite Merge Queue in this repository. Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue. |
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
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.
Hi @whysosaket! Welcome to the elizaOS community. Thanks for submitting your first pull request; your efforts are helping us accelerate towards AGI. We'll review it shortly. You are now an elizaOS contributor!
Hi @martincik @maxime can you please review this? |
Relates to
N/A
Risks
Medium
Background
What does this PR do?
Here's a more polished version of your PR description:
What does this PR do?
This PR adds Mem0 as a provider in the Vercel AI SDK. The Mem0 AI SDK Provider functions like any other provider in the AI SDK but introduces a separate memory layer for users.
Mem0 is a self-improving memory layer for LLM applications.
Integration Features:
What kind of change is this?
Features (non-breaking change which adds functionality)
Why are we doing this? Any context or related work?
Integrating Mem0 into Eliza provides developers with a powerful memory layer for their AI applications, enhancing efficiency and user experience. As an independent memory layer, Mem0 also enables users to retain memory across different agents and conversations.
Vercel AI SDK Docs: Mem0 Provider
Mem0 Official Docs For AI SDK: Vercel AI SDK Integration
Mem0 GitHub Repository: mem0ai/mem0
Although this PR provides a basic Mem0 implementation focused on user memory, we also plan to develop another integration that emphasizes agentic memory, allowing characters to persist across different agents and their memories.
Documentation changes needed?
My changes do not require a change to the project documentation.
Testing
I tested the integration by running a character using 'mem0' as modelProvider
Where should a reviewer start?
Reviewers can begin by examining the changed files in this PR:
modelProvider
.Detailed testing steps
Set up a character configuration with the following:
Configure the Mem0 API keys by adding the following environment variables:
Mem0 Configuration
Rebuild Eliza, initialize it, and run the application.
Discord username
whysosaket