Patchwork: A Unified Framework for RAG Serving

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Hu, Bodun, Pabon, Luis, Agarwal, Saurabh, Akella, Aditya
Format: Preprint
Published: 2025
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866913833932554240
author Hu, Bodun
Pabon, Luis
Agarwal, Saurabh
Akella, Aditya
author_facet Hu, Bodun
Pabon, Luis
Agarwal, Saurabh
Akella, Aditya
contents Retrieval Augmented Generation (RAG) has emerged as a new paradigm for enhancing Large Language Model reliability through integration with external knowledge sources. However, efficient deployment of these systems presents significant technical challenges due to their inherently heterogeneous computational pipelines comprising LLMs, databases, and specialized processing components. We introduce Patchwork, a comprehensive end-to-end RAG serving framework designed to address these efficiency bottlenecks. Patchwork's architecture offers three key innovations: First, it provides a flexible specification interface enabling users to implement custom RAG pipelines. Secondly, it deploys these pipelines as distributed inference systems while optimizing for the unique scalability characteristics of individual RAG components. Third, Patchwork incorporates an online scheduling mechanism that continuously monitors request load and execution progress, dynamically minimizing SLO violations through strategic request prioritization and resource auto-scaling. Our experimental evaluation across four distinct RAG implementations demonstrates that Patchwork delivers substantial performance improvements over commercial alternatives, achieving throughput gains exceeding 48% while simultaneously reducing SLO violations by ~24%.
format Preprint
id arxiv_https___arxiv_org_abs_2505_07833
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Patchwork: A Unified Framework for RAG Serving
Hu, Bodun
Pabon, Luis
Agarwal, Saurabh
Akella, Aditya
Distributed, Parallel, and Cluster Computing
Artificial Intelligence
Multiagent Systems
Operating Systems
Retrieval Augmented Generation (RAG) has emerged as a new paradigm for enhancing Large Language Model reliability through integration with external knowledge sources. However, efficient deployment of these systems presents significant technical challenges due to their inherently heterogeneous computational pipelines comprising LLMs, databases, and specialized processing components. We introduce Patchwork, a comprehensive end-to-end RAG serving framework designed to address these efficiency bottlenecks. Patchwork's architecture offers three key innovations: First, it provides a flexible specification interface enabling users to implement custom RAG pipelines. Secondly, it deploys these pipelines as distributed inference systems while optimizing for the unique scalability characteristics of individual RAG components. Third, Patchwork incorporates an online scheduling mechanism that continuously monitors request load and execution progress, dynamically minimizing SLO violations through strategic request prioritization and resource auto-scaling. Our experimental evaluation across four distinct RAG implementations demonstrates that Patchwork delivers substantial performance improvements over commercial alternatives, achieving throughput gains exceeding 48% while simultaneously reducing SLO violations by ~24%.
title Patchwork: A Unified Framework for RAG Serving
topic Distributed, Parallel, and Cluster Computing
Artificial Intelligence
Multiagent Systems
Operating Systems
url https://arxiv.org/abs/2505.07833