Skip to content

Commit

Permalink
updated custom categories docs (#2207)
Browse files Browse the repository at this point in the history
  • Loading branch information
prateekchhikara authored Feb 13, 2025
1 parent 2c63f4d commit 0bb6137
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion docs/features/advanced-retrieval.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ Here are the typical latency ranges for each search mode:

| **Mode** | **Latency** |
|---------------------|------------------|
| **Keyword Search** | **>10ms** |
| **Keyword Search** | **<10ms** |
| **Reranking** | **150-200ms** |
| **Filtering** | **200-300ms** |

Expand Down
8 changes: 4 additions & 4 deletions docs/features/custom-categories.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ new_categories = [
{"personal_information": "Basic information about the user including name, preferences, and personality traits"}
]

response = client.update_custom_instructions_and_categories({"custom_categories": new_categories})
response = client.update_project(custom_categories = new_categories)
print(response)
```

Expand All @@ -51,7 +51,7 @@ messages = [
]

# Add memories with custom categories
client.add(messages, user_id="alice"))
client.add(messages, user_id="alice")
```

```python Memories with categories
Expand Down Expand Up @@ -172,11 +172,11 @@ Name is Alice (personal_details)
```
</CodeGroup>

You can check whether default categories are being used by calling `get_custom_instructions_and_categories()`. If `custom_categories` returns `None`, it means the default categories are being used.
You can check whether default categories are being used by calling `get_project()`. If `custom_categories` returns `None`, it means the default categories are being used.

<CodeGroup>
```python Code
client.get_custom_instructions_and_categories(["custom_categories"])
client.get_project(["custom_categories"])
```

```json Output
Expand Down

0 comments on commit 0bb6137

Please sign in to comment.