You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: memory/introduction.mdx
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -198,15 +198,15 @@ for i, m in enumerate(memories):
198
198
print(f"{i}: {m.memory}")
199
199
```
200
200
201
-
### Semantic Search
201
+
### Agentic Search
202
202
203
-
Semantic search allows you to find memories based on meaning rather than exact keyword matches. This is particularly useful for retrieving contextually relevant information:
203
+
Agentic search allows you to find memories based on meaning rather than exact keyword matches. This is particularly useful for retrieving contextually relevant information:
204
204
205
205
```python
206
206
from agno.memory.v2.memory import Memory, UserMemory
207
207
from agno.models.google.gemini import Gemini
208
208
209
-
# Initialize memory with a model for semantic search
209
+
# Initialize memory with a model for agentic search
# Search for memories semantically related to the query
225
+
# Search for memories related to the query
226
226
memories = memory.search_user_memories(
227
227
user_id=john_doe_id,
228
228
query="What does the user like to do on weekends?",
229
-
retrieval_method="semantic",
229
+
retrieval_method="agentic",
230
230
)
231
231
print("John Doe's found memories:")
232
232
for i, m inenumerate(memories):
233
233
print(f"{i}: {m.memory}")
234
234
```
235
235
236
-
With semantic search, the model understands the intent behind your query and returns the most relevant memories, even if they don't contain the exact keywords from your search.
236
+
With agentic search, the model understands the intent behind your query and returns the most relevant memories, even if they don't contain the exact keywords from your search.
0 commit comments