Skip to content

Commit

Permalink
feat: Refine reteival of multi-turn conversation infiniflow#2362 (inf…
Browse files Browse the repository at this point in the history
…iniflow#2539)

### What problem does this PR solve?

feat: Refine reteival of multi-turn conversation infiniflow#2362

### Type of change

- [x] New Feature (non-breaking change which adds functionality)
  • Loading branch information
cike8899 authored Sep 23, 2024
1 parent 87df25d commit e5f415e
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 0 deletions.
3 changes: 3 additions & 0 deletions web/src/locales/en.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
3 changes: 3 additions & 0 deletions web/src/locales/zh-traditional.ts
Original file line number Diff line number Diff line change
Expand Up @@ -404,6 +404,9 @@ export default {
ttsTip: '是否用語音轉換播放語音,請先在設定裡面選擇TTS(語音轉換模型)。',
relatedQuestion: '相關問題',
answerTitle: '智慧回答',
multiTurn: '多輪對話優化',
multiTurnTip:
'在多輪對話的中,對去知識庫查詢的問題進行最佳化。會呼叫大模型額外消耗token。',
},
setting: {
profile: '概述',
Expand Down
3 changes: 3 additions & 0 deletions web/src/locales/zh.ts
Original file line number Diff line number Diff line change
Expand Up @@ -421,6 +421,9 @@ export default {
ttsTip: '是否用语音转换播放语音,请先在设置里面选择TTS(语音转换模型)。',
relatedQuestion: '相关问题',
answerTitle: '智能回答',
multiTurn: '多轮对话优化',
multiTurnTip:
'在多轮对话的中,对去知识库查询的问题进行优化。会调用大模型额外消耗token。',
},
setting: {
profile: '概要',
Expand Down
8 changes: 8 additions & 0 deletions web/src/pages/chat/chat-configuration-modal/prompt-engine.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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">
Expand Down

0 comments on commit e5f415e

Please sign in to comment.