Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
milvus
milvus
提交
9c58ab3f
M
milvus
项目概览
milvus
/
milvus
12 个月 前同步成功
通知
261
Star
22476
Fork
2472
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
M
milvus
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
未验证
提交
9c58ab3f
编写于
12月 04, 2019
作者:
J
Jin Hai
提交者:
GitHub
12月 04, 2019
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #675 from milvus-io/0.6.0
Merge from 0.6.0
上级
54208931
c2328fbc
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
21 addition
and
8 deletion
+21
-8
CHANGELOG.md
CHANGELOG.md
+2
-0
README.md
README.md
+2
-2
README_CN.md
README_CN.md
+2
-2
README_JP.md
README_JP.md
+3
-2
core/unittest/db/test_db.cpp
core/unittest/db/test_db.cpp
+7
-1
tests/milvus_python_test/test_index.py
tests/milvus_python_test/test_index.py
+5
-1
未找到文件。
CHANGELOG.md
浏览文件 @
9c58ab3f
...
...
@@ -50,6 +50,8 @@ Please mark all change in change log and use the ticket from JIRA.
-
\#
649 - Typo "partiton" should be "partition"
-
\#
654 - Random crash when frequently insert vector one by one
-
\#
658 - Milvus error out when building SQ8H index without GPU resources
-
\#
668 - Update badge of README
-
\#
670 - Random failure of unittest db_test::SEARCH_TEST
## Feature
-
\#
12 - Pure CPU version for Milvus
...
...
README.md
浏览文件 @
9c58ab3f
...
...
@@ -5,8 +5,8 @@
![
LICENSE
](
https://img.shields.io/badge/license-Apache--2.0-brightgreen
)
![
Language
](
https://img.shields.io/badge/language-C%2B%2B-blue
)
[
![codebeat badge
](
https://codebeat.co/badges/e030a4f6-b126-4475-a938-4723d54ec3a7?style=plastic
)
](https://codebeat.co/projects/github-com-jinhai-cn-milvus-master)
![
Release
](
https://img.shields.io/badge/release-v0.
5.3
-yellowgreen
)
![
Release_date
](
https://img.shields.io/badge/release%20date-
Nov
ember-yellowgreen
)
![
Release
](
https://img.shields.io/badge/release-v0.
6.0
-yellowgreen
)
![
Release_date
](
https://img.shields.io/badge/release%20date-
Dec
ember-yellowgreen
)
[
![codecov
](
https://codecov.io/gh/milvus-io/milvus/branch/master/graph/badge.svg
)
](https://codecov.io/gh/milvus-io/milvus)
[
中文版
](
README_CN.md
)
|
[
日本語版
](
README_JP.md
)
...
...
README_CN.md
浏览文件 @
9c58ab3f
...
...
@@ -4,8 +4,8 @@
![
LICENSE
](
https://img.shields.io/badge/license-Apache--2.0-brightgreen
)
![
Language
](
https://img.shields.io/badge/language-C%2B%2B-blue
)
[
![codebeat badge
](
https://codebeat.co/badges/e030a4f6-b126-4475-a938-4723d54ec3a7?style=plastic
)
](https://codebeat.co/projects/github-com-jinhai-cn-milvus-master)
![
Release
](
https://img.shields.io/badge/release-v0.
5.3
-yellowgreen
)
![
Release_date
](
https://img.shields.io/badge/release_date-
Octo
ber-yellowgreen
)
![
Release
](
https://img.shields.io/badge/release-v0.
6.0
-yellowgreen
)
![
Release_date
](
https://img.shields.io/badge/release_date-
Decem
ber-yellowgreen
)
[
![codecov
](
https://codecov.io/gh/milvus-io/milvus/branch/master/graph/badge.svg
)
](https://codecov.io/gh/milvus-io/milvus)
...
...
README_JP.md
浏览文件 @
9c58ab3f
...
...
@@ -5,8 +5,9 @@
![
LICENSE
](
https://img.shields.io/badge/license-Apache--2.0-brightgreen
)
![
Language
](
https://img.shields.io/badge/language-C%2B%2B-blue
)
[
![codebeat badge
](
https://codebeat.co/badges/e030a4f6-b126-4475-a938-4723d54ec3a7?style=plastic
)
](https://codebeat.co/projects/github-com-jinhai-cn-milvus-master)
![
Release
](
https://img.shields.io/badge/release-v0.5.3-yellowgreen
)
![
Release_date
](
https://img.shields.io/badge/release%20date-November-yellowgreen
)
![
Release
](
https://img.shields.io/badge/release-v0.6.0-yellowgreen
)
![
Release_date
](
https://img.shields.io/badge/release%20date-December-yellowgreen
)
[
![codecov
](
https://codecov.io/gh/milvus-io/milvus/branch/master/graph/badge.svg
)
](https://codecov.io/gh/milvus-io/milvus)
# Milvus へようこそ
...
...
core/unittest/db/test_db.cpp
浏览文件 @
9c58ab3f
...
...
@@ -338,7 +338,13 @@ TEST_F(DBTest, SEARCH_TEST) {
{
// search by specify index file
milvus
::
engine
::
meta
::
DatesT
dates
;
std
::
vector
<
std
::
string
>
file_ids
=
{
"1"
,
"2"
,
"3"
,
"4"
,
"5"
,
"6"
};
std
::
vector
<
std
::
string
>
file_ids
;
// sometimes this case run fast to merge file and build index, old file will be deleted immediately,
// so the QueryByFileID cannot get files to search
// input 100 files ids to avoid random failure of this case
for
(
int
i
=
0
;
i
<
100
;
i
++
)
{
file_ids
.
push_back
(
std
::
to_string
(
i
));
}
milvus
::
engine
::
ResultIds
result_ids
;
milvus
::
engine
::
ResultDistances
result_distances
;
stat
=
db_
->
QueryByFileID
(
TABLE_NAME
,
file_ids
,
k
,
nq
,
10
,
xq
.
data
(),
dates
,
result_ids
,
result_distances
);
...
...
tests/milvus_python_test/test_index.py
浏览文件 @
9c58ab3f
...
...
@@ -587,6 +587,8 @@ class TestIndexIP:
'''
index_params
=
get_simple_index_params
logging
.
getLogger
().
info
(
index_params
)
if
index_params
[
"index_type"
]
==
IndexType
.
IVF_PQ
:
pytest
.
skip
(
"Skip some PQ cases"
)
status
,
ids
=
connect
.
add_vectors
(
ip_table
,
vectors
)
status
=
connect
.
create_index
(
ip_table
,
index_params
)
assert
status
.
OK
()
...
...
@@ -812,11 +814,13 @@ class TestIndexIP:
status
,
result
=
connect
.
describe_index
(
ip_table
)
logging
.
getLogger
().
info
(
result
)
assert
result
.
_table_name
==
ip_table
if
index_params
[
"index_type"
]
==
IndexType
.
IVF_PQ
:
status
,
mode
=
connect
.
_cmd
(
"mode"
)
if
str
(
mode
)
==
"GPU"
and
index_params
[
"index_type"
]
==
IndexType
.
IVF_PQ
:
assert
result
.
_index_type
==
IndexType
.
FLAT
assert
result
.
_nlist
==
16384
else
:
assert
result
.
_index_type
==
index_params
[
"index_type"
]
assert
result
.
_nlist
==
index_params
[
"nlist"
]
def
test_describe_index_partition
(
self
,
connect
,
ip_table
,
get_simple_index_params
):
'''
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录