docs(cookbooks): fix v3 filters, response shapes & dead snippet in cookbooks (#5841)

This commit is contained in:
Kartik
2026-06-27 18:55:08 +05:30
committed by GitHub
parent e9c930c430
commit b44ce4dcc3
7 changed files with 17 additions and 45 deletions
@@ -50,7 +50,7 @@ load_dotenv()
USER_ID = "Alex"
# Initialize Mem0 client
mem0 = MemoryClient()
mem0_client = MemoryClient()
```
## Define Memory Tools
@@ -76,7 +76,7 @@ def retrieve_patient_info(query: str) -> dict:
# Search Mem0
results = mem0_client.search(
query,
user_id=USER_ID,
filters={"user_id": USER_ID},
top_k=5,
threshold=0.7 # Higher threshold for more relevant results
)