NitroSQLite
React native nitro sqlite vecInterfaces

API Reference / react-native-nitro-sqlite-vec / CreateVectorTableOptions

Interface: CreateVectorTableOptions

Declaration: TypeScript · View source on GitHub

Settings for a vec0 virtual table created by createVectorTable.

Properties

column?

optional column?: string

Defined in: index.ts:28

Trusted SQL column identifier. Defaults to 'embedding'.


dimensions

dimensions: number

Defined in: index.ts:22

Number of dimensions passed to vec0 for the vector column.


distanceMetric?

optional distanceMetric?: VectorDistanceMetric

Defined in: index.ts:26

Distance metric. Omit to use sqlite-vec's default (L2).


type?

optional type?: VectorColumnType

Defined in: index.ts:24

Vector storage type. Defaults to 'float' (float32).