mirror of
https://github.com/lancedb/lancedb.git
synced 2026-05-16 11:30:41 +00:00
- adds `loss` into the index stats for vector index - now `optimize` can retrain the vector index --------- Signed-off-by: BubbleCal <bubble-cal@outlook.com>
71 lines
883 B
Markdown
71 lines
883 B
Markdown
[**@lancedb/lancedb**](../README.md) • **Docs**
|
|
|
|
***
|
|
|
|
[@lancedb/lancedb](../globals.md) / IndexStatistics
|
|
|
|
# Interface: IndexStatistics
|
|
|
|
## Properties
|
|
|
|
### distanceType?
|
|
|
|
```ts
|
|
optional distanceType: string;
|
|
```
|
|
|
|
The type of the distance function used by the index. This is only
|
|
present for vector indices. Scalar and full text search indices do
|
|
not have a distance function.
|
|
|
|
***
|
|
|
|
### indexType
|
|
|
|
```ts
|
|
indexType: string;
|
|
```
|
|
|
|
The type of the index
|
|
|
|
***
|
|
|
|
### loss?
|
|
|
|
```ts
|
|
optional loss: number;
|
|
```
|
|
|
|
The KMeans loss value of the index,
|
|
it is only present for vector indices.
|
|
|
|
***
|
|
|
|
### numIndexedRows
|
|
|
|
```ts
|
|
numIndexedRows: number;
|
|
```
|
|
|
|
The number of rows indexed by the index
|
|
|
|
***
|
|
|
|
### numIndices?
|
|
|
|
```ts
|
|
optional numIndices: number;
|
|
```
|
|
|
|
The number of parts this index is split into.
|
|
|
|
***
|
|
|
|
### numUnindexedRows
|
|
|
|
```ts
|
|
numUnindexedRows: number;
|
|
```
|
|
|
|
The number of rows not indexed
|