Skip to main content

Description

memory_feedback records whether a retrieved memory was useful, irrelevant, outdated, or wrong. This feedback directly affects search ranking - memories marked “wrong” are heavily penalized (0.3x score), “outdated” moderately (0.5x), while “helpful” gets a small boost (1.1x). Feedback does not edit memory content. If the memory is wrong or outdated and you know the corrected fact, call update_memory with the corrected content after recording feedback.

Parameters

ParameterTypeRequiredDescription
memoryIdstringYesThe memory ID to rate. Use the id returned by search_memory.
typestringYesFeedback type. One of the values below.
contextstringNoOptional explanation of why this feedback is being submitted. Max 1,000 characters.

Feedback types

TypeWhen to use
helpfulThe memory was relevant and useful in the current context
not_helpfulThe memory was irrelevant to the current query
outdatedThe memory contains stale information that is no longer true
wrongThe memory contains incorrect information

Example

memory_feedback({
  memoryId: "a1b2c3d4-...",
  type: "outdated",
  context: "User switched from Redux to Zustand last week"
})

Response

Returns { success: true } on success, or a 404 error if the memory was not found.