Evaluating Edge and Server-Offloaded Retrieval-Augmented Generation for a Rehabilitation Voice Assistant on Raspberry Pi
Abstract
Voice-based assistants offer a promising interface for rehabilitation patients with limited digital literacy, but reliable domain-specific responses require grounding in relevant knowledge rather than relying solely on language model parametric memory. Retrieval-augmented generation (RAG) provides this grounding, yet deploying RAG on resource-constrained embedded hardware introduces a non-trivial trade-off: running embedding inference on edge devices avoids network latency but strains limited CPU and RAM, while offloading to a server reduces device load but adds network round-trips. This paper evaluates both strategies for an Estonian-language rehabilitation voice assistant on Raspberry Pi 4, comparing six multilingual embedding models across 1320 test interactions. Technical pipeline performance was evaluated through per-stage latency, RAM consumption, RAG-specific energy, and retrieval quality via Recall@1/3/5; clinical safety and medical response quality were outside the study scope. The server architecture reduces end-to-end latency, measured from the end of user speech to the first audio chunk of the assistant response, by up to 40% for large unquantized models. For lightweight or quantized models, however, the reduction is less than 9%, as a fixed WebSocket overhead of 270–285 ms offsets most of the embedding savings. Speech recognition contributes a fixed 1050–1130 ms floor to all configurations regardless of deployment choice. INT8 quantization of a large embedding…
Read the paper
Related studies
- Animal models of schizophrenia
- Retrieval Augmented Visual Question Answering with Outside Knowledge
- Fine-grained Late-interaction Multi-modal Retrieval for Retrieval Augmented Visual Question Answering
- Understand What LLM Needs: Dual Preference Alignment for Retrieval-Augmented Generation
- Retrieval-Augmented Embodied Agents
- Retrieving, Rethinking and Revising: The Chain-of-Verification Can Improve Retrieval Augmented Generation
Go deeper in Evidence Hub
Evidence Hub adds a study data sheet (design, sample size, evidence level, key numbers), an AI summary and a chat grounded in the paper's text.