QwenLM / Qwen-Agent

Agent framework and applications built upon Qwen>=2.0, featuring Function Calling, Code Interpreter, RAG, and Chrome extension.
https://pypi.org/project/qwen-agent/
Other
3.23k stars 313 forks source link

关于system_message和PROMPT_REACT的问题 #173

Open nauyiahc opened 4 months ago

nauyiahc commented 4 months ago

我看到Qwen-Agent是把PROMPT_REACT作为了user输入的一部分,但我最近用modelscope的swift进行agent微调时发现,官方给的react模板是放在了system中,请问这是否不能直接拿Qwen-Agent进行配合使用呢?下面是modelcope官方的agent训练数据集 image

nauyiahc commented 4 months ago

以下是两种存放react的方式,这两种是否可以混用呢?

Qwen:

<|im_start|>system
You are a helpful assistant.<|im_end|>
<|im_start|>user
Answer the following questions as best you can. You have access to the following APIs

ms_agent

<|im_start|>system
Answer the following questions as best you can. You have access to the following APIs: