Overview
The Personalized AI Companion leverages Mem0 to retain information across interactions, enabling a tailored learning experience. It creates memories for each user interaction and integrates with OpenAI’s GPT models to provide detailed and context-aware responses to user queries.Setup
Before you begin, follow these steps to set up the demo application:-
Clone the Mem0 repository:
-
Navigate to the demo application folder:
-
Install dependencies:
-
Set up environment variables by creating a
.env
file in the project root with the following content:You can obtain yourMEM0_API_KEY
by signing up at Mem0 API Dashboard. -
Start the development server:
Enhancing the Next.js Application
Once the demo is running, you can customize and enhance the Next.js application by modifying the components in themem0-demo
folder. Consider:
- Adding new memory features to improve contextual retention.
- Customizing the UI to better suit your application needs.
- Integrating additional APIs or third-party services to extend functionality.