Classes
List
Internal Instances of theList class are used to represent lists of values in TopK.
Usually created using data constructors such as f32_list(), i32_list(), etc.
SparseVector
Internal Instances of theSparseVector class are used to represent sparse vectors in TopK.
Usually created using data constructors such as f32_sparse_vector() or u8_sparse_vector().
Functions
f32_vector()
| Parameter | Type |
|---|---|
data | list[float] |
List
u8_vector()
| Parameter | Type |
|---|---|
data | list[int] |
List
i8_vector()
| Parameter | Type |
|---|---|
data | list[int] |
List
binary_vector()
| Parameter | Type |
|---|---|
data | list[int] |
List
f32_sparse_vector()
| Parameter | Type |
|---|---|
data | dict[int, float] |
SparseVector
u8_sparse_vector()
| Parameter | Type |
|---|---|
data | dict[int, int] |
SparseVector
bytes()
| Parameter | Type |
|---|---|
data | list[int] | bytes |
List
u32_list()
| Parameter | Type |
|---|---|
data | list[int] |
List
i32_list()
| Parameter | Type |
|---|---|
data | list[int] |
List
i64_list()
| Parameter | Type |
|---|---|
data | list[int] |
List
f32_list()
| Parameter | Type |
|---|---|
data | list[float] |
List
f64_list()
| Parameter | Type |
|---|---|
data | list[float] |
List
string_list()
| Parameter | Type |
|---|---|
data | list[str] |
List