ChatGPT Plugin发布,这东西到底是干嘛的?里面的逻辑是什么?( 二 )


这两个部分有点长,我摘出重点
在插件描述中:
"name_for_model": "retrieval","description_for_model": "Plugin for searching through the user's documents (such as files, emails, and more) to find answers to questions and retrieve relevant information. Use it whenever a user asks something that might be found in their personal information.",
【ChatGPT Plugin发布,这东西到底是干嘛的?里面的逻辑是什么?】api定义中
/query:post:summary: Querydescription: Accepts search query objects array each with query and optional filter. Break down complex questions into sub-questions. Refine results by criteria, e.g. time / source, don't do this often. Split queries if ResponseTooLargeError occurs.operationId: query_query_post
这两段逻辑就是可以判断是否要调用这个接口的依据,也就是说这两段会传如到中去 。
而具体怎么调用就是通过.yaml 来获取的接口知识,这个对gpt来说实在是太简单 。
总结
这个逻辑和的agent模块基本一致 。目前只有一个核心区别,就是这个插件看起来是只作用于,也就是说我们需要登录到的网站上通过对话才能使用这个插件 。而不同,他是一个工具,可以开发一个独立与的网站或者工具 。
如果我是,就直接着手开发对接的Agent或者tool咯