feat: enable prefilter in node js (#675)

enable prefiltering in node js, both native and remote
This commit is contained in:
Rob Meng
2023-12-01 16:49:10 -05:00
committed by Weston Pace
parent c1c3083b74
commit 59c25574f0
5 changed files with 30 additions and 3 deletions

View File

@@ -38,6 +38,7 @@ export class HttpLancedbClient {
vector: number[],
k: number,
nprobes: number,
prefilter: boolean,
refineFactor?: number,
columns?: string[],
filter?: string
@@ -50,7 +51,8 @@ export class HttpLancedbClient {
nprobes,
refineFactor,
columns,
filter
filter,
prefilter
},
{
headers: {

View File

@@ -156,7 +156,8 @@ export class RemoteQuery<T = number[]> extends Query<T> {
(this as any)._nprobes,
(this as any)._refineFactor,
(this as any)._select,
(this as any)._filter
(this as any)._filter,
(this as any)._prefilter
)
return data.toArray().map((entry: Record<string, unknown>) => {