tangqiaoyu/ToolAlpaca

num of tools v.s. num of funtions

Closed this issue · 2 comments

想请教下面这个问题,非常感谢您的回答:)

论文中# of Tools是426,但是我统计后发现functions的数量有1700+。论文中的Tool和这里的Funtion不一样吗?二者有什么区别呢?
我统计的规则是将Function_Description中的函数名放进一个列表(不包含components),然后列表去重,最后计算列表的长度(1700+)。

[
    {
        "Name": "Httpbin",
        "Description": "A Simple HTTP Request & Response Service",
        "Link": "https://httpbin.org/",
        "Category": "Development",
        "Introduction": "The Httpbin....",
        "Functions": "...",
        "Documentation": "...",
        "NLDocumentation": "...",
        "Function_Description": {
            "sendHttpRequest": "Send an HTTP request ...",
            "getClientRequestData": "Retrieve the client's request data...",
            "testProxyHeaders": "Send a request to the Httpbin API's ...}",
            "simulateStatusCode": "Send a request to the Httpbin API's ...",
            "components": ""
        },
        "Function_Projection": {

你好,非常感谢你提出这个问题。在我们论文中,"Tool" 是指 API 套件,比如整个 Twitter API 套件,而 "Function" 则是指 API 套件中的单一 API 接口,例如获取用户信息或发送推文等功能。这些单一的 API 接口构成了 Twitter API 套件。一些最新的研究可能将单一的 API 接口视作一个独立的工具,如果从这个角度理解,你统计的 1700+ Tools 是正确的。我认为,我们这样的划分方式同样是合理的。

懂了,感谢您的回复:-)