Memory

Search sessions for the specified query.

POST
Search sessions for the specified query.

Query parameters

limitintegerOptional
The maximum number of search results to return. Defaults to None (no limit).

Request

This endpoint expects an object.
min_score
doubleOptional
mmr_lambda
doubleOptional
record_filter
map from strings to anyOptional
filter on the metadata
search_scope
enumOptional
Allowed values: messagessummaryfacts
search_type
enumOptional
Allowed values: similaritymmr
session_ids
list of stringsOptional
the session ids to search
text
stringOptional
user_id
stringOptional

Response

This endpoint returns an object
results
list of objectsOptional

Errors

POST
1curl -X POST https://api.getzep.com/api/v2/sessions/search \
2 -H "Authorization: Api-Key <apiKey>" \
3 -H "Content-Type: application/json" \
4 -d '{}'
1{
2 "results": [
3 {
4 "score": 1.1,
5 "session_id": "session_id"
6 }
7 ]
8}