From b66ae4ab8f6918ff277d65d3fa576d81f8be1268 Mon Sep 17 00:00:00 2001 From: niltonheck Date: Fri, 12 Sep 2025 13:43:06 -0300 Subject: [PATCH 1/2] fix: rename threshold to similarity in SearchParams type --- src/lib/types.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/types.ts b/src/lib/types.ts index 87a9f53..8a3516c 100644 --- a/src/lib/types.ts +++ b/src/lib/types.ts @@ -73,7 +73,7 @@ export type SearchParams = { datasourceIDs?: string[] boost?: { [key: string]: number } exact?: boolean - threshold?: number + similarity?: number tolerance?: number userID?: string groupBy?: { properties: string[]; max_results?: number } From 52bed24cde93bd076c9f5ef77a9ebe1133b1f431 Mon Sep 17 00:00:00 2001 From: niltonheck Date: Fri, 12 Sep 2025 13:49:26 -0300 Subject: [PATCH 2/2] fix: restore threshold property in SearchParams type --- src/lib/types.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/lib/types.ts b/src/lib/types.ts index 8a3516c..673e8e1 100644 --- a/src/lib/types.ts +++ b/src/lib/types.ts @@ -73,6 +73,7 @@ export type SearchParams = { datasourceIDs?: string[] boost?: { [key: string]: number } exact?: boolean + threshold?: number similarity?: number tolerance?: number userID?: string