[docs] API References and search Doc fix (#3712)

This commit is contained in:
Parth Sharma
2025-11-05 03:23:37 +05:30
committed by GitHub
parent 978babd3db
commit 76abd5117d
4 changed files with 66 additions and 35 deletions
+2 -2
View File
@@ -16,7 +16,7 @@ The v2 get memories API is powerful and flexible, allowing for more precise memo
<CodeGroup>
```python Code
memories = m.get_all(
memories = client.get_all(
filters={
"AND": [
{
@@ -58,7 +58,7 @@ To retrieve graph memory relationships between entities, pass `output_format="v1
<CodeGroup>
```python Code
memories = m.get_all(
memories = client.get_all(
filters={
"user_id": "alex"
},
@@ -14,8 +14,8 @@ The v2 search API is powerful and flexible, allowing for more precise memory ret
- `*`: Wildcard character that matches everything
<CodeGroup>
```python Code
related_memories = m.search(
```python Platform API Example
related_memories = client.search(
query="What are Alice's hobbies?",
filters={
"OR": [
@@ -53,7 +53,7 @@ related_memories = m.search(
<CodeGroup>
```python Wildcard Example
# Using wildcard to match all run_ids for a specific user
all_memories = m.search(
all_memories = client.search(
query="What are Alice's hobbies?",
filters={
"AND": [
@@ -72,7 +72,7 @@ all_memories = m.search(
<CodeGroup>
```python Categories Filter Examples
# Example 1: Using 'contains' for partial matching
finance_memories = m.search(
finance_memories = client.search(
query="What are my financial goals?",
filters={
"AND": [
@@ -87,7 +87,7 @@ finance_memories = m.search(
)
# Example 2: Using 'in' for exact matching
personal_memories = m.search(
personal_memories = client.search(
query="What personal information do you have?",
filters={
"AND": [