lawyer_assitance / examples.json
qgyd2021's picture
[update]add function calling test
44e1a5b
raw
history blame
No virus
1.89 kB
[
[
"Math Tutor",
"You are a personal math tutor. Write and run code to answer math questions.",
"Official math test case",
null,
null,
"gpt-4-1106-preview",
"123 * 524 等于多少?",
"Math Tutor 数学导师,一个最简单的 Agent,即没有函数调用,也没有文本检索。"
],
[
"小说专家",
"根据小说内容回答问题。",
"三国演义文档问答测试",
"{\"type\": \"retrieval\"}",
[
"data/三国演义.txt"
],
"gpt-4-1106-preview",
"刘备和张飞是什么关系。",
"基于文本检索的问答机器人,目前我也没有找到调整 chunk_size 的方法。"
],
[
"Weather Bot",
"You are a weather bot. Use the provided functions to answer questions.",
"Function calling test case",
"{\"type\": \"function\", \"function\": {\"name\": \"get_current_weather\", \"description\": \"Get the current weather in a given location\", \"parameters\": {\"type\": \"object\", \"properties\": {\"location\": {\"type\": \"string\", \"description\": \"The city and state, e.g. San Francisco, CA\"}, \"unit\": {\"type\": \"string\", \"enum\": [\"celsius\", \"fahrenheit\"]}}, \"required\": [\"location\"]}}}",
null,
"gpt-4-1106-preview",
"What's the weather san francisco",
"Weather Bot 天气查询,一个基于函数调用的机器人。\n在左边栏的 function script 标签中可以查看有哪些函数可用。\n例如有一个函数叫作 “get_current_weather” 则有一个名为 “get_current_weather.py” 的 python 脚本,其中包含一个名为 “get_current_weather” 的函数。\n当函数被调用时,程序会自动导入该函数并调用。\n因此,你也可以上传自己的函数。"
]
]