feat: add fast_search to vectordb (#1693)

This commit is contained in:
Bert
2024-09-24 13:28:54 -03:00
committed by GitHub
parent e82f63b40a
commit d5021356b4
4 changed files with 24 additions and 3 deletions

View File

@@ -151,7 +151,8 @@ export class HttpLancedbClient {
prefilter: boolean,
refineFactor?: number,
columns?: string[],
filter?: string
filter?: string,
fastSearch?: boolean
): Promise<ArrowTable<any>> {
const result = await this.post(
`/v1/table/${tableName}/query/`,
@@ -162,7 +163,8 @@ export class HttpLancedbClient {
refineFactor,
columns,
filter,
prefilter
prefilter,
fast_search: fastSearch
},
undefined,
undefined,

View File

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