Skip to main navigation Skip to search Skip to main content

RAGTrace: Understanding and Refining Retrieval-Generation Dynamics in Retrieval-Augmented Generation

  • Sizhe Cheng (Co-first Author)
  • , Jiaping Li (Co-first Author)
  • , Huanchen Wang
  • , Yuxin Ma*
  • *Corresponding author for this work

Research output: Chapters, Conference Papers, Creative and Literary Works › RGC 32 - Refereed conference paper (with host publication) › peer-review

Abstract

Retrieval-Augmented Generation (RAG) systems have emerged as a promising solution to enhance large language models (LLMs) by integrating external knowledge retrieval with generative capabilities. While significant advancements have been made in improving retrieval accuracy and response quality, a critical challenge remains that the internal knowledge integration and retrieval-generation interactions in RAG workflows are largely opaque. This paper introduces RAGTrace, an interactive evaluation system designed to analyze retrieval and generation dynamics in RAG-based workflows. Informed by a comprehensive literature review and expert interviews, the system supports a multi-level analysis approach, ranging from high-level performance evaluation to fine-grained examination of retrieval relevance, generation fidelity, and cross-component interactions. Unlike conventional evaluation practices that focus on isolated retrieval or generation quality assessments, RAGTrace enables an integrated exploration of retrieval-generation relationships, allowing users to trace knowledge sources and identify potential failure cases. The system’s workflow allows users to build, evaluate, and iterate on retrieval processes tailored to their specific domains of interest. The effectiveness of the system is demonstrated through case studies and expert evaluations on real-world RAG applications.
© 2025 Copyright held by the owner/author(s). Publication rights licensed to ACM.
Original languageEnglish
Title of host publicationUIST '25
Subtitle of host publicationProceedings of the 38th Annual ACM Symposium on User Interface Software and Technology
PublisherAssociation for Computing Machinery
Number of pages20
ISBN (Electronic)979-8-4007-2036-9
ISBN (Print)979-8-4007-2037-6
DOIs
Publication statusPublished - 27 Sept 2025
Event38th Annual ACM Symposium on User Interface Software and Technology - Busan, Korea, Republic of
Duration: 28 Sept 2025 → 1 Oct 2025
https://uist.acm.org/2025/

Conference

Conference38th Annual ACM Symposium on User Interface Software and Technology
Abbreviated titleUIST '25
PlaceKorea, Republic of
CityBusan
Period28/09/25 → 1/10/25
Internet address

Funding

This work was supported in part by the National Natural Science Foundation of China (No. 62202217), Guangdong Basic and Applied Basic Research Foundation (No. 2023A1515012889), and Guangdong Key Program (No. 2021QN02X794). An implementation of RAGTrace is available at https://github.com/VIS-SUSTech/RAGTrace.

Research Keywords

  • Retrieval-Augmented Generation
  • Knowledge Tracking
  • Evaluation

Fingerprint

Dive into the research topics of 'RAGTrace: Understanding and Refining Retrieval-Generation Dynamics in Retrieval-Augmented Generation'. Together they form a unique fingerprint.

Cite this