docs: correct custom categories, per-call custom_categories is supported (#6218)

This commit is contained in:
Kartik
2026-07-10 20:08:32 +05:30
committed by GitHub
parent 49863e9a7a
commit 8488abe603
7 changed files with 199 additions and 42 deletions
@@ -588,9 +588,9 @@ mem0_client.project.update(
Exclude: greetings, filler, casual chat
""",
custom_categories=[
{"name": "goals", "description": "Training targets"},
{"name": "constraints", "description": "Injuries and limitations"},
{"name": "preferences", "description": "Training style"}
{"goals": "Training targets"},
{"constraints": "Injuries and limitations"},
{"preferences": "Training style"}
]
)
```
@@ -19,7 +19,7 @@ client = MemoryClient(api_key="your-api-key")
```
<Note>
Define custom categories at the **project level** with `client.project.update()` before adding memories. Categories apply to all future memories: Mem0 auto-assigns them based on content semantics.
Define custom categories at the **project level** with `client.project.update()` before adding memories. Categories apply to all future memories: Mem0 auto-assigns them based on content semantics. You can also pass `custom_categories` on a single `client.add()` call to override the project list for just those memories. See [Custom Categories](/platform/features/custom-categories).
</Note>
---
@@ -96,6 +96,10 @@ Start with 3-5 clear categories that match how your team thinks. Too many catego
These categories are now available project-wide. Every memory can be tagged with one or more categories.
<Tip>
Need a different vocabulary for one tenant or one kind of conversation? Pass `custom_categories=[...]` to `client.add()`. That list replaces the project list for the memories created by that call, and it does not change the project configuration.
</Tip>
---
## Tagging Memories