diff --git a/web/app/components/datasets/create/step-two/index.tsx b/web/app/components/datasets/create/step-two/index.tsx index 1ae566177b..db7b7f3ae5 100644 --- a/web/app/components/datasets/create/step-two/index.tsx +++ b/web/app/components/datasets/create/step-two/index.tsx @@ -656,7 +656,7 @@ const StepTwo = ({ />
= ({
{isLoading ? : null} {((isFullDocMode && !isLoading) || !collapsed) - ?
+ ?
{isParagraphMode && (
diff --git a/web/app/components/datasets/documents/detail/completed/common/action-buttons.tsx b/web/app/components/datasets/documents/detail/completed/common/action-buttons.tsx index 5ade8267c2..15bff500b5 100644 --- a/web/app/components/datasets/documents/detail/completed/common/action-buttons.tsx +++ b/web/app/components/datasets/documents/detail/completed/common/action-buttons.tsx @@ -31,9 +31,9 @@ const ActionButtons: FC = ({ }) useKeyPress(`${getKeyboardKeyCodeBySystem('ctrl')}.s`, (e) => { + e.preventDefault() if (loading) return - e.preventDefault() handleSave() } , { exactMatch: true, useCapture: true }) diff --git a/web/app/components/datasets/documents/detail/completed/index.tsx b/web/app/components/datasets/documents/detail/completed/index.tsx index 7e99db4f55..91697db5ce 100644 --- a/web/app/components/datasets/documents/detail/completed/index.tsx +++ b/web/app/components/datasets/documents/detail/completed/index.tsx @@ -538,7 +538,7 @@ const Completed: FC = ({ { isFullDocMode ?
= ({
-
-
C-{position}
+
+
C-{position}
- {content} + {content}
) } diff --git a/web/app/components/datasets/hit-testing/components/chunk-detail-modal.tsx b/web/app/components/datasets/hit-testing/components/chunk-detail-modal.tsx index 53fb468001..c1e2e41406 100644 --- a/web/app/components/datasets/hit-testing/components/chunk-detail-modal.tsx +++ b/web/app/components/datasets/hit-testing/components/chunk-detail-modal.tsx @@ -38,8 +38,8 @@ const ChunkDetailModal: FC = ({ onClose={onHide} className={cn(isParentChildRetrieval ? '!min-w-[1200px]' : '!min-w-[720px]')} > -
-
+
+
{/* Meta info */}
diff --git a/web/app/components/datasets/hit-testing/components/score.tsx b/web/app/components/datasets/hit-testing/components/score.tsx index 6f48edd4bd..115141eaaa 100644 --- a/web/app/components/datasets/hit-testing/components/score.tsx +++ b/web/app/components/datasets/hit-testing/components/score.tsx @@ -13,7 +13,7 @@ const Score: FC = ({ besideChunkName, }) => { return ( -
+
score
diff --git a/web/i18n/en-US/dataset-creation.ts b/web/i18n/en-US/dataset-creation.ts index c94cb7ce21..94fb54cfc5 100644 --- a/web/i18n/en-US/dataset-creation.ts +++ b/web/i18n/en-US/dataset-creation.ts @@ -136,6 +136,7 @@ const translation = { QATitle: 'Segmenting in Question & Answer format', QATip: 'Enable this option will consume more tokens', QALanguage: 'Segment using', + useQALanguage: 'Chunk using Q&A format in', estimateCost: 'Estimation', estimateSegment: 'Estimated chunks', segmentCount: 'chunks', diff --git a/web/i18n/zh-Hans/dataset-creation.ts b/web/i18n/zh-Hans/dataset-creation.ts index 30e32023f7..226a06ec3a 100644 --- a/web/i18n/zh-Hans/dataset-creation.ts +++ b/web/i18n/zh-Hans/dataset-creation.ts @@ -136,6 +136,7 @@ const translation = { QATitle: '采用 Q&A 分段模式', QATip: '开启后将会消耗额外的 token', QALanguage: '分段使用', + useQALanguage: '使用 Q&A 分段,语言', estimateCost: '执行嵌入预估消耗', estimateSegment: '预估分段数', segmentCount: '段',