Files
t6_mem0/test_basic.py
Docker Config Backup 41cd78207a Integrate self-hosted Supabase with mem0 system
- Configure mem0 to use self-hosted Supabase instead of Qdrant for vector storage
- Update docker-compose to connect containers to localai network
- Install vecs library for Supabase pgvector integration
- Create comprehensive test suite for Supabase + mem0 integration
- Update documentation to reflect Supabase configuration
- All containers now connected to shared localai network
- Successful vector storage and retrieval tests completed

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-07-31 06:57:10 +02:00

45 lines
1.2 KiB
Python

#!/usr/bin/env python3
"""
Basic mem0 functionality test
"""
import os
from mem0 import Memory
def test_basic_functionality():
"""Test basic mem0 functionality without API keys"""
try:
print("Testing mem0 basic initialization...")
# Test basic imports
from mem0 import Memory, MemoryClient
print("✅ mem0 main classes imported successfully")
# Check package version
import mem0
print(f"✅ mem0 version: {mem0.__version__}")
# Test configuration access
from mem0.configs.base import MemoryConfig
print("✅ Configuration system accessible")
# Test LLM providers
from mem0.llms.base import LLMBase
print("✅ LLM base class accessible")
# Test vector stores
from mem0.vector_stores.base import VectorStoreBase
print("✅ Vector store base class accessible")
return True
except Exception as e:
print(f"❌ Error: {e}")
return False
if __name__ == "__main__":
success = test_basic_functionality()
if success:
print("\n🎉 Basic mem0 functionality test passed!")
else:
print("\n💥 Basic test failed!")