DEV Community

Oviya Sounder raj
Oviya Sounder raj

Posted on

Fixing recommendation loops with Hindsight memory.

“Why is it recommending the same role again?” I stared at the logs as our agent kept repeating the same suggestions, completely ignoring user feedback. That’s when I realized the real problem wasn’t the model—it was memory, and fixing it with Hindsight changed everything.

🚀 Introduction

In today’s rapidly evolving job market, students often struggle to choose the right career path and secure relevant internships. Most existing platforms provide generic recommendations that do not adapt to individual preferences or improve over time. This lack of personalization leads to confusion and inefficient decision-making.

To address this challenge, we developed an AI-powered internship and career advisor that continuously learns and improves using hindsight learning. Our system adapts based on user feedback, making recommendations smarter and more personalized with every interaction.


🚨 Problem Statement

Traditional career guidance systems fail to learn from user interactions. They repeatedly provide static suggestions without considering user feedback, preferences, or past mistakes. This results in poor personalization and reduced effectiveness.


💡 Proposed Solution

We propose an intelligent AI-based system that provides personalized internship and career recommendations. The system allows users to give feedback (like/dislike), and based on this, the AI improves its future suggestions.

Using hindsight learning, the system learns from past mistakes and continuously adapts to user preferences.

🤖 System Architecture

The system consists of:

  • User Interface for input (skills, interests)
  • AI Agent for generating recommendations
  • Feedback Module (like/dislike system)
  • Memory System to store past interactions
  • Vector Database for efficient retrieval

Flow:
User Input → AI Recommendation → Feedback → Memory → Improved Recommendation


🧠 Hindsight Learning Mechanism

The key feature of our system is hindsight learning.

When a user rejects a recommendation, the system stores it as a negative signal. For example, if a user dislikes a “Data Science Internship,” the system avoids suggesting similar roles in the future.

This helps the AI learn from mistakes and provide better, more personalized recommendations over time.


🛠️ Tech Stack

  • Frontend: HTML, CSS, JavaScript
  • Backend: Python (Flask/FastAPI)
  • AI Model: Large Language Model (LLM)
  • Memory: Vector Database (FAISS / Vectorize)


⚙️ Implementation

The system was developed through the following steps:

  1. Created a user interface for input collection
  2. Integrated AI model for recommendations
  3. Implemented feedback mechanism
  4. Stored user preferences in memory
  5. Improved future outputs using hindsight learning

📊 Results

The system successfully generated personalized career recommendations and improved over time based on user feedback. It avoided repeating past mistakes and provided more relevant suggestions.


🌍 Applications

  • Career guidance platforms
  • Educational tools
  • Placement systems

🚀 Future Scope

  • Resume analysis
  • LinkedIn integration
  • Voice assistant
  • Skill gap analysis

🏁 Conclusion

This project demonstrates how AI systems can evolve using hindsight learning. By learning from user feedback, the system becomes more accurate, adaptive, and personalized, making it highly useful for real-world applications.

Top comments (0)