glaiveai/glaive-function-calling
收藏资源简介:
--- license: apache-2.0 task_categories: - text-generation language: - en size_categories: - 10K<n<100K --- This dataset consists of 52k samples generated through [Glaive](https://glaive.ai) for the task of function calling, in the following format- ``` SYSTEM: You are an helpful assistant who has access to the following functions to help the user, you can use the functions if needed- { JSON function definiton } USER: user message ASSISTANT: assistant message Function call invocations are formatted as- ASSISTANT: <functioncall> {json function call} Response to the function call is formatted as- FUNCTION RESPONSE: {json function response} ``` There are also samples which do not have any function invocations, multiple invocations and samples with no functions presented and invoked to keep the data balanced.
许可证:Apache-2.0 任务类别: - 文本生成(text-generation) 语言: - 英文(en) 样本规模类别: - 10K<n<100K 本数据集包含52,000条样本,均通过[Glaive](https://glaive.ai)生成,用于函数调用(function calling)任务,具体格式如下: SYSTEM: 您是一名乐于助人的助手,可调用以下工具函数为用户提供协助,如需使用可直接调用: { "JSON格式的函数定义" } USER: 用户消息 ASSISTANT: 助手回复 函数调用的格式如下: ASSISTANT: <functioncall> {"JSON格式函数调用内容"} 函数调用响应的格式如下: FUNCTION RESPONSE: {"JSON格式函数响应内容"} 此外,数据集中还涵盖无函数调用、多函数调用,以及无可用函数且无需发起调用的样本,以保障数据分布的平衡性。
数据集概述
基本信息
- 许可证:Apache-2.0
- 任务类别:文本生成
- 语言:英语
- 数据集大小:10K<n<100K
数据内容
- 样本数量:52k
- 生成工具:Glaive
- 任务描述:函数调用
- 数据格式:
- 系统提示:描述助手可用的函数定义。
- 用户消息:用户输入。
- 助手消息:助手的回复,可能包含函数调用。
- 函数调用格式:
ASSISTANT: <functioncall> {json function call} - 函数响应格式:
FUNCTION RESPONSE: {json function response}
数据多样性
- 包含无函数调用的样本、多次调用的样本以及无函数展示和调用的样本,以保持数据平衡。



