A collection of advanced AI applications demonstrating persistent memory capabilities using OpenAI GPT models, Mem0 memory framework, and Qdrant vector database. These applications showcase how to build intelligent, memory-powered AI systems that remember user interactions across sessions.
Location: gradio-peptides-app/
A specialized AI health coach focused on peptide therapy education and guidance, featuring:
- Memory-Powered Conversations: Remembers health profiles and chat history using Mem0 + Qdrant
- Optional Health Profiles: Start chatting immediately or complete profile for personalized advice
- Persistent Storage: Health data saved across sessions - no need to refill forms
- 3 Demo Users: John (beginner), Jane (experienced), Jarvis (gut health focus)
- Safety-First: Emphasizes medical supervision and evidence-based information
Tech Stack: Gradio + OpenAI GPT-4o-mini + Mem0 + Qdrant + Pydantic V2
Location: gradio-ai-tutor/
An educational AI tutor that teaches healthcare professionals effective prompt engineering for medical AI applications:
- Progressive Learning: Builds on previous conversations and learning progress
- Healthcare Domain Focus: Specialized in health AI prompt engineering best practices
- User Isolation: Complete separation of learning sessions between users
- Simple Interface: Clean, reliable Gradio UI for easy learning
Tech Stack: Gradio + OpenAI GPT-4o-mini + Mem0 + Qdrant + Pydantic
- Mem0: Advanced memory management framework for AI applications
- Qdrant: High-performance vector database for semantic search and memory storage
- OpenAI GPT-4o-mini: Fast, intelligent language model for conversations
- Persistent Memory: User interactions and profiles saved across sessions
- Frontend: Gradio for rapid web UI development
- Data Validation: Pydantic V2 for robust data modeling
- Package Management: UV for fast Python dependency management
- Testing: Pytest with Allure reporting
- Python 3.8+
- OpenAI API key
- Qdrant vector database (local or cloud)
# Clone the repository
git clone <repository-url>
cd mem01-ai-tutor
# Create virtual environment
uv venv
source .venv/bin/activate # On Unix/macOS
# .venv\Scripts\activate # On Windows
# Install dependencies
uv pip install -r requirements.txtCreate a .env file in the project root:
# Required
OPENAI_API_KEY=your_openai_api_key_here
# Optional (defaults provided)
QDRANT_URL=http://localhost:6333
QDRANT_USE_HTTPS=falseOption A: Local Qdrant (Development)
# Using Docker (recommended)
docker run -p 6333:6333 qdrant/qdrant
# Using pip
pip install qdrant-clientOption B: Qdrant Cloud (Production)
- Sign up for Qdrant Cloud
- Create a cluster and get your URL
- Update
.envwith your cloud URL and setQDRANT_USE_HTTPS=true
Health Coach AI (Peptide Therapy):
cd gradio-peptides-app
./run.sh
# Access: http://localhost:7861AI Prompt Engineering Tutor:
cd gradio-ai-tutor
./run.sh
# Access: http://localhost:7860mem01-ai-tutor/
βββ π gradio-peptides-app/ # Health Coach AI for peptide therapy
β βββ app.py # Main Gradio application (31KB)
β βββ README.md # Detailed documentation
β βββ run.sh # Launch script
β βββ test_gradio_peptides.py # Application tests
βββ π gradio-ai-tutor/ # AI Prompt Engineering Tutor
β βββ app.py # Main Gradio application (15KB)
β βββ README.md # Detailed documentation
β βββ run.sh # Launch script
βββ π tests/ # Comprehensive test suite
βββ π docs/ # Project documentation
βββ π scripts/ # Utility scripts
βββ π§ requirements.txt # Python dependencies
βββ π§ requirements.in # Dependency definitions
βββ π§ .env.example # Environment template
βββ π README.md # This file
- Persistent Conversations: Chat history saved across sessions
- User Isolation: Complete data separation between users
- Context-Aware Responses: AI remembers previous interactions
- Profile Storage: User data persisted in vector database
- Domain Specialization: Applications focused on specific use cases
- Safety-First Design: Responsible AI with appropriate disclaimers
- Adaptive Responses: Different advice based on user profiles/progress
- Evidence-Based: Grounded in factual information
- Scalable Database: Qdrant vector storage for large-scale deployment
- Modern UI: Gradio for rapid, responsive web interfaces
- Robust Validation: Pydantic models for data integrity
- Comprehensive Testing: Full test coverage with detailed reporting
# Run all tests with Allure reporting
pytest --alluredir=allure-results -v
# Generate and serve test report
allure serve allure-results# Test Health Coach AI
pytest gradio-peptides-app/test_gradio_peptides.py -v
# Test AI Tutor (manual)
python gradio-ai-tutor/app.pyEach application includes comprehensive tests to verify:
- User data separation
- Memory persistence across sessions
- Proper conversation history management
- Profile storage and retrieval
Both applications include run scripts for immediate local deployment:
./run.sh # In each application directoryThe repository includes configurations for:
- Railway:
railway.json,Dockerfile.railway - Render:
render.yaml, deployment scripts - Docker: Multi-stage Dockerfiles for production
- Prompt Engineering Training: Learn effective healthcare AI prompting
- Patient Education: Specialized health coaching applications
- Medical AI Safety: Best practices for responsible health AI
- Persistent Conversations: Building AI that remembers users
- Profile Management: Storing and retrieving user preferences
- Context-Aware Responses: Intelligent, personalized interactions
- Rapid Prototyping: Fast UI development for AI applications
- User Authentication: Simple user identification systems
- Data Validation: Robust input handling with Pydantic
The Health Coach AI application is for educational purposes only. Peptides like BPC-157 are not FDA-approved for human use. Always consult qualified healthcare professionals before starting any therapy.
These applications use OpenAI's API which incurs costs. Monitor your usage and set appropriate limits.
- User conversations are stored in your Qdrant database
- No data is shared between users
- Consider data retention policies for production use
Contributions are welcome! Areas of interest:
- Additional AI application examples
- Enhanced memory management patterns
- New deployment configurations
- Improved testing coverage
- Documentation improvements
- Fork the repository
- Create a feature branch (
git checkout -b feature/amazing-feature) - Make your changes with tests
- Commit your changes (
git commit -m 'Add amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.
π Ready to build memory-powered AI applications? Start with either the Health Coach AI or AI Tutor, and explore how Mem0 + Qdrant create intelligent, persistent AI experiences!
