paper-with-me

홈 › Papers

Constructing and Evaluating Declarative RAG Pipelines in PyTerrier

2025-06-12 · Craig Macdonald, Jinyuan Fang, Andrew Parry, Zaiqiao Meng

Search engines often follow a pipeline architecture, where complex but effective reranking components are used to refine the results of an initial retrieval. Retrieval augmented generation (RAG) is an exciting application of the pipeline architecture, where the final component generates a coherent answer for the users from the retrieved documents. In this demo paper, we describe how such RAG pipelines can be formulated in the declarative PyTerrier architecture, and the advantages of doing so. Our PyTerrier-RAG extension for PyTerrier provides easy access to standard RAG datasets and evaluation measures, state-of-the-art LLM readers, and using PyTerrier's unique operator notation, easy-to-build pipelines. We demonstrate the succinctness of indexing and RAG pipelines on standard datasets (including Natural Questions) and how to build on the larger PyTerrier ecosystem with state-of-the-art sparse, learned-sparse, and dense retrievers, and other neural rankers.

📄 PDF Abstract BibTeX arXiv:2506.10802

Code (1)

terrierteam/pyterrier_rag 공식 구현

Tasks

Natural QuestionsRAGRerankingRetrievalRetrieval-augmented Generation

Methods 이 논문이 사용한 방법론

BPE Byte Pair Encoding, or BPE, is a subword segmentation algorithm that encodes rare and unknown words as sequences of subword units. The intuition is that various word…
Linear Layer A Linear Layer is a projection $\mathbf{XW + b}$.
Attention 설명 없음
WordPiece 설명 없음
Multi-Head Attention 설명 없음
BART BART is a denoising autoencoder for pretraining sequence-to-sequence models. It is trained by (1) corrupting text…
Softmax The Softmax output function transforms a previous layer's output into a vector of probabilities. It is commonly used for multiclass classification. Given an input vector $x$…
Layer Normalization Unlike batch normalization, Layer Normalization directly estimates the normalization statistics from the summed inputs…

Similar Papers 제목 키워드 기반

Declarative Experimentation in Information Retrieval using PyTerrier

2020-07-28 · Craig Macdonald, Nicola Tonellotto

The advent of deep machine learning platforms such as Tensorflow and Pytorch, developed in expressive high-level languages such as Python, have allowed more expressive representations of deep neural network architectures…

GPUInformation RetrievalRetrieval

On Precomputation and Caching in Information Retrieval Experiments with Pipeline Architectures

2025-04-14 · Sean MacAvaney, Craig Macdonald

Modern information retrieval systems often rely on multiple components executed in a pipeline. In a research setting, this can lead to substantial redundant computations (e.g., retrieving the same query multiple times fo…

Information RetrievalRetrieval

PyTerrier-GenRank: The PyTerrier Plugin for Reranking with Large Language Models

2024-12-06 · Kaustubh D. Dhole

Using LLMs as rerankers requires experimenting with various hyperparameters, such as prompt formats, model choice, and reformulation strategies. We introduce PyTerrier-GenRank, a PyTerrier plugin to facilitate seamless r…

Reranking

PalimpChat: Declarative and Interactive AI analytics

2025-02-05 · Chunwei Liu, Gerardo Vitagliano, Brandon Rose, Matt Prinz 외

Thanks to the advances in generative architectures and large language models, data scientists can now code pipelines of machine-learning operations to process large collections of unstructured data. Recent progress has s…

scientific discovery

EdnaML: A Declarative API and Framework for Reproducible Deep Learning

2022-11-13 · Abhijit Suprem, Sanjyot Vaidya, Avinash Venugopal, Joao Eduardo Ferreira 외

Machine Learning has become the bedrock of recent advances in text, image, video, and audio processing and generation. Most production systems deal with several models during deployment and training, each with a variety …

Deep Learning