masthishq / scripts /reset_objects.py
Krishnakkp's picture
Initial commit
e785be9
Raw
History Blame Contribute Delete
492 Bytes
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()