Files
t6_mem0/cleanup_wrong_dimensions.py
Docker Config Backup 7e3ba093c4 PHASE 1 COMPLETE: mem0 + Supabase integration tested and working
 PHASE 1 ACHIEVEMENTS:
- Successfully migrated from Qdrant to self-hosted Supabase
- Fixed mem0 Supabase integration collection naming issues
- Resolved vector dimension mismatches (1536→768 for Ollama)
- All containers connected to localai docker network
- Comprehensive documentation updates completed

 TESTING COMPLETED:
- Database storage verification: Data properly stored in PostgreSQL
- Vector operations: 768-dimensional embeddings working perfectly
- Memory operations: Add, search, retrieve, delete all functional
- Multi-user support: User isolation verified
- LLM integration: Ollama qwen2.5:7b + nomic-embed-text operational
- Search functionality: Semantic search with relevance scores working

 INFRASTRUCTURE READY:
- Supabase PostgreSQL with pgvector:  OPERATIONAL
- Neo4j graph database:  READY (for Phase 2)
- Ollama LLM + embeddings:  WORKING
- mem0 v0.1.115:  FULLY FUNCTIONAL

PHASE 2 READY: Core memory system and API development can begin

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-07-31 13:40:31 +02:00

27 lines
839 B
Python

#!/usr/bin/env python3
"""
Clean up collection with wrong dimensions
"""
import vecs
def cleanup_wrong_dimensions():
"""Clean up the collection with wrong dimensions"""
print("🧹 Cleaning up collection with wrong dimensions...")
connection_string = "postgresql://supabase_admin:CzkaYmRvc26Y@localhost:5435/postgres"
db = vecs.create_client(connection_string)
try:
# Delete the collection with wrong dimensions
db.delete_collection("mem0_working_test")
print("✅ Deleted mem0_working_test collection")
except Exception as e:
print(f"⚠️ Could not delete collection: {e}")
# Verify cleanup
collections = db.list_collections()
print(f"Remaining collections: {[c.name for c in collections]}")
if __name__ == "__main__":
cleanup_wrong_dimensions()