Functions
binaryVector()
Parameter | Type |
---|---|
options | VectorOptions |
FieldSpec
bool()
FieldSpec
bytes()
FieldSpec
f32SparseVector()
FieldSpec
f32Vector()
Parameter | Type |
---|---|
options | VectorOptions |
FieldSpec
float()
FieldSpec
int()
FieldSpec
keywordIndex()
FieldIndex
list()
Parameter | Type |
---|---|
options | ListOptions |
FieldSpec
semanticIndex()
Parameter | Type |
---|---|
options? | SemanticIndexOptions |
FieldIndex
text()
FieldSpec
u8SparseVector()
FieldSpec
u8Vector()
Parameter | Type |
---|---|
options | VectorOptions |
FieldSpec
vectorIndex()
Parameter | Type |
---|---|
options | VectorIndexOptions |
FieldIndex
Classes
FieldIndex
Internal
FieldSpec
Internal
Methods
index()
Parameter | Type |
---|---|
index | FieldIndex |
FieldSpec
required()
FieldSpec
Interfaces
ListOptions
Options for list field specifications. This struct contains configuration options for list fields, including the type of values the list can contain. PropertiesProperty | Type | Description |
---|---|---|
valueType | ListValueType | The type of values the list can contain |
SemanticIndexOptions
Options for semantic index specifications. This struct contains configuration options for semantic indexes, including the model and embedding type to use. PropertiesProperty | Type | Description |
---|---|---|
embeddingType? | EmbeddingDataType | The type of embedding data |
model? | string | The embedding model to use |
VectorIndexOptions
Options for vector index specifications. This struct contains configuration options for vector indexes, including the distance metric to use. PropertiesProperty | Type | Description |
---|---|---|
metric | VectorDistanceMetric | The distance metric to use for vector similarity |
VectorOptions
Options for vector field specifications. This struct contains configuration options for vector fields, including the required dimension parameter. PropertiesProperty | Type | Description |
---|---|---|
dimension | number | The dimension of the vector |