Function
The Benchmark Server is used to load evaluation datasets, commonly used in the data configuration phase of benchmark testing, Q&A tasks, or generation tasks.We strongly recommend preprocessing data into
.jsonl format.data/sample_nq_10.jsonl
Usage Examples
Basic Usage
examples/load_data.yaml
examples/parameters/load_data_parameter.yaml
Add Dataset Loading Fields
In some cases, we may not only need to loadquery and ground_truth fields, but also wish to use other information in the dataset, such as retrieved passage.
In this case, you can modify the code of the Benchmark Server to add fields that need to be returned.
You can extend other fields (such as cot, retrieved_passages, etc.) in the same way, just add the corresponding key names synchronously in the decorator output and key_map.
If you have generated results (such as the pred field), you can use it together with Evaluation Server to achieve rapid evaluation.
id_ls field in the get_data function:
servers/prompt/src/benchmark.py
id_ls and specify its corresponding key name in the original data:
examples/parameters/load_data_parameter.yaml