frontend
This commit is contained in:
parent
41f496e0f0
commit
da7ad4ac52
2 changed files with 6 additions and 1 deletions
|
|
@ -75,6 +75,7 @@ export const useTestRetrieval = () => {
|
|||
page,
|
||||
size: pageSize,
|
||||
doc_ids: filterValue.doc_ids,
|
||||
highlight: true,
|
||||
};
|
||||
}, [filterValue, knowledgeBaseId, page, pageSize, values]);
|
||||
|
||||
|
|
|
|||
|
|
@ -209,7 +209,11 @@ export default function SearchingView({
|
|||
<div
|
||||
dangerouslySetInnerHTML={{
|
||||
__html: DOMPurify.sanitize(
|
||||
`${chunk.highlight}...`,
|
||||
`${
|
||||
chunk.highlight ??
|
||||
chunk.content_with_weight ??
|
||||
''
|
||||
}...`,
|
||||
),
|
||||
}}
|
||||
className="text-sm text-text-primary mb-1"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue