Skip to content
docsGitHub ↗
Documentation

Search the docs

Loading search…

    On this page

    Feedback and relevance#

    A memory can be correct but irrelevant to this task. Feedback teaches Ormah about that context, helping useful memories surface and unhelpful ones stay quiet.

    Send a signal for the event you saw#

    Use submit_feedback with the memory's node_id, signal 1 or -1, and the supplied whisper_log_id whenever present.

    {
      "node_id": "REPLACE_WITH_NODE_ID",
      "whisper_log_id": 123,
      "signal": 1,
      "source": "implicit"
    }
    

    This is an illustrative tool-argument object. Replace both IDs with values from the actual surfaced result. whisper_log_id is an event identifier, not the node ID or a reusable constant.

    • source="explicit": the user actually judged relevance.
    • source="implicit": the agent actively inferred usefulness or irrelevance from the conversation.
    • Omit the event ID only for older output that lacks it; the legacy fallback selects the latest matching event and may not be the event you meant.

    A mismatched or missing event does not become valid merely because a tool returned text. Read the actual result/error. See the HTTP feedback contract.

    Don't turn silence into a vote#

    Give negative feedback when you actively determine a surfaced memory is irrelevant. Do not submit it just because the agent didn't mention the memory or because no memory was surfaced.

    Likewise, a memory appearing in a prompt isn't proof it was used. Event-aware confirmed-use accounting, feedback and transcript-derived evidence are related but distinct. Repeating feedback should not repeatedly strengthen the same memory as if each submission were independent use.

    Where signals come from#

    submit_feedback is not the only learning path. Supported transcript watching can derive usage signals and affinity from eligible assistant turns. An optional LLM feedback judge adds another path; feedback_llm_judge_enabled is false by default and needs an available provider.

    Diagnostics include injected and rejected candidates and outcomes. On newer runtimes, the candidate trace records earlier rejection stages as well, so log membership alone does not establish injection. Event IDs allow a signal to target an exact candidate/event rather than whichever interaction happened most recently.

    How affinity affects retrieval#

    Affinity records contextual associations between a prompt and a memory. Similar future prompts can receive a bounded positive or negative adjustment, decaying with age. Defaults include a 30-day affinity half-life and maximum boost of 0.15; these are policy knobs, not retrieval-accuracy claims.

    Newer runtimes: standing-preference applicability incorporates contextual affinity. A negative signal can suppress a previously applicable preference; a positive one can affect which limited preference slots are filled. An older installed runtime's preference path is not identical.

    For broader ranking and lifecycle behavior, see Search and ranking and Self-healing memory.