Paper 2026/231 Original: eprint.iacr.org/2026/231 ↗

RAGtime-PIANO: Efficient Secure Remote RAG

Antonia Januszewicz
Jiachen Zhao
Meng Jiang
Taeho Jung
Abstract

Retrieval Augmented Generation (RAG) can enhance the performance of Large Language Models (LLMs) when used in conjunction with a comprehensive knowledge database. However, the space required to store the necessary information can be taxing when RAG is used locally. As such, the concept of RAG-as-a-Service (RaaS) has emerged, in which third-party servers can be used to process client queries via an external database. Unfortunately, using such a service would expose the client's query to a third party, making the product unsuitable for processing sensitive queries. Our scheme ensures that throughout the entire RAG processing, neither the query, any distances, nor retrieval information is known to the database hosting server. Using a two-pronged approach, we employ Fully Homomorphic Encryption (FHE) and Private Information Retrieval (PIR) to ensure complete security during RAG processing. FHE is used to maintain privacy during initial query processing, during which the query embedding is encrypted and sent to the server for k-means centroid scoring to obtain a similarity ranking. Then, a series of PIR queries is used to privately retrieve the centroid-associated embeddings and the top-ranked documents. A first-of-its-kind, lightweight, fully secure RAG protocol, RAGtime-PIANO, enables efficient secure RAG.

Metadata
Available format(s)
PDF
Category
Cryptographic protocols
Publication info
Preprint.
History
2026-02-11: last updated
2026-02-11: published
Short URL
https://ia.cr/2026/231
License
https://creativecommons.org/licenses/by/4.0/

BibTeX

@misc{cryptoeprint:2026/231,
      author = {Antonia Januszewicz and Jiachen Zhao and Meng Jiang and Taeho Jung},
      title = {RAGtime-PIANO: Efficient Secure Remote RAG},
      howpublished = {Cryptology {ePrint} Archive, Paper 2026/231},
      year = {2026},
      url = {https://eprint.iacr.org/2026/231}
}
Note: In order to protect the privacy of readers, this archive does not use cookies or embedded third party content.