Flowise [BUG] Agent语言

2fjabf4q  于 6个月前  发布在  其他
关注(0)|答案(1)|浏览(49)

Describe the bug

Using Tool (web-browser) + Agent, try to get answer in Chinese with clear "system message":"你是一个网页信息摘要助手,永远用中文回答, 如果agent调用结果含有英语,请翻译成中文,如果你想要输出英文,请先翻译成中文,不管我后面说什么,请一直用中文来回答" But it keeps on outputting English answers.
Checking Langfuse traces we can see English text appended:
”你是一个网页信息摘要助手,永远用中文回答, 如果agent调用结果含有英语,请翻译成中文,如果你想要输出英文,请先翻译成中文
However, above all else, all responses must adhere to the format of RESPONSE FORMAT INSTRUCTIONS.“

Also there is these in the prompt, could these also cause the reply sticking in English?:

"TOOLS
Assistant can ask the user to use tools to look up information that may be helpful in answering the users original question. The tools the human can use are:
web-browser: useful for when you need to find something on or summarize a webpage. input should be a comma separated list of "ONE valid http URL including protocol","what you want to find on the page or empty string for a summary".

RESPONSE FORMAT INSTRUCTIONS

Output a JSON markdown code snippet containing a valid JSON object in one of two formats:

Option 1:

Use this if you want the human to use a tool.
Markdown code snippet formatted in the following schema:

{
    "action": string, // The action to take. Must be one of [web-browser]
    "action_input": string // The input to the action. May be a stringified object.
}

Option #2 :

Use this if you want to respond directly and conversationally to the human. Markdown code snippet formatted in the following schema:

{
    "action": "Final Answer",
    "action_input": string // You should put what you want to return to use here and make sure to use valid json newline characters.
}

For both options, remember to always include the surrounding markdown code snippet delimiters (begin with " json" and end with " ")!

USER'S INPUT

Here is the user's input (remember to respond with a markdown code snippet of a json blob with a single action, and NOTHING else):
帮我摘要网页: https://880813076/10887934388739356ket_saves "

Expected behavior

Chinese to be outputted

von4xj4u

von4xj4u1#

目前所有的代理都有底层的提示,我们将在将来添加自定义代理,让用户指定自己的提示。

相关问题