add
| API定义 | void add(idx_t n, const int8_t *x); | 
|---|---|
| 功能描述 | 向AscendIndexInt8底库中添加新的特征向量。使用add接口添加特征,对应特征的默认ids为[0, ntotal)。 | 
| 输入 | idx_t n:添加进底库的特征向量数量。 const int8_t *x:添加进底库的特征向量。 | 
| 输出 | 无 | 
| 返回值 | 无 | 
| 约束说明 | 
 | 
 
 - add接口不能与add_with_ids接口混用。
- 使用add接口后,search结果的labels可能会重复,如果业务上对label有要求,建议使用add_with_ids接口。
父主题: AscendIndexInt8