feat: Refine reteival of multi-turn conversation #2362 (#2539)

### 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)
This commit is contained in:
balibabu 2024-09-23 15:26:11 +08:00 committed by GitHub
parent dd019e7ba1
commit 521ea6afcb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 17 additions and 0 deletions

View File

@ -435,6 +435,9 @@ The above is the content you need to summarize.`,
'To play the voice using voice conversion, please select TTS (speech conversion model) in the settings first.',
relatedQuestion: 'Related question',
answerTitle: 'R',
multiTurn: 'Multi-trun optimization',
multiTurnTip:
'In multi-round conversations, the query to the knowledge base is optimized. The large model will be called to consume additional tokens.',
},
setting: {
profile: 'Profile',

View File

@ -404,6 +404,9 @@ export default {
ttsTip: '是否用語音轉換播放語音請先在設定裡面選擇TTS語音轉換模型。',
relatedQuestion: '相關問題',
answerTitle: '智慧回答',
multiTurn: '多輪對話優化',
multiTurnTip:
'在多輪對話的中對去知識庫查詢的問題進行最佳化。會呼叫大模型額外消耗token。',
},
setting: {
profile: '概述',

View File

@ -421,6 +421,9 @@ export default {
ttsTip: '是否用语音转换播放语音请先在设置里面选择TTS语音转换模型。',
relatedQuestion: '相关问题',
answerTitle: '智能回答',
multiTurn: '多轮对话优化',
multiTurnTip:
'在多轮对话的中对去知识库查询的问题进行优化。会调用大模型额外消耗token。',
},
setting: {
profile: '概要',

View File

@ -160,6 +160,14 @@ const PromptEngine = (
<Divider></Divider>
<SimilaritySlider isTooltipShown></SimilaritySlider>
<TopNItem></TopNItem>
<Form.Item
label={t('multiTurn')}
tooltip={t('multiTurnTip')}
name={['prompt_config', 'refine_multiturn']}
initialValue={true}
>
<Switch></Switch>
</Form.Item>
<Rerank></Rerank>
<section className={classNames(styles.variableContainer)}>
<Row align={'middle'} justify="end">