### What problem does this PR solve? 1. Add the missing translations.  2. Shorten overly long tips.  ### Type of change - [ ] Bug Fix (non-breaking change which fixes an issue) - [ ] New Feature (non-breaking change which adds functionality) - [ ] Documentation Update - [ ] Refactoring - [ ] Performance Improvement - [x] Other (please describe):tags/v0.17.1
| (title: React.ReactNode | string) => { | (title: React.ReactNode | string) => { | ||||
| return { | return { | ||||
| title: typeof title === 'string' ? t(title) : title, | title: typeof title === 'string' ? t(title) : title, | ||||
| overlayInnerStyle: { width: '50vw' }, | |||||
| overlayInnerStyle: { width: '32vw' }, | |||||
| }; | }; | ||||
| }, | }, | ||||
| [t], | [t], | ||||
| label={t('useGraphRag')} | label={t('useGraphRag')} | ||||
| initialValue={false} | initialValue={false} | ||||
| valuePropName="checked" | valuePropName="checked" | ||||
| tooltip={renderWideTooltip('useGraphRagTip')} | |||||
| tooltip={t('useGraphRagTip')} | |||||
| > | > | ||||
| <Switch /> | <Switch /> | ||||
| </Form.Item> | </Form.Item> |
| 'This optimizes user queries using context in a multi-round conversation. When enabled, it will consume additional LLM tokens.', | 'This optimizes user queries using context in a multi-round conversation. When enabled, it will consume additional LLM tokens.', | ||||
| howUseId: 'How to use chat ID?', | howUseId: 'How to use chat ID?', | ||||
| description: 'Description of assistant', | description: 'Description of assistant', | ||||
| descriptionPlaceholder: 'e.g. A chat assistant for resume.', | |||||
| useKnowledgeGraph: 'Use knowledge graph', | useKnowledgeGraph: 'Use knowledge graph', | ||||
| useKnowledgeGraphTip: | useKnowledgeGraphTip: | ||||
| 'It will retrieve descriptions of relevant entities,relations and community reports, which will enhance inference of multi-hop and complex question.', | 'It will retrieve descriptions of relevant entities,relations and community reports, which will enhance inference of multi-hop and complex question.', |
| '在多輪對話的中,對去知識庫查詢的問題進行最佳化。會呼叫大模型額外消耗token。', | '在多輪對話的中,對去知識庫查詢的問題進行最佳化。會呼叫大模型額外消耗token。', | ||||
| howUseId: '如何使用聊天ID?', | howUseId: '如何使用聊天ID?', | ||||
| description: '助理描述', | description: '助理描述', | ||||
| descriptionPlaceholder: | |||||
| '例如 你是一個專業的簡曆助手,隻能回答簡曆的問題。', | |||||
| useKnowledgeGraph: '使用知識圖譜', | useKnowledgeGraph: '使用知識圖譜', | ||||
| useKnowledgeGraph提示: | useKnowledgeGraph提示: | ||||
| '它將檢索相關實體、關係和社區報告的描述,這將增強多跳和複雜問題的推理。', | '它將檢索相關實體、關係和社區報告的描述,這將增強多跳和複雜問題的推理。', |
| '在多轮对话的中,对去知识库查询的问题进行优化。会调用大模型额外消耗token。', | '在多轮对话的中,对去知识库查询的问题进行优化。会调用大模型额外消耗token。', | ||||
| howUseId: '如何使用聊天ID?', | howUseId: '如何使用聊天ID?', | ||||
| description: '助理描述', | description: '助理描述', | ||||
| descriptionPlaceholder: | |||||
| '例如 你是一个专业的简历助手,只能回答简历的问题。', | |||||
| useKnowledgeGraph: '使用知识图谱', | useKnowledgeGraph: '使用知识图谱', | ||||
| useKnowledgeGraphTip: | useKnowledgeGraphTip: | ||||
| '它将检索相关实体、关系和社区报告的描述,这将增强多跳和复杂问题的推理。', | '它将检索相关实体、关系和社区报告的描述,这将增强多跳和复杂问题的推理。', |