File size: 492 Bytes
e785be9
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18

from app.services.memory_service import memory_service

def reset_objects():
    print("🗑️ Deleting 'objects' collection...")
    try:
        memory_service.client.delete_collection("objects")
        print("✅ Deleted.")
    except Exception as e:
        print(f"⚠️ Error deleting: {e}")

    print("🆕 Recreating 'objects' collection with new config (1280d)...")
    memory_service._ensure_collections()
    print("✅ Done.")

if __name__ == "__main__":
    reset_objects()