Skip to main content

Search memories

Query a namespace by meaning. Results are ranked by similarity to the query (embedding similarity). You can optionally filter by metadata.

SDK

Parameters

With metadata filter

REST API

POST /v1/memory/search Headers: Authorization: Bearer key_...
Body:
Response:
score is a similarity score (e.g. 0–1); higher means more relevant.

Use cases

  • RAG: Search for relevant docs or past Q&A, then inject into the prompt.
  • User context: Store and search user preferences or history.
  • Codebase context: Write summaries or snippets, search when answering questions.
Next: Context to get a single context string for LLM prompts.