RAG Without the Lag: Interactive Debugging for Retrieval-Augmented Generation Pipelines

Fuente: arXiv
Guardado en:
Detalles Bibliográficos
Autores principales: Lauro, Quentin Romero, Shankar, Shreya, Zeighami, Sepanta, Parameswaran, Aditya
Formato: Preprint
Publicado: 2025
Materias:
Acceso en línea:
Etiquetas: Agregar Etiqueta
Sin Etiquetas, Sea el primero en etiquetar este registro!
_version_ 1866915249945313280
author Lauro, Quentin Romero
Shankar, Shreya
Zeighami, Sepanta
Parameswaran, Aditya
author_facet Lauro, Quentin Romero
Shankar, Shreya
Zeighami, Sepanta
Parameswaran, Aditya
contents Retrieval-augmented generation (RAG) pipelines have become the de-facto approach for building AI assistants with access to external, domain-specific knowledge. Given a user query, RAG pipelines typically first retrieve (R) relevant information from external sources, before invoking a Large Language Model (LLM), augmented (A) with this information, to generate (G) responses. Modern RAG pipelines frequently chain multiple retrieval and generation components, in any order. However, developing effective RAG pipelines is challenging because retrieval and generation components are intertwined, making it hard to identify which component(s) cause errors in the eventual output. The parameters with the greatest impact on output quality often require hours of pre-processing after each change, creating prohibitively slow feedback cycles. To address these challenges, we present RAGGY, a developer tool that combines a Python library of composable RAG primitives with an interactive interface for real-time debugging. We contribute the design and implementation of RAGGY, insights into expert debugging patterns through a qualitative study with 12 engineers, and design implications for future RAG tools that better align with developers' natural workflows.
format Preprint
id arxiv_https___arxiv_org_abs_2504_13587
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle RAG Without the Lag: Interactive Debugging for Retrieval-Augmented Generation Pipelines
Lauro, Quentin Romero
Shankar, Shreya
Zeighami, Sepanta
Parameswaran, Aditya
Human-Computer Interaction
Artificial Intelligence
Retrieval-augmented generation (RAG) pipelines have become the de-facto approach for building AI assistants with access to external, domain-specific knowledge. Given a user query, RAG pipelines typically first retrieve (R) relevant information from external sources, before invoking a Large Language Model (LLM), augmented (A) with this information, to generate (G) responses. Modern RAG pipelines frequently chain multiple retrieval and generation components, in any order. However, developing effective RAG pipelines is challenging because retrieval and generation components are intertwined, making it hard to identify which component(s) cause errors in the eventual output. The parameters with the greatest impact on output quality often require hours of pre-processing after each change, creating prohibitively slow feedback cycles. To address these challenges, we present RAGGY, a developer tool that combines a Python library of composable RAG primitives with an interactive interface for real-time debugging. We contribute the design and implementation of RAGGY, insights into expert debugging patterns through a qualitative study with 12 engineers, and design implications for future RAG tools that better align with developers' natural workflows.
title RAG Without the Lag: Interactive Debugging for Retrieval-Augmented Generation Pipelines
topic Human-Computer Interaction
Artificial Intelligence
url https://arxiv.org/abs/2504.13587