mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-12 04:15:25 +00:00
refac: knowledge search fuse threshold
This commit is contained in:
parent
ad98d4300b
commit
c134de8799
1 changed files with 1 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue