RAG Without the Lag: Enabling "What-If" Analysis for Retrieval-Augmented Generation Pipelines

Quentin Romero Lauro, Shreya Shankar, Sepanta Zeighami and Aditya Parameswaran

Abstract

Retrieval-augmented generation (RAG) pipelines have become the de-facto approach for building AI assistants with external knowledge. Given a user query, RAG pipelines retrieve (R) information from external sources, before invoking a Large Language Model (LLM), augmented (A) with this information, to generate (G) responses. However, developing effective RAG pipelines is challenging because retrieval and generation components—often chained in varying orders—are intertwined, making it hard to identify which component(s) cause errors in the output. Developers often need to answer “what-if” questions—e.g., what if chunk sizes were larger or retrieval used embeddings versus keywords—but such experimentation requires hours of re-processing. We present raggy, a developer tool that enables rapid “what-if” analysis by combining a Python library of composable RAG primitives with an interactive debugging interface. We contribute the design and implementation of raggy, insights into expert debugging patterns through a qualitative study with 12 engineers, and design implications for RAG tools.

Venue
CHI 2026
Volume
Proceedings of the 2026 CHI Conference on Human Factors in Computing Systems
DOI
10.1145/3772318.3790874
PDF
https://dl.acm.org/doi/pdf/10.1145/3772318.3790874
Anthology ID
2026.chi.595

Cite

@inproceedings{lauro-etal-2026-rag,
    title = {{RAG Without the Lag: Enabling "What-If" Analysis for Retrieval-Augmented Generation Pipelines}},
    author = {Quentin Romero Lauro and Shreya Shankar and Sepanta Zeighami and Aditya Parameswaran},
    booktitle = {Proceedings of the 2026 CHI Conference on Human Factors in Computing Systems},
    isbn = {9798400722783},
    year = {2026},
    publisher = {Association for Computing Machinery},
    address = {New York, NY, USA},
    doi = {10.1145/3772318.3790874},
    url = {https://doi.org/10.1145/3772318.3790874},
    abstract = {Retrieval-augmented generation (RAG) pipelines have become the de-facto approach for building AI assistants with external knowledge. Given a user query, RAG pipelines retrieve (R) information from external sources, before invoking a Large Language Model (LLM), augmented (A) with this information, to generate (G) responses. However, developing effective RAG pipelines is challenging because retrieval and generation components—often chained in varying orders—are intertwined, making it hard to identify which component(s) cause errors in the output. Developers often need to answer “what-if” questions—e.g., what if chunk sizes were larger or retrieval used embeddings versus keywords—but such experimentation requires hours of re-processing. We present raggy, a developer tool that enables rapid “what-if” analysis by combining a Python library of composable RAG primitives with an interactive debugging interface. We contribute the design and implementation of raggy, insights into expert debugging patterns through a qualitative study with 12 engineers, and design implications for RAG tools.}
}