@lancedb/lancedb 0.21.1 → 0.21.2-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/indices.d.ts +13 -1
- package/dist/indices.js +1 -1
- package/dist/native.d.ts +1 -1
- package/dist/table.d.ts +2 -2
- package/package.json +9 -9
package/dist/indices.d.ts
CHANGED
|
@@ -410,7 +410,7 @@ export interface FtsOptions {
|
|
|
410
410
|
*
|
|
411
411
|
* "raw" - Raw tokenizer. This tokenizer does not split the text into tokens and indexes the entire text as a single token.
|
|
412
412
|
*/
|
|
413
|
-
baseTokenizer?: "simple" | "whitespace" | "raw";
|
|
413
|
+
baseTokenizer?: "simple" | "whitespace" | "raw" | "ngram";
|
|
414
414
|
/**
|
|
415
415
|
* language for stemming and stop words
|
|
416
416
|
* this is only used when `stem` or `remove_stop_words` is true
|
|
@@ -437,6 +437,18 @@ export interface FtsOptions {
|
|
|
437
437
|
* whether to remove punctuation
|
|
438
438
|
*/
|
|
439
439
|
asciiFolding?: boolean;
|
|
440
|
+
/**
|
|
441
|
+
* ngram min length
|
|
442
|
+
*/
|
|
443
|
+
ngramMinLength?: number;
|
|
444
|
+
/**
|
|
445
|
+
* ngram max length
|
|
446
|
+
*/
|
|
447
|
+
ngramMaxLength?: number;
|
|
448
|
+
/**
|
|
449
|
+
* whether to only index the prefix of the token for ngram tokenizer
|
|
450
|
+
*/
|
|
451
|
+
prefixOnly?: boolean;
|
|
440
452
|
}
|
|
441
453
|
export declare class Index {
|
|
442
454
|
private readonly inner;
|
package/dist/indices.js
CHANGED
|
@@ -107,7 +107,7 @@ class Index {
|
|
|
107
107
|
* You can combine filters with full text search.
|
|
108
108
|
*/
|
|
109
109
|
static fts(options) {
|
|
110
|
-
return new Index(native_1.Index.fts(options?.withPosition, options?.baseTokenizer, options?.language, options?.maxTokenLength, options?.lowercase, options?.stem, options?.removeStopWords, options?.asciiFolding));
|
|
110
|
+
return new Index(native_1.Index.fts(options?.withPosition, options?.baseTokenizer, options?.language, options?.maxTokenLength, options?.lowercase, options?.stem, options?.removeStopWords, options?.asciiFolding, options?.ngramMinLength, options?.ngramMaxLength, options?.prefixOnly));
|
|
111
111
|
}
|
|
112
112
|
/**
|
|
113
113
|
*
|
package/dist/native.d.ts
CHANGED
|
@@ -325,7 +325,7 @@ export class Index {
|
|
|
325
325
|
static btree(): Index
|
|
326
326
|
static bitmap(): Index
|
|
327
327
|
static labelList(): Index
|
|
328
|
-
static fts(withPosition?: boolean | undefined | null, baseTokenizer?: string | undefined | null, language?: string | undefined | null, maxTokenLength?: number | undefined | null, lowerCase?: boolean | undefined | null, stem?: boolean | undefined | null, removeStopWords?: boolean | undefined | null, asciiFolding?: boolean | undefined | null): Index
|
|
328
|
+
static fts(withPosition?: boolean | undefined | null, baseTokenizer?: string | undefined | null, language?: string | undefined | null, maxTokenLength?: number | undefined | null, lowerCase?: boolean | undefined | null, stem?: boolean | undefined | null, removeStopWords?: boolean | undefined | null, asciiFolding?: boolean | undefined | null, ngramMinLength?: number | undefined | null, ngramMaxLength?: number | undefined | null, prefixOnly?: boolean | undefined | null): Index
|
|
329
329
|
static hnswPq(distanceType?: string | undefined | null, numPartitions?: number | undefined | null, numSubVectors?: number | undefined | null, maxIterations?: number | undefined | null, sampleRate?: number | undefined | null, m?: number | undefined | null, efConstruction?: number | undefined | null): Index
|
|
330
330
|
static hnswSq(distanceType?: string | undefined | null, numPartitions?: number | undefined | null, maxIterations?: number | undefined | null, sampleRate?: number | undefined | null, m?: number | undefined | null, efConstruction?: number | undefined | null): Index
|
|
331
331
|
}
|
package/dist/table.d.ts
CHANGED
|
@@ -38,10 +38,10 @@ export interface OptimizeOptions {
|
|
|
38
38
|
* // Delete all versions older than 1 day
|
|
39
39
|
* const olderThan = new Date();
|
|
40
40
|
* olderThan.setDate(olderThan.getDate() - 1));
|
|
41
|
-
* tbl.
|
|
41
|
+
* tbl.optimize({cleanupOlderThan: olderThan});
|
|
42
42
|
*
|
|
43
43
|
* // Delete all versions except the current version
|
|
44
|
-
* tbl.
|
|
44
|
+
* tbl.optimize({cleanupOlderThan: new Date()});
|
|
45
45
|
*/
|
|
46
46
|
cleanupOlderThan: Date;
|
|
47
47
|
deleteUnverified: boolean;
|
package/package.json
CHANGED
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"ann"
|
|
12
12
|
],
|
|
13
13
|
"private": false,
|
|
14
|
-
"version": "0.21.
|
|
14
|
+
"version": "0.21.2-beta.0",
|
|
15
15
|
"main": "dist/index.js",
|
|
16
16
|
"exports": {
|
|
17
17
|
".": "./dist/index.js",
|
|
@@ -100,14 +100,14 @@
|
|
|
100
100
|
"reflect-metadata": "^0.2.2"
|
|
101
101
|
},
|
|
102
102
|
"optionalDependencies": {
|
|
103
|
-
"@lancedb/lancedb-darwin-x64": "0.21.
|
|
104
|
-
"@lancedb/lancedb-darwin-arm64": "0.21.
|
|
105
|
-
"@lancedb/lancedb-linux-x64-gnu": "0.21.
|
|
106
|
-
"@lancedb/lancedb-linux-arm64-gnu": "0.21.
|
|
107
|
-
"@lancedb/lancedb-linux-x64-musl": "0.21.
|
|
108
|
-
"@lancedb/lancedb-linux-arm64-musl": "0.21.
|
|
109
|
-
"@lancedb/lancedb-win32-x64-msvc": "0.21.
|
|
110
|
-
"@lancedb/lancedb-win32-arm64-msvc": "0.21.
|
|
103
|
+
"@lancedb/lancedb-darwin-x64": "0.21.2-beta.0",
|
|
104
|
+
"@lancedb/lancedb-darwin-arm64": "0.21.2-beta.0",
|
|
105
|
+
"@lancedb/lancedb-linux-x64-gnu": "0.21.2-beta.0",
|
|
106
|
+
"@lancedb/lancedb-linux-arm64-gnu": "0.21.2-beta.0",
|
|
107
|
+
"@lancedb/lancedb-linux-x64-musl": "0.21.2-beta.0",
|
|
108
|
+
"@lancedb/lancedb-linux-arm64-musl": "0.21.2-beta.0",
|
|
109
|
+
"@lancedb/lancedb-win32-x64-msvc": "0.21.2-beta.0",
|
|
110
|
+
"@lancedb/lancedb-win32-arm64-msvc": "0.21.2-beta.0"
|
|
111
111
|
},
|
|
112
112
|
"peerDependencies": {
|
|
113
113
|
"apache-arrow": ">=15.0.0 <=18.1.0"
|