ClarQ-LLM
收藏资源简介:
ClarQ-LLM是由伦敦玛丽女王大学开发的一个双语(英语-中文)任务导向对话评估框架,旨在评估对话代理在任务导向对话中提出澄清问题的能力。该数据集包含31种不同的任务类型,每种类型有10个独特的对话场景,总计310个任务实例。数据集的创建过程涉及四名博士和研究生在700人时的工作量,涵盖了从常见旅行计划到专业电子工程甚至虚构魔法对话的多样化任务。ClarQ-LLM主要应用于评估大型语言模型(LLMs)在对话中识别和消除不确定性的能力,旨在解决任务导向对话中的信息澄清问题。
ClarQ-LLM is a bilingual (English-Chinese) task-oriented dialogue evaluation framework developed by Queen Mary University of London, designed to assess the capability of dialogue agents to generate clarifying questions during task-oriented conversations. This dataset encompasses 31 distinct task types, with 10 unique dialogue scenarios for each type, totaling 310 task instances. The development of the dataset required a total of 700 person-hours of work from four doctoral and graduate students, covering a wide range of tasks from everyday travel planning, professional electronic engineering to even fictional magical dialogues. Primarily, ClarQ-LLM is utilized to evaluate the ability of large language models (LLMs) to identify and resolve uncertainties in conversations, with the goal of addressing information clarification issues in task-oriented dialogues.
ClarQ-LLM 数据集概述
数据集简介
ClarQ-LLM 是一个用于评估对话代理在任务导向对话中提出澄清问题的能力的基准数据集。该数据集包含任务、对话代理的交互脚本以及模型评估工具。
数据集内容
- 任务类型: 任务导向对话
- 语言: 中文和英文
- 评估指标:
- S: 成功率(越高越好)
- D: 平均查询差异(越低越好)
- L: 平均查询长度(越短越好)
基准结果
| LLMs | S (Chinese) | D (Chinese) | L (Chinese) | S (English) | D (English) | L (English) |
|---|---|---|---|---|---|---|
| L3.1-405B-Inst | - | - | - | 0.605 | 0.473 | 118 |
| GPT-4o | 0.508 | 0.215 | 129.9 | 0.485 | 0.492 | 70.5 |
| GPT-4 | 0.258 | -0.72 | 94.3 | 0.296 | -0.56 | 76.4 |
| ERNIE 4.0 | 0.315 | -0.82 | 141.0 | - | - | - |
| GPT-3.5 | 0 | -4.21 | 92.0 | 0.02 | -2.79 | 52.6 |
数据集结构
- 数据集分割:
- 测试集: 文件1-26
- 开发集: 文件25-31
- 文件存储路径:
data/Chinese/用于中文任务data/English/用于英文任务
使用说明
- 设置API密钥: 在运行脚本前,需在
ALL_KEYS.py中替换占位符API密钥。 - 运行预缓存交互: 使用预缓存的交互数据(存储在
log/目录中)进行结果复现。 - 自定义和调试: 通过检查缓存的提示和响应来调试GPT-4o代理之间的交互。
- LLAMA3.1交互: 更新API密钥并执行相关命令以运行LLAMA3.1交互。
- 评估: 使用预缓存结果评估模型性能。
- 运行交互: 设置密钥后,使用命令与代理进行交互。
- 开发自定义Seeker代理: 扩展
player类并实现自定义的generate_response方法。
依赖项
运行以下命令安装所需包: bash pip install -r requirements.txt
示例对话
- 中文对话示例: 冒险者与Jax的对话,讨论如何基于现有物品和技能建造避难所。
- 英文对话示例: 冒险者与Jax的对话,讨论如何基于现有物品和技能建造避难所。
许可证
该项目基于MIT许可证。详细信息请参见LICENSE文件。




