Good Papers

RAGViz: Diagnose and Visualize Retrieval-Augmented Generation

RAGViz visualizes token and document attention in retrieval-augmented generation and compares outputs with context changes, achieving ~5-second queries.

Tevin Wang, Jingyuan He, Chenyan Xiong

Published 20248 citationsPaper ↗

72%
OverallHighly rated
?
OverallHighly ratedVote to see the score
Readers
–

Only vote on papers you've read. Sign in to vote.

AI panel8/20reviewers recommend it
lenient 4/5
medium 3/10
strict 1/5
AI panel?Vote to see what the 20 AI reviewers said

Abstract

Retrieval-augmented generation (RAG) combines knowledge from domain-specific sources into large language models to ground answer generation.Current RAG systems lack customizable visibility on the context documents and the model's attentiveness towards such documents.We propose RAGViz, a RAG diagnosis tool that visualizes the attentiveness of the generated tokens in retrieved documents.With a built-in user interface, retrieval index, and Large Language Model (LLM) backbone, RAGViz provides two main functionalities: (1) token and document-level attention visualization, and (2) generation comparison upon context document addition and removal.As an open-source toolkit, RAGViz can be easily hosted with a custom embedding model and HuggingFace-supported LLM backbone.Using a hybrid ANN (Approximate Nearest Neighbor) index, memory-efficient LLM inference tool, and custom context snippet method, RAGViz operates efficiently with a median query time of about 5 seconds on a moderate GPU node. 1