add
API Definition
def add(n:int, input: numpy.ndarray, consecutive: int, reorder: int, level: int) -> int
Function
Builds a graph index.
Parameters
Parameter |
Description |
Data Type |
Value Range |
|---|---|---|---|
n |
Data volume. |
int |
≥ 1. It is recommended that the value be less than 1 billion. |
input |
Data. |
numpy.ndarray |
The value cannot be null. The expected length is n × K_features (Data volume × Feature dimension). |
consecutive |
Block size. |
int |
[1, 31] |
reorder |
Indicates whether to enable base library vector reordering. |
int |
0 or 1. |
level |
Quantization level. |
int |
[0, 3]
|
Return Value
Data Type |
Description |
|---|---|
int |
This API is a wrapper for an underlying C++ API, which controls exception handling. |
Parent topic: Python