Adds [typos](https://github.com/crate-ci/typos) as a CI check and pre-commit hook, the same way Lance does it, so misspellings like the ones fixed in #4146 get caught automatically going forward. This also fixes the misspellings `typos` found across the repo (Rust, Python, TypeScript source, comments, and generated docs), and adds a small `.typos.toml` with `extend-words` entries for terms that are correct but look like typos: `AKS` (Azure Kubernetes Service), `RabitQ` (a real quantization algorithm name), `mmaped` (the actual name of a `candle-core` API we call), and `Writeable` (from Python's `_typeshed.WriteableBuffer`). Third-party license files are excluded. Fixes #4147 Co-authored-by: Claude Sonnet 5 <noreply@anthropic.com>
1.6 KiB
@lancedb/lancedb • Docs
@lancedb/lancedb / IndexOptions
Interface: IndexOptions
Properties
config?
optional config: Index;
Advanced index configuration
This option allows you to specify a specific index to create and also allows you to pass in configuration for training the index.
See the static methods on Index for details on the various index types.
If this is not supplied then column data type(s) and column statistics will be used to determine the most useful kind of index to create.
name?
optional name: string;
Optional custom name for the index.
If not provided, a default name will be generated based on the column name.
replace?
optional replace: boolean;
Whether to replace the existing index
If this is false, and another index already exists on the same columns and the same name, then an error will be returned. This is true even if that index is out of date.
The default is true
train?
optional train: boolean;
Whether to train the index with existing data.
If true (default), the index will be trained with existing data in the table. If false, the index will be created empty and populated as new data is added.
Note: This option is only supported for scalar indices. Vector indices always train.
waitTimeoutSeconds?
optional waitTimeoutSeconds: number;
Timeout in seconds to wait for index creation to complete.
If not specified, the method will return immediately after starting the index creation.