Interface: RetrievalFeedback
Defined in: packages/agentos/src/memory/feedback/RetrievalFeedbackSignal.ts:55
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.
Properties
context?
optionalcontext:string
Defined in: packages/agentos/src/memory/feedback/RetrievalFeedbackSignal.ts:61
Optional contextual string (e.g. the original user query).
signal
signal:
"used"|"ignored"
Defined in: packages/agentos/src/memory/feedback/RetrievalFeedbackSignal.ts:59
Whether the trace was referenced by the LLM response.
timestamp
timestamp:
number
Defined in: packages/agentos/src/memory/feedback/RetrievalFeedbackSignal.ts:63
Unix ms timestamp when the feedback was recorded.
traceId
traceId:
string
Defined in: packages/agentos/src/memory/feedback/RetrievalFeedbackSignal.ts:57
The ID of the memory trace this feedback relates to.