Emotional RAG: AI now recall memories based on emotions, just like humans do.
π https://arxiv.org/abs/2410.23041
Original Problem π€:
Role-playing agents powered by LLMs struggle to maintain consistent personality traits and generate human-like responses due to limited emotional context in memory retrieval.
-----
Solution in this Paper π‘:
β’ Introduces Emotional RAG framework for role-playing agents
β’ Encodes both semantic and emotional vectors for queries and memory
β’ Implements two retrieval strategies:
- Combination: Fuses semantic and emotional similarity scores
- Sequential: Retrieves based on one factor, then reranks using the other
β’ Designs emotion-aware prompt templates for LLMs
-----
Key Insights from this Paper:
β Incorporating emotional states in memory retrieval enhances personality consistency
β Mood-Dependent Memory theory from psychology applies to AI agents
β Different retrieval strategies work best for different personality evaluation metrics
β Emotional congruence improves the human-likeness of generated responses
-----
Results π:
β’ Outperforms traditional RAG methods across multiple datasets
β’ Significant improvements in full personality evaluations (MBTI, BFI)
β’ Better performance on open-source models (ChatGLM-6B, Qwen-72B) compared to GPT-3.5
β’ Achieves higher accuracy in overall personality trait predictions










