From 2b14b93e2b12a543e276c28ed21d59daf1e2362d Mon Sep 17 00:00:00 2001 From: Dev-Khant Date: Tue, 23 Jul 2024 14:32:01 +0530 Subject: [PATCH] Update readme --- README.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index c3d38b59ed..a81afba9a1 100644 --- a/README.md +++ b/README.md @@ -50,6 +50,7 @@ print(result) # Retrieve memories all_memories = m.get_all() +memory_id = all_memories[0]["id"] # get a memory_id print(all_memories) # Search memories @@ -57,11 +58,11 @@ related_memories = m.search(query="What are Alice's hobbies?", user_id="alice") print(related_memories) # Update a memory -result = m.update(memory_id="m1", data="Likes to play tennis on weekends") +result = m.update(memory_id=memory_id, data="Likes to play tennis on weekends") print(result) # Get memory history -history = m.history(memory_id="m1") +history = m.history(memory_id=memory_id) print(history) ```