Semantic search over your stored KV pairs using OpenAI embeddings + cosine similarity. Find relevant memories with natural language โ no exact key needed.
Search all your stored key-value pairs by semantic similarity. When you store a value via /memory/kv/set, an embedding is automatically generated. This endpoint embeds your query and ranks all stored values by cosine similarity โ returning the most relevant entries. Perfect for agent long-term memory, knowledge retrieval, and fuzzy lookups.
| Field | Type | Description |
|---|---|---|
query | string * | Natural language search query |
namespace | string | Namespace to search in (default: "default") |
limit | integer | Max results to return (default: 10, max: 100) |
$0.002 per search via x402 micropayment on Base (USDC).