get_all returns dictionary (#1756)

This commit is contained in:
Pranav Puranik
2024-08-27 05:56:54 -05:00
committed by GitHub
parent c8a47b2f98
commit e8004537c1

View File

@@ -134,7 +134,7 @@ related_memories = m.search(query="What are Alice's hobbies?", user_id="alice")
```python
# 4. Get all memories
all_memories = m.get_all()
memory_id = all_memories[0]["id"] # get a memory_id
memory_id = all_memories["memories"][0] ["id"] # get a memory_id
# All memory items --> 'Likes to play tennis on weekends.' and 'Looking for online suggestions.'
```