This commit is contained in:
yongtenglei 2025-12-11 16:21:41 +08:00
parent 41f496e0f0
commit da7ad4ac52
2 changed files with 6 additions and 1 deletions

View file

@ -75,6 +75,7 @@ export const useTestRetrieval = () => {
page, page,
size: pageSize, size: pageSize,
doc_ids: filterValue.doc_ids, doc_ids: filterValue.doc_ids,
highlight: true,
}; };
}, [filterValue, knowledgeBaseId, page, pageSize, values]); }, [filterValue, knowledgeBaseId, page, pageSize, values]);

View file

@ -209,7 +209,11 @@ export default function SearchingView({
<div <div
dangerouslySetInnerHTML={{ dangerouslySetInnerHTML={{
__html: DOMPurify.sanitize( __html: DOMPurify.sanitize(
`${chunk.highlight}...`, `${
chunk.highlight ??
chunk.content_with_weight ??
''
}...`,
), ),
}} }}
className="text-sm text-text-primary mb-1" className="text-sm text-text-primary mb-1"