### 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)tags/v0.12.0
| @@ -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', | |||
| @@ -404,6 +404,9 @@ export default { | |||
| ttsTip: '是否用語音轉換播放語音,請先在設定裡面選擇TTS(語音轉換模型)。', | |||
| relatedQuestion: '相關問題', | |||
| answerTitle: '智慧回答', | |||
| multiTurn: '多輪對話優化', | |||
| multiTurnTip: | |||
| '在多輪對話的中,對去知識庫查詢的問題進行最佳化。會呼叫大模型額外消耗token。', | |||
| }, | |||
| setting: { | |||
| profile: '概述', | |||
| @@ -421,6 +421,9 @@ export default { | |||
| ttsTip: '是否用语音转换播放语音,请先在设置里面选择TTS(语音转换模型)。', | |||
| relatedQuestion: '相关问题', | |||
| answerTitle: '智能回答', | |||
| multiTurn: '多轮对话优化', | |||
| multiTurnTip: | |||
| '在多轮对话的中,对去知识库查询的问题进行优化。会调用大模型额外消耗token。', | |||
| }, | |||
| setting: { | |||
| profile: '概要', | |||
| @@ -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"> | |||