Memory
Recall facts by meaning
Changed onEmbed the query and return the closest facts in the scope, ranked by cosine similarity.
Scope goes in the body, like POST /v1/memory: scope plus the matching id.
Without minScore, a scope always answers with its limit closest facts however distant they are — a search that found nothing relevant is indistinguishable from one that found the right thing. Set minScore when your code branches on "did I know this?".
post/v1/memory/search
Request
- Base URLhttps://api.zavu.dev
- URLhttps://api.zavu.dev/v1/memory/search
- AuthHTTP bearer
Request body
Example request
{
"query": "when is a good time to reach them"
}Response
Matching facts, closest first. An empty items means nothing cleared minScore.
Example response
{
"items": [
{
"score": 0.83
}
]
}Changes
- info
removed the non-success response with the status
- info
- info
endpoint added
- info