Jump to content

Connect SuperML | Leeroopedia MCP: Equip your AI agents with best practices, code verification, and debugging knowledge. Powered by Leeroo — building Organizational Superintelligence. Contact us at founders@leeroo.com.

Principle:Marker Inc Korea AutoRAG Passage Sampling

From Leeroopedia
Revision as of 17:34, 16 February 2026 by Admin (talk | contribs) (Auto-imported from principles/Marker_Inc_Korea_AutoRAG_Passage_Sampling.md)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)


Knowledge Sources
Domains NLP, Data_Sampling
Last Updated 2026-02-08 06:00 GMT

Overview

A sampling strategy that selects corpus passages as ground-truth retrieval targets for generating evaluation QA datasets.

Description

Passage Sampling selects a subset of passages from a corpus to serve as retrieval ground truth (retrieval_gt) for QA generation. Each sampled passage becomes the basis for generating a question-answer pair. The sampling strategy determines the structure of the resulting QA dataset: single-hop sampling selects individual passages (one passage per question), while multi-hop sampling selects groups of passages (requiring synthesis across multiple passages to answer). Random sampling ensures diversity across the corpus.

Usage

Use this principle after corpus construction and before query generation. It determines which passages will have questions generated about them. Random single-hop is the default for simple factoid QA datasets; use multi-hop sampling when you need to evaluate cross-passage reasoning capabilities.

Theoretical Basis

The sampling process creates a mapping from questions to ground-truth passages:

Single-hop sampling:

  • Select N passages uniformly at random from the corpus
  • Each passage becomes one retrieval_gt entry: retrieval_gti=[[passage_idi]]
  • Resulting QA pairs test single-passage retrieval

Multi-hop sampling:

  • Select groups of K passages that are related
  • Each group becomes one retrieval_gt entry: retrieval_gti=[[id1,id2,...,idK]]
  • Resulting QA pairs test multi-passage retrieval and synthesis

Related Pages

Implemented By

Page Connections

Double-click a node to navigate. Hold to expand connections.
Principle
Implementation
Heuristic
Environment