add a default value for search.limit to be consistent with python sdk

This commit is contained in:
qzhu
2024-04-04 11:50:54 -07:00
parent 8364d589ab
commit 7f49f4cc35

View File

@@ -38,7 +38,7 @@ export class Query<T = number[]> {
constructor (query?: T, tbl?: any, embeddings?: EmbeddingFunction<T>) {
this._tbl = tbl
this._query = query
this._limit = undefined
this._limit = 10
this._nprobes = 20
this._refineFactor = undefined
this._select = undefined