Skip to main content

search_user_memory

Method
This is a method of the Memory class in the memory module.
If mem0 is used, pass user_id in. Otherwise fallback to local filter on user in metadata.

Signature

def search_user_memory(user_id: str, query: str, limit: int, rerank: bool) -> List[Dict[str, Any]]

Parameters

user_id
str
required
No description available.
query
str
required
No description available.
limit
int
default:"5"
No description available.
rerank
bool
default:"False"
No description available.

Returns

Returns
List[Dict[str, Any]]
The result of the operation.