# Recall Memory

Retrieves structured memories for AI nodes.

Config:

Embeds the query with the workspace's embedding model, chosen in the Memory view, and considers only memories embedded with that same model. With none chosen, the node fails with `No embedding model configured`. A `model` field in an older saved config is ignored.

- `query`: recall query. Supports templates; default is `{{ input.text }}`.
- `namespaces`: the namespaces to search, required. `{"kind": "all"}` searches every namespace in the workspace, including ones created later; `{"kind": "only", "namespace_ids": ["01…"]}` searches the listed ones. An id whose namespace was deleted is skipped.
- `properties`: default filter
- `min_semantic_score`: minimum query/memory semantic match score. Default `0.3`; rejects unrelated memories.
- `min_current_relevancy`: minimum current memory relevancy after decay. Default `0.5`; rejects stale or low-signal memories.
- `max_context_chars`: context cap used for stats and downstream AI formatting

Memory recall uses two independent gates:

- `semantic_score`: query match from embedding search.
- `current_relevancy`: memory signal quality now, computed from `initial_relevancy` and `half_life_seconds`.

`initial_relevancy` is not search confidence. It is the memory's signal quality/usefulness when stored: direct observations and authoritative sources should be high, noisy sources or weak inferences lower. `half_life_seconds` controls durability: shorter for volatile knowledge, longer or omitted for stable knowledge.

Recall returns direct semantic hits only. Each hit carries up to 20 of its `links` plus `links_truncated`, as structural metadata; recall never follows a link or injects the linked memory's text. Follow a link with `memory_get` when the linked record is actually needed.

Superseded memories never appear in recall and there is no option to include them. When a newer memory supersedes an older one, only the newer memory can surface; if it does not match the query, neither does the pair. This is how a correction replaces an earlier memory instead of competing with it.

Input goes on canonical `input` only as template context.

- Default query expects `{ "text": "..." }` on `input`.
- Configure `query` directly for no-input recall.
- The ids in `namespaces` are namespace ULIDs. They are not templates and not names: a namespace is renamed freely, so nothing resolves one by name.

Output:

- `output`: memory item array, e.g. `[{ "title": "...", "text": "...", "semantic_score": 0.74, "current_relevancy": 0.9, ... }]`. Every item carries the memory's `title`.
- `stats`: recall diagnostics, e.g. `{ "query_chunks": 2, "candidates": 8, "returned": 3, "context_chars": 1200 }`

Wire `memory_recall.output` into the AI Agent or AI Conversation `memory` socket. The AI nodes format the structural memories into runtime prompt context. Use `memory` for raw CRUD.
