fix: filter empty value in xlsx to improve vector similarity hit (#422)

This commit is contained in:
lisaifei@cvte.com
2023-06-21 11:25:52 +08:00
committed by GitHub
parent d637a147ee
commit 23ef2262bd
3 changed files with 6 additions and 3 deletions

View File

@@ -137,8 +137,9 @@ const HitTesting: FC<Props> = ({ datasetId }: Props) => {
<div className='text-gray-600 font-semibold mb-4'>{t('datasetHitTesting.hit.title')}</div>
<div className='overflow-auto flex-1'>
<div className={s.cardWrapper}>
{hitResult?.records.map((record) => {
{hitResult?.records.map((record, idx) => {
return <SegmentCard
key={idx}
loading={false}
detail={record.segment as any}
score={record.score}