Skip to main navigation Skip to search Skip to main content

Improving RAG for Personalization with Author Features and Contrastive Examples

Research output: Chapter in Book/Report/Conference proceedingChapterAcademicpeer-review

Abstract

Personalization with retrieval-augmented generation (RAG) often fails to capture fine-grained features of authors, making it hard to identify their unique traits. To enrich the RAG context, we propose providing Large Language Models (LLMs) with author-specific features, such as average sentiment polarity and frequently used words, in addition to past samples from the author’s profile. We introduce a new feature called Contrastive Examples: documents from other authors are retrieved to help LLM identify what makes an author’s style unique in comparison to others. Our experiments show that adding a couple of sentences about the named entities, dependency patterns, and words a person uses frequently significantly improves personalized text generation. Combining features with contrastive examples boosts the performance further, achieving a relative 15% improvement over baseline RAG while outperforming the benchmarks. Our results show the value of fine-grained features for better personalization, while opening a new research dimension for including contrastive examples as a complement with RAG. We release our code publicly (https://github.com/myazann/AP-Bots/tree/main).
Original languageEnglish
Title of host publicationAdvances in Information Retrieval
Subtitle of host publication47th European Conference on Information Retrieval, ECIR 2025, Lucca, Italy, April 6–10, 2025, Proceedings, Part III
EditorsClaudia Hauff, Craig Macdonald, Dietmar Jannach, Gabriella Kazai, Franco Maria Nardini, Fabio Pinelli, Fabrizio Silvestri, Nicola Tonellotto
Place of PublicationCham
PublisherSpringer
Pages408–416
Volume3
ISBN (Electronic)9783031887147
ISBN (Print)9783031887130
DOIs
Publication statusPublished - 4 Apr 2025
Event47th European Conference on Information Retrieval - Lucca, Italy
Duration: 6 Apr 202510 Apr 2025

Publication series

NameLecture Notes in Computer Science
Volume15574

Conference

Conference47th European Conference on Information Retrieval
Abbreviated titleECIR 2025
Country/TerritoryItaly
CityLucca
Period6/04/2510/04/25

Fingerprint

Dive into the research topics of 'Improving RAG for Personalization with Author Features and Contrastive Examples'. Together they form a unique fingerprint.

Cite this