Enable continuous learning and automatic optimization in Cognee’s knowledge graphs through user feedback and self-improving mechanisms
User Feedback Collection
Sentiment Analysis
Graph Weight Updates
Improved Future Results
Sentiment Analysis
Graph Weight Updates
used_graph_element_to_answer
relationshipsfeedback_weight
property on relationshipsfeedback_weight
in relationship properties JSONContinuous Learning
Basic Setup
Feedback Parameters
query_text
: The feedback text from the userquery_type
: Must be SearchType.FEEDBACK
last_k
: Number of recent interactions to apply feedback to (default: 1)user
: User context for permission handlingsave_interaction
: Whether to save the feedback interactionEnable Interaction Saving
save_interaction=True
for searches you plan to collect feedback on.Encourage Specific Feedback
Regular Feedback Collection
Monitor Feedback Patterns
Feedback Not Working
Performance Issues