函数:create_search_input
产品支持情况
产品 |
是否支持 |
---|---|
|
x |
|
x |
|
x |
|
√ |
|
x |
|
x |
功能说明
创建aclfvSearchInput类型的数据,表示创建检索任务输入信息。
如需销毁aclfvSearchInput类型的数据,请参见函数:destroy_search_input。
函数原型
- C函数原型
1
aclfvSearchInput *aclfvCreateSearchInput(aclfvQueryTable *queryTable, aclfvRepoRange *repoRange, uint32_t topK)
- python函数
1
search_input = acl.fv.create_search_input(query_table, repo_range, topK)
参数说明
参数名 |
说明 |
---|---|
query_table |
|
repo_range |
|
topK |
int,单个检索请求需要返回的结果数量。 |
返回值说明
返回值 |
说明 |
---|---|
search_input |
int,指针地址。
|
父主题: 特征向量检索