You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{
"messages": [
{
"role": "system",
"content": "",
"tools": [
{
"type": "function",
"function": {
"name": "get_recommended_books",
"description": "Get recommended books based on user's interests",
"parameters": {
"type": "object",
"properties": {
"interests": {
"type": "array",
"items": {
"type": "string"
},
"description": "The interests to recommend books for"
}
},
"required": [
"interests"
]
}
}
}
]
},
{
"role": "user",
"content": "Hi, I am looking for some book recommendations. I am interested in history and science fiction."
},
{
"role": "assistant",
"content": "{\"name\": \"get_recommended_books\", \"arguments\": {\"interests\": [\"history\", \"science fiction\"]}}"
},
{
"role": "observation",
"content": "{\"books\": [\"Sapiens: A Brief History of Humankind by Yuval Noah Harari\", \"A Brief History of Time by Stephen Hawking\", \"Dune by Frank Herbert\", \"The Martian by Andy Weir\"]}"
},
{
"role": "assistant",
"content": "Based on your interests in history and science fiction, I would recommend the following books: \"Sapiens: A Brief History of Humankind\" by Yuval Noah Harari, \"A Brief History of Time\" by Stephen Hawking, \"Dune\" by Frank Herbert, and \"The Martian\" by Andy Weir."
}
]
}
Reminder
System Info
Reproduction
一条toolcall微调数据模板如下,来自于ChatGLM4:
想请教一下,如果按照上面模板构建数据,该如何填写
dataset_info.json
里面的tags
:1. 对话出现了两个
assistant
和一个observation
,需要如何修改tags
?2. 还是说按照标准sharegpt重新构建数据?
3. 如果用langchain之类的框架,tools列表里面存在多个tool,传入llm的请求将会是:
构造标准sharegpt数据时,
tools
是要同时写进所有tool,还是只写入用到的某个tool?问题有点长,且内容较多,还恳请解惑。
Expected behavior
希望更深入地了解toolcall微调的数据格式。
Others
No response
The text was updated successfully, but these errors were encountered: