mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Modify weightings for fuzzy WI search
This commit is contained in:
@ -1903,11 +1903,13 @@ export function fuzzySearchWorldInfo(data, searchValue) {
|
|||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
const fuse = new Fuse(data, {
|
const fuse = new Fuse(data, {
|
||||||
keys: [
|
keys: [
|
||||||
{ name: 'key', weight: 3 },
|
{ name: 'key', weight: 8 },
|
||||||
|
{ name: 'group', weight: 6 },
|
||||||
|
{ name: 'comment', weight: 5 },
|
||||||
|
{ name: 'keysecondary', weight: 5 },
|
||||||
{ name: 'content', weight: 3 },
|
{ name: 'content', weight: 3 },
|
||||||
{ name: 'comment', weight: 2 },
|
|
||||||
{ name: 'keysecondary', weight: 2 },
|
|
||||||
{ name: 'uid', weight: 1 },
|
{ name: 'uid', weight: 1 },
|
||||||
|
{ name: 'automationId', weight: 0.25 },
|
||||||
],
|
],
|
||||||
includeScore: true,
|
includeScore: true,
|
||||||
ignoreLocation: true,
|
ignoreLocation: true,
|
||||||
|
Reference in New Issue
Block a user