Classes
FieldIndex
Internal Instances of theFieldIndex
class represents a field index created by vector_index
, keyword_index
, or semantic_index
functions.
FieldSpec
Internal Instances of theFieldSpec
class represents a field specification created by text
, int
, float
, bool
, f32_vector
, u8_vector
, binary_vector
, f32_sparse_vector
, u8_sparse_vector
, bytes
, or list
functions.
Methods
required()
FieldSpec
optional()
FieldSpec
index()
Parameter | Type |
---|---|
index | FieldIndex |
FieldSpec
Functions
text()
FieldSpec
int()
FieldSpec
float()
FieldSpec
bool()
FieldSpec
f32_vector()
Parameter | Type |
---|---|
dimension | int |
FieldSpec
u8_vector()
Parameter | Type |
---|---|
dimension | int |
FieldSpec
binary_vector()
Parameter | Type |
---|---|
dimension | int |
FieldSpec
f32_sparse_vector()
FieldSpec
u8_sparse_vector()
FieldSpec
bytes()
FieldSpec
list()
Parameter | Type |
---|---|
value_type | Literal[‘text’, ‘integer’, ‘float’] |
FieldSpec
vector_index()
Parameter | Type |
---|---|
metric | Literal[‘cosine’, ‘euclidean’, ‘dot_product’, ‘hamming’] |
FieldIndex
keyword_index()
FieldIndex
semantic_index()
Parameter | Type |
---|---|
model | str |
FieldIndex