balibabu
commited on
Commit
·
1c7ab64
1
Parent(s):
0b0058a
feat: Refine reteival of multi-turn conversation #2362 (#2539)
Browse files### What problem does this PR solve?
feat: Refine reteival of multi-turn conversation #2362
### Type of change
- [x] New Feature (non-breaking change which adds functionality)
web/src/locales/en.ts
CHANGED
@@ -435,6 +435,9 @@ The above is the content you need to summarize.`,
|
|
435 |
'To play the voice using voice conversion, please select TTS (speech conversion model) in the settings first.',
|
436 |
relatedQuestion: 'Related question',
|
437 |
answerTitle: 'R',
|
|
|
|
|
|
|
438 |
},
|
439 |
setting: {
|
440 |
profile: 'Profile',
|
|
|
435 |
'To play the voice using voice conversion, please select TTS (speech conversion model) in the settings first.',
|
436 |
relatedQuestion: 'Related question',
|
437 |
answerTitle: 'R',
|
438 |
+
multiTurn: 'Multi-trun optimization',
|
439 |
+
multiTurnTip:
|
440 |
+
'In multi-round conversations, the query to the knowledge base is optimized. The large model will be called to consume additional tokens.',
|
441 |
},
|
442 |
setting: {
|
443 |
profile: 'Profile',
|
web/src/locales/zh-traditional.ts
CHANGED
@@ -404,6 +404,9 @@ export default {
|
|
404 |
ttsTip: '是否用語音轉換播放語音,請先在設定裡面選擇TTS(語音轉換模型)。',
|
405 |
relatedQuestion: '相關問題',
|
406 |
answerTitle: '智慧回答',
|
|
|
|
|
|
|
407 |
},
|
408 |
setting: {
|
409 |
profile: '概述',
|
|
|
404 |
ttsTip: '是否用語音轉換播放語音,請先在設定裡面選擇TTS(語音轉換模型)。',
|
405 |
relatedQuestion: '相關問題',
|
406 |
answerTitle: '智慧回答',
|
407 |
+
multiTurn: '多輪對話優化',
|
408 |
+
multiTurnTip:
|
409 |
+
'在多輪對話的中,對去知識庫查詢的問題進行最佳化。會呼叫大模型額外消耗token。',
|
410 |
},
|
411 |
setting: {
|
412 |
profile: '概述',
|
web/src/locales/zh.ts
CHANGED
@@ -421,6 +421,9 @@ export default {
|
|
421 |
ttsTip: '是否用语音转换播放语音,请先在设置里面选择TTS(语音转换模型)。',
|
422 |
relatedQuestion: '相关问题',
|
423 |
answerTitle: '智能回答',
|
|
|
|
|
|
|
424 |
},
|
425 |
setting: {
|
426 |
profile: '概要',
|
|
|
421 |
ttsTip: '是否用语音转换播放语音,请先在设置里面选择TTS(语音转换模型)。',
|
422 |
relatedQuestion: '相关问题',
|
423 |
answerTitle: '智能回答',
|
424 |
+
multiTurn: '多轮对话优化',
|
425 |
+
multiTurnTip:
|
426 |
+
'在多轮对话的中,对去知识库查询的问题进行优化。会调用大模型额外消耗token。',
|
427 |
},
|
428 |
setting: {
|
429 |
profile: '概要',
|
web/src/pages/chat/chat-configuration-modal/prompt-engine.tsx
CHANGED
@@ -160,6 +160,14 @@ const PromptEngine = (
|
|
160 |
<Divider></Divider>
|
161 |
<SimilaritySlider isTooltipShown></SimilaritySlider>
|
162 |
<TopNItem></TopNItem>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
163 |
<Rerank></Rerank>
|
164 |
<section className={classNames(styles.variableContainer)}>
|
165 |
<Row align={'middle'} justify="end">
|
|
|
160 |
<Divider></Divider>
|
161 |
<SimilaritySlider isTooltipShown></SimilaritySlider>
|
162 |
<TopNItem></TopNItem>
|
163 |
+
<Form.Item
|
164 |
+
label={t('multiTurn')}
|
165 |
+
tooltip={t('multiTurnTip')}
|
166 |
+
name={['prompt_config', 'refine_multiturn']}
|
167 |
+
initialValue={true}
|
168 |
+
>
|
169 |
+
<Switch></Switch>
|
170 |
+
</Form.Item>
|
171 |
<Rerank></Rerank>
|
172 |
<section className={classNames(styles.variableContainer)}>
|
173 |
<Row align={'middle'} justify="end">
|