ask-before-answer-dataset
收藏资源简介:
AskBeforeAnswer数据集是一个用于训练澄清请求模型的数据集。该数据集包含两个子集,分别用于不同的训练阶段:sft(监督微调)子集包含结构化的问答对,每个样本由指令(instruction)、输入(input)和输出(output)组成,其中输出是一个JSON字典,包含动作(action)、推理过程(reasoning)、方面列表(facets)和最终响应(response);dpo(直接偏好优化)子集包含偏好对,每个样本由提示(prompt)、首选回答(chosen)和拒绝回答(rejected)组成。两个子集各包含576个训练样本和122个验证样本。该数据集适用于训练模型在不确定时主动询问澄清信息,以提高回答的准确性和减少幻觉。
The AskBeforeAnswer dataset is a dataset for training clarification request models. It contains two subsets for different training stages: the sft (supervised fine-tuning) subset consists of structured question-answer pairs, each sample comprising instruction, input, and output, where the output is a JSON dictionary containing action, reasoning, facets, and final response; the dpo (direct preference optimization) subset consists of preference pairs, each sample comprising prompt, chosen, and rejected. Each subset contains 576 training samples and 122 validation samples. This dataset is suitable for training models to proactively ask for clarification when uncertain, thereby improving answer accuracy and reducing hallucinations.
AskBeforeAnswer 数据集概述
该数据集用于训练 AskBeforeAnswer 澄清式提问模型,包含训练集和验证集,分为 sft 和 dpo 两个子集,需根据训练阶段分别加载。
子集结构
sft(监督微调)
- 用途:用于模型的初始对齐训练,包含结构化 JSON 响应数据。
- 特征字段:
instruction(字符串):指令内容input(字符串):输入内容output(结构体):action(字符串):动作类型reasoning(字符串):推理过程facets(字符串列表):方面标签response(字符串):最终响应
dpo(直接偏好优化)
- 用途:包含用于抑制幻觉的偏好对数据,通过对比优化训练模型。
- 特征字段:
prompt(字符串):提示内容chosen(字符串):被选中的响应rejected(字符串):被拒绝的响应
数据规模
| 子集 | 训练集样本数 | 验证集样本数 |
|---|---|---|
| sft | 576 | 122 |
| dpo | 576 | 122 |
加载方式
两种数据集配置需分别加载:
- sft 子集:使用
load_dataset("chrisjcc/ask-before-answer-dataset", "sft") - dpo 子集:使用
load_dataset("chrisjcc/ask-before-answer-dataset", "dpo")




