milvus-io / pymilvus Goto Github PK
View Code? Open in Web Editor NEWPython SDK for Milvus.
License: Apache License 2.0
Python SDK for Milvus.
License: Apache License 2.0
When connecting celery server, param Index_type is converted to type of int, but type of IndexType is expected. It occured an error when type not match.
timeour causes lots of problems, need to remove
should be fixed up
Logic of disconnection is wrong, should change connect_status after disconnected
READEME.md should keep-up with newest sdk
New interface has_table should be implemented in C++/Python SDK in release 0.3.0
This function will return if the table exists in Milvus DB by given table_name.
_____ TestTable.test_create_wrong_table_name_null ________________________________________________________
self = <test_table.TestTable object at 0x7fb65c466eb8>, connect = Status(code=0, message='Connected')
def test_create_wrong_table_name_null(self, connect):
'''
target: test create table with no table_name
method: create table with table_name: null
expected: create status return not ok
'''
table_name = None
param = {'table_name': table_name,
'dimension': dim,
'index_type': IndexType.FLAT,
'store_raw_vector': False}
status = connect.create_table(param)
assert not status.OK()
E AssertionError: assert not True
E + where True = <bound method Status.OK of Status(code=0, message='Table None created!')>()
E + where <bound method Status.OK of Status(code=0, message='Table None created!')> = Status(code=0, message='Table None created!').OK
test_table.py:96: AssertionError
RT
IndexType should print it's name not confusing numbers
restore timeout api
Add new IdnexType MIN_NSG
should be QueryResult object
create table param dimension should be strict
pymilvus currently doesn't support connect with DNS domain name.
thrift added new api has_table, pymilvus should be update accordingly
Invalid IndexType should raise exception
This is a solution for issue #69
new indextype ivf-pq8 should be added
不可连接IP:123.0.0.1,需要设置超时
200万向量, nq=1000, topk=10000
milvus从接到请求到查询完成消耗大约10秒, 而使用python sdk则消耗了50秒,有多余40秒的消耗在sdk这边
Even when there are too many vectors, these objects should be able to print out PART of the vectors, including:
ids = [1111111111111,
1111111111112,
...
1111111118888,
1111111118889]
TopKQueryResult=
[ [QueryResult(id=000000001, distance=0.1234567678) ,
...
QueryResult(id=000000001, distance=0.1234567678) ],
...
...
...
[QueryResult(id=000000001, distance=0.1234567678) ,
...
QueryResult(id=000000001, distance=0.1234567678) ] ]
add new api build_index
new milvus version add some new interface and change some original interface name,. It occured that pymilvus cannot run with newest milvus docker server
预期结果:参数检查,并返回参数错误信息
...
query_ranges = [(get_current_day(), get_last_day(2))]
status, result = connect.search_vectors(table, top_k, query_vecs, query_ranges=query_ranges)
> assert not status.OK()
E AssertionError: assert not True
E + where True = <bound method Status.OK of Status(code=0, message='Search Vectors successfully!')>()
E + where <bound method Status.OK of Status(code=0, message='Search Vectors successfully!')> = Status(code=0, message='Search Vectors successfully!').OK
1.show hide Prepare and support old version
connected should return BOOL
default to using thrift, can change to grpc by param
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.