memory

Recall

Search memories with Hybrid Search.

Issue #1 specification:

  • Semantic Search (OpenAI Embedding) 60%
  • BM25/Full-text (Qdrant) 40%
  • Cohere Reranking (optional)

filters.context_id names the context to search. It is resolved for the caller first — workspace membership, suspension, the context whitelist, private-context ownership and the API key's workspace scope — with the uniform 404 on any deny, the gate every other UUID-addressed read (/memory/list, /memory/stats, graph, the MCP recall tool) applies. The search then runs against the context's own workspace.

Request: { "query": "認証エラーの解決方法", "k": 5, "use_rerank": false, "filters": { "context_id": "<context-uuid>", "scope": "persistent", "type": "code" } }

Example: POST /api/v1/memory/recall Authorization: Bearer <session_token>

post/api/v1/memory/recall

Request

  • Base URL: https://memory.kagura-ai.com (the document declares no server; this is the origin it was published from)
  • URL: https://memory.kagura-ai.com/api/v1/memory/recall
  • Auth: none declared

Headers

authorizationstring nullable

Request body

querystring required

検索クエリ

kinteger

返却結果数

use_rerankboolean nullable

Reranking (Voyage/Cohere BYOK, or self_hosted). Omit to follow the context's search config; set false to force off.

filtersobject nullable

オプショナルフィルタ

search_modestring nullable

Search mode: hybrid (default when omitted), semantic (vector only), keyword (BM25 only). Omit to allow query-intent routing on contexts with routing_mode='active' (#1212).

include_explore_hintsboolean

Include up to 3 explore_hints in response suggesting good seeds for explore()

include_supersededboolean

Include memories shadowed by a supersedes edge (annotated with superseded_by) and return folded older versions as their own rows

fullinteger nullable

How many of the top results carry content, each cut at 1,500 characters (content_truncated / content_next_offset when cut). Omit or 0 for summaries only.

Response

Successful Response

tag_suggestionsobject nullable

Tags present in this context that resemble the ones filtered on, keyed by the requested tag. Present only when a tag filter matched no memories. Advisory: the filter itself was not widened.

degradedboolean nullable

True when this result set was produced without the semantic search arm. Absent when the search ran normally.

degraded_reasonstring nullable

Why the search degraded: 'embedding_unavailable' (the embedding provider failed) or 'vector_search_unavailable' (the vector store failed). Absent when the search ran normally.

Changes

No recorded changes to this operation across all 1 revision of this API.