Commit 0d07d10b authored by Timothy J. Baek's avatar Timothy J. Baek
Browse files

fix

parent bbdfcd18
...@@ -120,6 +120,7 @@ async def delete_memory_by_id(memory_id: str, user=Depends(get_verified_user)): ...@@ -120,6 +120,7 @@ async def delete_memory_by_id(memory_id: str, user=Depends(get_verified_user)):
collection = CHROMA_CLIENT.get_or_create_collection( collection = CHROMA_CLIENT.get_or_create_collection(
name=f"user-memory-{user.id}" name=f"user-memory-{user.id}"
) )
collection.delete_document(memory_id) collection.delete(ids=[memory_id])
return True return True
return False return False
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment