Patchwork: A Unified Framework for RAG Serving

Bodun Hu, Luis Pabon, Saurabh Agarwal, Aditya Akella
5/1/2025
cs.DCcs.AIcs.MA

No confident code implementation found for this paper.

Abstract

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%.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{hu2025patchwork,
  title  = {Patchwork: A Unified Framework for RAG Serving},
  author = {Bodun Hu and Luis Pabon and Saurabh Agarwal and Aditya Akella},
  year   = {2025},
  eprint = {2505.07833},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2505.07833v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2505.07833.svg)](https://codeofpaper.com/paper/2505.07833)

Discussion