Skip to content
#small language model Open access

RAGGlass: Beyond the Black Box — A User-Centric Glass Box Framework for Inspecting and Diagnosing Retrieval- Augmented Generation

Sep 2026 · Zenodo (CERN European Organization for Nuclear Research)
Topic Modeling

Abstract

Retrieval-Augmented Generation (RAG) mitigates factual hallucinations in Large Language Model (LLM) workflows by extracting corroborating passages from an external corpus prior to response synthesis. Nevertheless, conventional production pipelines operate as opaque black boxes, obscuring intermediate operations such as text ingestion, sliding-window chunking, vector embedding, similarity indexing, and context curation from end users, which impairs their ability to verify underlying evidentiary support. Although modern observability platforms provide extensive diagnostic instrumentation, they cater almost exclusively to engineering telemetry and developer debugging rather than user-facing inspection. This paper presents RAGGlass, a user-facing framework for improving transparency and interpretability in RAG-based question-answering systems. RAGGlass provides an interactive representation of the RAG workflow through seven observable process states and enables configuration of chunk sizes (100–2,000 characters), chunk overlap (0–500 characters), and Top-K retrieval (1–10). It exposes generated chunks, embedding metadata, 384-dimensional representations from all-MiniLM-L6-v2, and retrieved contexts with similarity and distance scores, including live cosine-similarity comparisons between chunks. ChromaDB supports vector storage and semantic retrieval, while response generation uses the Groq API and Ollama for cloud and local deployment. Evaluated on a 17-question test set (14 answerable, 3 unanswerable probes) across seven chunk sizes (200–800 characters) at Top-K=3, RAGGlass achieved 94.12% accuracy (16/17) for chunk sizes 200, 300, and 500, and 100% (17/17) for sizes 400–800. Faithfulness was 100% across all configurations: all unanswerable probes were correctly declined, and the single accuracy failure was an honest refusal. Chunk-level inspection revealed that smaller chunks split answer sentences across boundaries; increasing Top-K fully recovered performance. RAGGlass thus maintains strong question-answering performance while making retrieval evidence and failure modes directly inspectable to users.```[cite: 3]

View source

Similar papers

#small language model Dataset Open access Oct 2026

Socratic guiding questions in synthetic arithmetic data: matched LoRA runs (revision v2)

Supporting data, adapters, predictions and code for the article *Low-Cost LoRA Fine-Tuning of Small Language Models for Multi-Step Arithmetic Reasoning* by Jake O'Grady, Asena Isik Gürhan, Chee Fong Ting and Effirul Ramlan (University of Galway). We generated 20,000 GSM8K-derived arithmetic problems with step-by-step s...

O'Grady, Jake, Gürhan, Asena Isik, Chee, Fong Ting et al. · 465 citations
#computer vision Open access Jun 2016

Software Development in Startup Companies: The Greenfield Startup Model

The results are packaged in the Greenfield Startup Model (GSM), which explains the priority of startups to release the product as quickly as possible, and the need to shorten time-to-market, by speeding up the development through low-precision engineering activities.

Carmine Giardino, Nicolò Paternoster, M. Unterkalmsteiner et al. · 178 citations · ⚡14
#computer vision Open access Oct 2016

Software Startups - A Research Agenda

Software startup companies develop innovative, software-intensive products within limited timeframes and with few resources, searching for sustainable and scalable business models.

M. Unterkalmsteiner, P. Abrahamsson, Xiaofeng Wang et al. · 157 citations · ⚡17
#machine learning Review Open access Oct 2016

“Failures” to be celebrated: an analysis of major pivots of software startups

This study conducts a case survey study based on the secondary data of the major pivots happened in 49 software startups, and demonstrates that customer need pivot is the most common among all pivot types.

Sohaib Shahid Bajwa, Xiaofeng Wang, Anh Nguyen-Duc et al. · 127 citations · ⚡15
#computer vision Review Open access May 2015

A survey study on major technical barriers affecting the decision to adopt cloud services

The comparison of adopter and non-adopter sample reveals three potential adoption inhibitor, security, data privacy, and portability, which underlines the importance of the technical and security perspectives for research investigating the adoption of technology.

Nattakarn Phaphoom, Xiaofeng Wang, S. Samuel et al. · 111 citations · ⚡8
#computer vision Open access Feb 2018

Lean Internal Startups for Software Product Innovation in Large Companies: Enablers and Inhibitors

This study investigates how Lean internal startup facilitates software product innovation in large companies and identifies its enablers and inhibitors, and shows the potential of the method-in-action framework to investigate the Lean startup approach in non-startup context.

Henry Edison, Nina M. Smørsgård, Xiaofeng Wang et al. · 78 citations · ⚡6

Related blog posts

We use cookies to run the site and, with your consent, for analytics and to show ads. See our Cookie Policy.