NitroSQLite

CreateVectorTableOptions

API Reference


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

Interface: CreateVectorTableOptions

Settings for a vec0 virtual table created by createVectorTable.

Properties

column?

optional column?: string

Trusted SQL column identifier. Defaults to 'embedding'.


dimensions

dimensions: number

Number of dimensions passed to vec0 for the vector column.


distanceMetric?

optional distanceMetric?: VectorDistanceMetric

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


type?

optional type?: VectorColumnType

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