π’ Announcing our research paper: Zentry achieves 26% higher accuracy than OpenAI Memory, 91% lower latency, and 90% token savings! Read the paper to learn how we're revolutionizing AI agent memory.
Overview
The Personalized AI Tutor leverages Zentry to retain information across interactions, enabling a tailored learning experience. By integrating with OpenAIβs GPT-4 model, the tutor can provide detailed and context-aware responses to user queries.Setup
Before you begin, ensure you have the required dependencies installed. You can install the necessary packages using pip:Full Code Example
Below is the complete code to create and interact with a Personalized AI Tutor using Zentry:Fetching Memories
You can fetch all the memories at any point in time using the following code:Key Points
- Initialization: The PersonalAITutor class is initialized with the necessary memory configuration and OpenAI client setup.
- Asking Questions: The ask method sends a question to the AI and stores the relevant information in memory.
- Retrieving Memories: The get_memories method fetches all stored memories associated with a user.