How it works
The feedback mechanism is a simple API that allows you to provide feedback on the memories generated by your application. The feedback is stored in the database and is used to improve the accuracy of the memories and the search results. Over time, Mem0 continuously learns from this feedback, refining its memory generation and search capabilities for better performance.Give Feedback
You can give feedback on a memory by calling thefeedback
method on the Mem0 client.
Feedback Types
Thefeedback
parameter can be one of the following values:
POSITIVE
: The memory is useful.NEGATIVE
: The memory is not useful.VERY_NEGATIVE
: The memory is not useful at all.
Parameters
Thefeedback
method accepts these parameters:
Parameter | Type | Required | Description |
---|---|---|---|
memory_id | string | Yes | The ID of the memory to give feedback on |
feedback | string | No | Type of feedback: POSITIVE , NEGATIVE , or VERY_NEGATIVE |
feedback_reason | string | No | Optional explanation for the feedback |
Pass
None
or null
to the feedback
and feedback_reason
parameters to remove existing feedback for a memory.Bulk Feedback Operations
For applications with high volumes of feedback, you can provide feedback on multiple memories at once:Best Practices
When to Provide Feedback
- Immediately after memory retrieval when you can assess relevance
- During user interactions when users explicitly indicate satisfaction/dissatisfaction
- Through automated evaluation using your application’s success metrics
Effective Feedback Reasons
Provide specific, actionable feedback reasons: ✅ Good examples:- “Contains outdated contact information”
- “Accurately captured the user’s dietary restrictions”
- “Irrelevant to the current conversation context”
- “Bad memory”
- “Wrong”
- “Not good”
Feedback Strategy
- Be consistent - Apply the same criteria across similar memories
- Be specific - Detailed reasons help improve the system faster
- Monitor patterns - Regular feedback analysis helps identify improvement areas
Error Handling
Handle potential errors when submitting feedback:Feedback Analytics
Track the impact of your feedback by monitoring memory performance over time. Consider implementing:- Feedback completion rates - What percentage of memories receive feedback
- Feedback distribution - Balance of positive vs. negative feedback
- Memory quality trends - How accuracy improves with feedback volume
- User satisfaction metrics - Correlation between feedback and user experience