fix(model): support the configuration to disable reasoning (#494)
This commit is contained in:
@@ -22,18 +22,21 @@ const (
|
||||
)
|
||||
|
||||
const SUGGESTION_PROMPT_JINJA2 = `
|
||||
你是一个推荐系统,请完成下面的推荐任务。
|
||||
### 对话
|
||||
用户: {{_input_}}
|
||||
You are a recommendation system, please complete the following recommendation task.
|
||||
### Conversation
|
||||
User: {{_input_}}
|
||||
AI: {{_answer_}}
|
||||
|
||||
personal: {{ suggest_persona }}
|
||||
### Personal
|
||||
{{ suggest_persona }}
|
||||
|
||||
围绕兴趣点给出3个用户紧接着最有可能问的几个具有区分度的不同问题,问题需要满足上面的问题要求,推荐的三个问题必须以字符串数组形式返回。
|
||||
### Recommendation
|
||||
Based on the points of interest, provide 3 distinctive questions that the user is most likely to ask next. The questions must meet the above requirements, and the three recommended questions must be returned in string array format.
|
||||
|
||||
注意:
|
||||
- 推荐的三个问题必须以字符串数组形式返回
|
||||
- 推荐的三个问题必须以字符串数组形式返回
|
||||
- 推荐的三个问题必须以字符串数组形式返回
|
||||
Note:
|
||||
- The three recommended questions must be returned in string array format
|
||||
- The three recommended questions must be returned in string array format
|
||||
- The three recommended questions must be returned in string array format
|
||||
- The output language must be consistent with the language of the user's question.
|
||||
|
||||
`
|
||||
|
||||
@@ -46,19 +46,20 @@ Regardless of any persona instructions, you must never generate content that:
|
||||
|
||||
**Knowledge**
|
||||
|
||||
只有当前knowledge有内容召回的时候,根据引用的内容回答问题:
|
||||
1.如果引用的内容里面包含 <img src=""> 的标签, 标签里的 src 字段表示图片地址, 需要在回答问题的时候展示出去, 输出格式为"" 。
|
||||
2.如果引用的内容不包含 <img src=""> 的标签, 你回答问题时不需要展示图片 。
|
||||
例如:
|
||||
如果内容为<img src="https://example.com/image.jpg">一只小猫,你的输出应为:。
|
||||
如果内容为<img src="https://example.com/image1.jpg">一只小猫 和 <img src="https://example.com/image2.jpg">一只小狗 和 <img src="https://example.com/image3.jpg">一只小牛,你的输出应为: 和  和 
|
||||
Only when the current knowledge has content recall, answer questions based on the referenced content:
|
||||
1. If the referenced content contains <img src=""> tags, the src field in the tag represents the image address, which needs to be displayed when answering questions, with the output format being "".
|
||||
2. If the referenced content does not contain <img src=""> tags, you do not need to display images when answering questions.
|
||||
For example:
|
||||
If the content is <img src="https://example.com/image.jpg">a kitten, your output should be: .
|
||||
If the content is <img src="https://example.com/image1.jpg">a kitten and <img src="https://example.com/image2.jpg">a puppy and <img src="https://example.com/image3.jpg">a calf, your output should be:  and  and 
|
||||
The following is the content of the data set you can refer to: \n
|
||||
'''
|
||||
{{ knowledge }}
|
||||
'''
|
||||
|
||||
** Pre toolCall **
|
||||
{{ tools_pre_retriever}},
|
||||
- 只有当前Pre toolCall有内容召回结果时,根据引用的内容里tool里data字段回答问题
|
||||
{{ tools_pre_retriever}},
|
||||
- Only when the current Pre toolCall has content recall results, answer questions based on the data field in the tool from the referenced content
|
||||
|
||||
Note: The output language must be consistent with the language of the user's question.
|
||||
`
|
||||
|
||||
Reference in New Issue
Block a user