sakthai-irrelevance-supplement
收藏资源简介:
SakThai Irrelevance Supplement 是一个精心策划的对话示例数据集,旨在训练和评估模型在不需要工具调用时优雅地拒绝使用工具的能力。该数据集专门包含那些用户请求无需使用可用函数的示例,教导模型识别何时应避免调用工具。数据集包含60个示例,内存占用约34KB,采用JSONL格式,并提供单个训练分割(train),可直接用于训练流程。每条数据包含两个字段:messages(多轮对话,每条消息包含角色和内容)和tools(可用函数列表,包含名称和描述)。数据集源自Nanthasit/sakthai-combined-v6和Nanthasit/sakthai-combined-v7,通过过滤或生成示例构建,以补充典型的工具调用数据集。主要用途是训练模型(特别是1.5B-7B参数规模)识别用户查询不需要工具调用的情况,礼貌地拒绝,并在没有适用工具时提供信息丰富的回复。适用于微调指令跟随模型、评估多轮对话推理,以及作为正面工具调用示例的补充。不适用于需要实时数据或生产API部署的场景。典型的评估指标包括正确拒绝工具调用的准确率、模型是否明确说明不需要工具的原因,以及回复的自然性和连贯性。数据集采用MIT许可证发布。
SakThai Irrelevance Supplement is a curated dialogue example dataset designed to train and evaluate models' capability to gracefully decline tool invocation when no tool usage is necessary. This dataset specifically includes examples where user requests do not require the use of available functions, teaching models to recognize scenarios in which tool invocation should be avoided. It contains 60 examples, with a memory footprint of approximately 34KB, stored in JSONL format, and provides a single training split (train) that can be directly integrated into training pipelines. Each entry features two fields: messages (multi-turn dialogues, with each message containing a role and content) and tools (a list of available functions, with each function including a name and description). The dataset is derived from Nanthasit/sakthai-combined-v6 and Nanthasit/sakthai-combined-v7, constructed by filtering or generating examples to supplement standard tool call datasets. Its primary use case is to train models (especially those with parameter scales ranging from 1.5B to 7B) to identify that user queries do not need tool invocation, politely decline such calls, and deliver informative responses when no applicable tools are available. It is suitable for fine-tuning instruction-following models, evaluating multi-turn dialogue reasoning, and serving as a complement to positive tool call examples. It is not intended for scenarios requiring real-time data or production API deployment. Typical evaluation metrics include the accuracy of correctly declining tool calls, whether the model explicitly states the reason for not requiring tools, and the naturalness and coherence of the generated responses. The dataset is released under the MIT License.
SakThai Irrelevance Supplement 数据集详情
数据集概述
SakThai Irrelevance Supplement 是一个精选的对话示例数据集,旨在训练和评估模型在工具调用不必要时优雅拒绝的能力。该数据集包含用户请求无需使用可用函数的具体示例,教导模型识别何时应避免进行工具调用。
- 数据集名称: SakThai Irrelevance Supplement
- 作者: SakThai Agent (Nanthasit)
- 许可证: MIT
- 最后更新: 2026-08-01
- 语言: 英语(单语)
- 任务类别: 文本生成(对话生成)
- 数据规模: 少于 1K 条(共 60 条示例)
- 标注创建者: 机器生成
- 语言创建者: 人工
数据规模与格式
- 总示例数: 60 条(已于 2026-08-01 通过 Datasets Server 验证)
- 内存大小: 约 34 KB
- 存储格式: JSONL(行分隔 JSON)
- 编码: UTF-8
- 数据划分: 仅包含单个
train划分,可直接用于训练流程
数据字段
| 字段 | 类型 | 描述 |
|---|---|---|
messages |
list[dict] | 多轮对话,每条消息包含 role(system/user/assistant)和 content(字符串) |
tools |
list[dict] | 提供给模型的可用函数,每个工具包含 name 和 description |
数据划分
| 划分 | 配置 | 行数 | 内存大小 | 用途 |
|---|---|---|---|---|
train |
default |
60 | ~34 KB | 训练示例,用于让模型学习何时不调用工具 |
数据构建与来源
该数据集基于以下源数据构建:
- Nanthasit/sakthai-combined-v6 — 基础工具调用示例
- Nanthasit/sakthai-combined-v7 — 附加对话模式
通过筛选或生成模型应识别可用工具与用户请求不相关的示例构建而成,补充了通常强调在需要时使用工具的工具调用数据集。
预期用途
主要用途: 训练模型(尤其是 1.5B–7B 参数规模),使其能够:
- 识别用户查询何时不需要工具调用
- 在不强制调用工具时礼貌拒绝
- 在没有适用工具时提供信息丰富的回复
适用场景:
- 微调指令遵循模型
- 评估多轮对话推理能力
- 与正向工具调用示例进行互补训练
不适用场景:
- 需要实时数据的数据集(如天气、价格等)
- 未经额外数据补充的生产 API 部署
评估指标
该数据集的典型评估方式包括:
- 准确率: 模型正确拒绝调用工具的比例
- 置信度: 模型是否明确说明为何不需要工具
- 连贯性: 回复是否自然且具有对话性
数据加载方法
python from datasets import load_dataset
加载完整数据集
ds = load_dataset("Nanthasit/sakthai-irrelevance-supplement")
访问训练划分
train = ds["train"] print(f"Loaded {len(train)} examples")
遍历示例
for example in train: print("Messages:", example["messages"]) print("Tools available:", [t["name"] for t in example["tools"]])





