Memory Manager for AI Chatbot

Designed memory‑based personalization (episodic + semantic) over MongoDB; improved continuity and engagement.

AIChatbotMongoDBPersonalization

◉ A memory management service to allow an AI chatbot to remember conversations or user preferences.

◉ This system automatically extracts, scores, and manages meaningful informationfrom conversations, creating a persistent memory system.


Features

  • Automatic memory extraction from conversations.
  • AI-powered scoring and decision making.
  • Human oversight for uncertain memories.
  • MongoDB storage.
  • Real-time processing via REST API.
  • Admin interface for memory review.

Architecture & Design

  • High-Level Architecture

High-Level Architecture


Workflow

# 1. Clone/Download the Project
# Navigate to your desired directory
cd /path/to/your/project

# 2. Install Python Dependencies
# Install all required packages
pip install -r requirements.txt

# 3. Start MongoDB
# On macOS/Linux:
mongod

# On Windows:
"C:\Program Files\MongoDB\Server\8.0\bin\mongod.exe"

# 4. Create Environment Configuration
# Run the startup script (creates .env file)
python run_service.py

# 5. Verify Installation
# Test if the service can start
python test_service.py

# If successful, start the main service
python run_service.py

# 6. Start Admin Interface (Optional)
# In a new terminal
streamlit run admin_ui.py