如何让模型理解工具返回的数据? #502
Replies: 1 comment 4 replies
-
是直接理解,你的返回就是提示词拼接之前你提问的历史让模型理解的,所以如果你自定义返回的json过于复杂,或者没有在相关提示词内告诉模型返回的是什么,那么模型是理解不了的 |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
官方提供的查询天气demo,工具返回了如下json
模型可以根据这个结果做出正确的回答。
1.请问模型是怎么做到的?我看prompt只有对工具的传参做说明,并没有对返回做说明
2.我用自定义的工具返回json,模型都不能理解,这又是为什么?
Beta Was this translation helpful? Give feedback.
All reactions