Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
qq_35024513
milvus
提交
694aea22
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 搜索 >>
未验证
提交
694aea22
编写于
3月 09, 2020
作者:
J
Jin Hai
提交者:
GitHub
3月 09, 2020
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #1579 from tinkerlin/fix_1564
fix
上级
9938c636
2d966463
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
7 addition
and
5 deletion
+7
-5
CHANGELOG.md
CHANGELOG.md
+1
-0
core/src/index/knowhere/knowhere/index/vector_index/IndexIVF.cpp
...c/index/knowhere/knowhere/index/vector_index/IndexIVF.cpp
+4
-4
core/src/scheduler/task/SearchTask.cpp
core/src/scheduler/task/SearchTask.cpp
+2
-1
未找到文件。
CHANGELOG.md
浏览文件 @
694aea22
...
...
@@ -46,6 +46,7 @@ Please mark all change in change log and use the issue from GitHub
-
\#
1549 Fix server/wal config setting bug
-
\#
1556 Index file not created after table and index created
-
\#
1560 Search crashed with Super-high dimensional binary vector
-
\#
1564 Too low recall for glove-200-angular, ivf_pq index
-
\#
1574 Set all existing bitset in cache when applying deletes
-
\#
1577 Row count incorrect if delete vectors then create index
...
...
core/src/index/knowhere/knowhere/index/vector_index/IndexIVF.cpp
浏览文件 @
694aea22
...
...
@@ -118,12 +118,12 @@ IVF::Search(const DatasetPtr& dataset, const Config& config) {
// std::stringstream ss_res_id, ss_res_dist;
// for (int i = 0; i < 10; ++i) {
// printf("%llu",
res_ids
[i]);
// printf("%llu",
p_id
[i]);
// printf("\n");
// printf("%.6f",
res_dis
[i]);
// printf("%.6f",
p_dist
[i]);
// printf("\n");
// ss_res_id <<
res_ids
[i] << " ";
// ss_res_dist <<
res_dis
[i] << " ";
// ss_res_id <<
p_id
[i] << " ";
// ss_res_dist <<
p_dist
[i] << " ";
// }
// std::cout << std::endl << "after search: " << std::endl;
// std::cout << ss_res_id.str() << std::endl;
...
...
core/src/scheduler/task/SearchTask.cpp
浏览文件 @
694aea22
...
...
@@ -101,7 +101,8 @@ XSearchTask::XSearchTask(const std::shared_ptr<server::Context>& context, TableF
if
(
file_
)
{
// distance -- value 0 means two vectors equal, ascending reduce, L2/HAMMING/JACCARD/TONIMOTO ...
// similarity -- infinity value means two vectors equal, descending reduce, IP
if
(
file_
->
metric_type_
==
static_cast
<
int
>
(
MetricType
::
IP
))
{
if
(
file_
->
metric_type_
==
static_cast
<
int
>
(
MetricType
::
IP
)
&&
file_
->
engine_type_
!=
static_cast
<
int
>
(
EngineType
::
FAISS_PQ
))
{
ascending_reduce
=
false
;
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录