chore: convert all js doc test to use snippet. (#881)

This commit is contained in:
Lei Xu
2024-01-28 11:39:25 -08:00
committed by GitHub
parent 5f62302614
commit 22b9eceb12
12 changed files with 246 additions and 232 deletions

View File

@@ -443,6 +443,8 @@ export interface Table<T = number[]> {
*/
indexStats: (indexUuid: string) => Promise<IndexStats>
filter (value: string): Query<T>
schema: Promise<Schema>
}

View File

@@ -270,6 +270,10 @@ export class RemoteTable<T = number[]> implements Table<T> {
return new RemoteQuery(query, this._client, this._name) //, this._embeddings_new)
}
filter (where: string): Query<T> {
throw new Error('Not implemented')
}
async add (data: Array<Record<string, unknown>> | ArrowTable): Promise<number> {
let tbl: ArrowTable
if (data instanceof ArrowTable) {