Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
qq_35024513
milvus
提交
442bf434
milvus
项目概览
qq_35024513
/
milvus
与 Fork 源项目一致
Fork自
milvus / milvus
通知
14
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
milvus
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
未验证
提交
442bf434
编写于
3月 10, 2020
作者:
J
Jin Hai
提交者:
GitHub
3月 10, 2020
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #1600 from yhmo/binary
sdk typo
上级
b0192aec
6e8c617c
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
12 addition
and
12 deletion
+12
-12
core/src/utils/ValidationUtil.cpp
core/src/utils/ValidationUtil.cpp
+3
-3
sdk/include/MilvusApi.h
sdk/include/MilvusApi.h
+9
-9
未找到文件。
core/src/utils/ValidationUtil.cpp
浏览文件 @
442bf434
...
...
@@ -174,14 +174,14 @@ ValidationUtil::ValidateIndexParams(const milvus::json& index_params, const engi
case
(
int32_t
)
engine
::
EngineType
::
FAISS_IVFSQ8
:
case
(
int32_t
)
engine
::
EngineType
::
FAISS_IVFSQ8H
:
case
(
int32_t
)
engine
::
EngineType
::
FAISS_BIN_IVFFLAT
:
{
auto
status
=
CheckParameterRange
(
index_params
,
knowhere
::
IndexParams
::
nlist
,
0
,
999999
,
false
);
auto
status
=
CheckParameterRange
(
index_params
,
knowhere
::
IndexParams
::
nlist
,
1
,
999999
);
if
(
!
status
.
ok
())
{
return
status
;
}
break
;
}
case
(
int32_t
)
engine
::
EngineType
::
FAISS_PQ
:
{
auto
status
=
CheckParameterRange
(
index_params
,
knowhere
::
IndexParams
::
nlist
,
0
,
999999
,
false
);
auto
status
=
CheckParameterRange
(
index_params
,
knowhere
::
IndexParams
::
nlist
,
1
,
999999
);
if
(
!
status
.
ok
())
{
return
status
;
}
...
...
@@ -254,7 +254,7 @@ ValidationUtil::ValidateSearchParams(const milvus::json& search_params, const en
break
;
}
case
(
int32_t
)
engine
::
EngineType
::
HNSW
:
{
auto
status
=
CheckParameterRange
(
search_params
,
knowhere
::
IndexParams
::
ef
,
topk
,
1000
);
auto
status
=
CheckParameterRange
(
search_params
,
knowhere
::
IndexParams
::
ef
,
topk
,
4096
);
if
(
!
status
.
ok
())
{
return
status
;
}
...
...
sdk/include/MilvusApi.h
浏览文件 @
442bf434
...
...
@@ -84,19 +84,19 @@ using TopKQueryResult = std::vector<QueryResult>; ///< Topk query result
* @brief Index parameters
* Note: extra_params is extra parameters list, it must be json format
* For different index type, parameter list is different accordingly, for example:
* FLAT/IVFLAT/SQ8:
"{nlist: '16384'}"
* FLAT/IVFLAT/SQ8:
{nlist: 16384}
* ///< nlist range:[1, 999999]
* IVFPQ:
"{nlist: '16384', m: "12"}"
* IVFPQ:
{nlist: 16384, m: 12}
* ///< nlist range:[1, 999999]
* ///< m is decided by dim and have a couple of results.
* NSG:
"{search_length: '45', out_degree:'50', candidate_pool_size:'300', "knng":'100'}"
* NSG:
{search_length: 45, out_degree:50, candidate_pool_size:300, knng:100}
* ///< search_length range:[10, 300]
* ///< out_degree range:[5, 300]
* ///< candidate_pool_size range:[50, 1000]
* ///< knng range:[5, 300]
* HNSW
"{M: '16', efConstruction:'500'}"
* HNSW
{M: 16, efConstruction:300}
* ///< M range:[5, 48]
* ///< efConstruction range:[
topk, 4096
]
* ///< efConstruction range:[
100, 500
]
*/
struct
IndexParam
{
std
::
string
collection_name
;
///< Collection name for create index
...
...
@@ -386,12 +386,12 @@ class Connection {
* @param extra_params, extra search parameters according to different index type, must be json format.
* Note: extra_params is extra parameters list, it must be json format, for example:
* For different index type, parameter list is different accordingly
* FLAT/IVFLAT/SQ8/IVFPQ:
"{nprobe: '32'}"
* FLAT/IVFLAT/SQ8/IVFPQ:
{nprobe: 32}
* ///< nprobe range:[1,999999]
* NSG:
"{search_length:'100'
}
* NSG:
{search_length:100
}
* ///< search_length range:[10, 300]
* HNSW
"{ef: '64'
}
* ///< ef range:[k, 4096]
* HNSW
{ef: 64
}
* ///< ef range:[
top
k, 4096]
* @param topk_query_result, result array.
*
* @return Indicate if query is successful.
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录