From 5293fbe8ba1c6e91798d8b719e26808dccb094d9 Mon Sep 17 00:00:00 2001 From: zxhlyh Date: Mon, 19 Jan 2026 15:35:07 +0800 Subject: [PATCH] fix: hit testing chunk detail summary --- .../hit-testing/components/chunk-detail-modal.tsx | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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 a2b31d01d6..4bfd16614f 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 @@ -12,6 +12,7 @@ import { cn } from '@/utils/classnames' import ImageList from '../../common/image-list' import Dot from '../../documents/detail/completed/common/dot' import { SegmentIndexTag } from '../../documents/detail/completed/common/segment-index-tag' +import SummaryText from '../../documents/detail/completed/common/summary-text' import ChildChunksItem from './child-chunks-item' import Mask from './mask' import Score from './score' @@ -28,7 +29,7 @@ const ChunkDetailModal = ({ onHide, }: ChunkDetailModalProps) => { const { t } = useTranslation() - const { segment, score, child_chunks, files } = payload + const { segment, score, child_chunks, files, summary } = payload const { position, content, sign_content, keywords, document, answer } = segment const isParentChildRetrieval = !!(child_chunks && child_chunks.length > 0) const extension = document.name.split('.').slice(-1)[0] as FileAppearanceTypeEnum @@ -104,11 +105,14 @@ const ChunkDetailModal = ({ {/* Mask */} - {(showImages || showKeywords) && ( + {(showImages || showKeywords || !!summary) && (
{showImages && ( )} + {!!summary && ( + + )} {showKeywords && (
{t(`${i18nPrefix}keyword`, { ns: 'datasetHitTesting' })}