Skip to content

feat: add recommendation feedback loop support#1678

Open
Avnithakur731-a wants to merge 1 commit into
leonagoel:mainfrom
Avnithakur731-a:feature/recommendation-feedback-loop
Open

feat: add recommendation feedback loop support#1678
Avnithakur731-a wants to merge 1 commit into
leonagoel:mainfrom
Avnithakur731-a:feature/recommendation-feedback-loop

Conversation

@Avnithakur731-a

@Avnithakur731-a Avnithakur731-a commented Jun 16, 2026

Copy link
Copy Markdown

Related Issue

Closes #1563

Why

This feature introduces a recommendation feedback loop so users can provide explicit feedback on recommended items. The collected feedback can be used for future personalization and recommendation improvements.

What Changed

Backend

  • Added backend/routers/feedback.py

  • Added POST /api/feedback

  • Added GET /api/feedback/user/{user_id}

  • Added GET /api/feedback/stats

  • Added feedback storage structure containing:

    • user_id
    • item_id
    • feedback_type
    • timestamp
  • Registered feedback router in backend/main.py

Frontend

  • Added feedback buttons on recommendation cards:

    • 👍 Like
    • 👎 Dislike
    • 🔖 Save
    • ⏭ Skip
  • Added event handling for feedback actions

  • Connected feedback actions with backend APIs

  • Added feedback interaction support in recommendation UI

How to Test

  1. Start the backend server.

  2. Open the recommendation interface.

  3. Generate recommendations.

  4. Click any feedback button (Like, Dislike, Save, Skip).

  5. Verify feedback is submitted successfully.

  6. Verify feedback can be retrieved using:

    • GET /api/feedback/user/{user_id}
  7. Verify statistics endpoint:

    • GET /api/feedback/stats

Notes

This PR implements feedback collection and retrieval functionality. The collected feedback serves as a foundation for future recommendation score optimization and personalization enhancements.

@github-actions

Copy link
Copy Markdown

🎉 Welcome to Hybrid Recommender, @Avnithakur731-a!

Thank you for your first pull request! Here's what happens next:

Step What Who
1 CI runs lint + smoke test 🤖 Automated
2 Code review 👤 @leonagoel
3 mentor:leonagoel label added 👤 Mentor
4 gssoc:approved label added 👤 Mentor
5 Auto-merge triggered 🤖 Automated
6 Points on leaderboard at 4 AM IST 🏆 GSSoC

⏱️ Please respond to any review comments within 48 hours.

📖 Resources:

Happy contributing! 🚀

@github-actions

Copy link
Copy Markdown

🎉 Welcome to Hybrid Recommender, @Avnithakur731-a! This is your first contribution here!

Labels added: gssoc:approved | mentor:leonagoel | status:review-needed

PR Description Checklist:

NO - What changed section
NO - Why section
NO - How to test section
YES - Related issue linked

⚠️ Some required sections are missing. Please update your PR description.

What happens next:

  1. @leonagoel will review your changes
  2. CI checks must pass
  3. Once approved, this PR will be auto-merged

⏱️ Please respond to review comments within 48 hours.

@github-actions github-actions Bot requested a review from leonagoel June 16, 2026 10:45
@Avnithakur731-a

Copy link
Copy Markdown
Author

Hi @leonagoel,

I have completed the implementation for this issue and submitted PR #1678.

The PR includes the feedback APIs, feedback statistics endpoint, router integration, and frontend feedback controls for Like, Dislike, Save, and Skip actions.

Could you please review the PR when you have time? I would appreciate your feedback and any suggestions for improvement.

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature]: Recommendation Feedback Loop for Continuous Model Improvement

1 participant