add_with_ids
API definition |
void add_with_ids(idx_t n, const int8_t *x, const idx_t *ids); |
|---|---|
Function |
Adds new feature vectors to the AscendIndexInt8 database and specifies their IDs. |
Input |
idx_t n: number of feature vectors to be added. const int8_t *x: feature vectors to be added. const idx_t *ids: IDs of the feature vectors to be added. The ID must be unique in the Index instance. |
Output |
N/A |
Return value |
N/A |
Restrictions |
|
API definition |
void add_with_ids(idx_t n, const char *x, const idx_t *ids); |
|---|---|
Function |
Adds new feature vectors to the AscendIndexInt8 database and specifies their IDs. |
Input |
idx_t n: number of feature vectors to be added. const char *x: feature vectors to be added. const idx_t *ids: IDs of the feature vectors to be added. The ID must be unique in the Index instance. |
Output |
N/A |
Return value |
N/A |
Restrictions |
|