Skip to main content

get_data

Signature
Function
  • Multi-format Loading: Supports loading evaluation datasets in .jsonl, .json, or .parquet formats from local storage.
  • Dynamic Field Mapping: Uses key_map to map different column names in raw data (such as question, answer) to standardized output keys (usually q_ls and gt_ls).
  • Data Preprocessing: Built-in support for random shuffling (shuffle) and quantity truncation (limit).
  • Used in Demos to receive user input, treating it as a piece of data (q_ls).
Output Format (JSON)

Configuration

servers/benchmark/parameter.yaml
Parameter Description: