소스 검색

refac: knowledge search fuse threshold

Timothy Jaeryang Baek 1 개월 전
부모
커밋
c134de8799
1개의 변경된 파일1개의 추가작업 그리고 2개의 파일을 삭제
  1. 1 2
      src/lib/components/workspace/Knowledge.svelte

+ 1 - 2
src/lib/components/workspace/Knowledge.svelte

@@ -48,8 +48,7 @@
 				'user.name', // Ensures Fuse looks into item.user.name
 				'user.email' // Ensures Fuse looks into item.user.email
 			],
-			threshold: 0.0 // You might want to adjust this. Lower is more strict. Default is 0.6.
-			// 0.0 is exact match.
+			threshold: 0.3
 		});
 	} else {
 		fuse = null; // Reset fuse if knowledgeBases is empty