Interface RetrievalFeedback

A single retrieval feedback event for one memory trace.

signal:

  • 'used' — the LLM's response contained enough keywords from this trace to be considered referenced (matchRatio > 0.30).
  • 'ignored' — the LLM did not appear to use this trace in its response.

context carries the query or situational description that was active at feedback time. Stored in the query column of retrieval_feedback.

interface RetrievalFeedback {
    traceId: string;
    signal: "used" | "ignored";
    context?: string;
    timestamp: number;
}

Properties

traceId: string

The ID of the memory trace this feedback relates to.

signal: "used" | "ignored"

Whether the trace was referenced by the LLM response.

context?: string

Optional contextual string (e.g. the original user query).

timestamp: number

Unix ms timestamp when the feedback was recorded.