跳到正文

高效 RAG · 2025

COCOM

将检索上下文压缩为嵌入后生成答案,连接检索与高效解码。

论文
COCOM — Figure 2 · COCOM pipeline
图 2 · COCOM 流程 · 来源 ↗

摘要

Retrieval-Augmented Generation (RAG) allows overcoming the limited knowledge of LLMs by extending the input with external information. As a consequence, the contextual inputs to the model become much longer which slows down decoding time directly translating to the time a user has to wait for an answer. We address this challenge by presenting COCOM, an effective context compression method, reducing long contexts to only a handful of Context Embeddings speeding up the generation time by a large margin. Our method allows for different compression rates trading off decoding time for answer quality. Compared to earlier methods, COCOM allows for handling multiple contexts more effectively, significantly reducing decoding time for long inputs. Our method demonstrates a speed-up of up to 5.69 × while achieving higher performance compared to existing efficient context compression methods.

相关论文

高效 RAG

高效 RAG · 2024

BERGEN

可复现的 RAG 评测工具库,连接检索器、重排序器、语言模型与评测。

高效 RAG · 2024

FeB4RAG

在检索增强生成中评测跨多个资源的联邦检索。