zilliztech / milvus_cli Goto Github PK
View Code? Open in Web Editor NEWThis project forked from milvus-io/milvus_cli
Milvus Command Line
License: Apache License 2.0
This project forked from milvus-io/milvus_cli
Milvus Command Line
License: Apache License 2.0
I've learned from the Get started with Milvus_CLI and the Milvus_CLI Command Reference, but the command like the import has been removed it seems and still in the docs.
使用python 代码没有问题, 在milvus_cli上报错
我的版本如下:
describe collection -c test_collection
,命令行报错 Error: No such command 'describe'.
When doing a query
print the results in a table format.
Currently results are printed like this:
[ {'my_id': 1, `my_field: "one"}, {'my_id': 2, `my_field: "two"}, {'my_id': 3, `my_field: "three"}, {'my_id': 4, `my_field: "four"}, {'my_id': 5, `my_field: "five"} ]
This is especially unusable because this tool cannot be piped to something like jq for formatting - see #77.
It would be much easier to read results if they were printed like this:
my_id my_field
1 one"
2 two
3 three
4 four
5 five
I would like to create a bash script that does something like this:
MY_INDEX_VALUE=$1
milvus_cli connect -uri http://localhost:19530
milvus_cli use database my_database
milvus_cli query \
--collection my_collection
--query "MY_INDEX=$MY_INDEX_VALUE"
--fields "MY_INDEX, MY_EMBEDDING"
Currently only interactive mode is supported.
The current iteration of the Milvus CLI lacks Transport Layer Security (TLS) capability, leaving communications unencrypted despite supporting authentication. This enhancement request aims to fortify the CLI by implementing TLS support for secure data transmission between the CLI and the server.
@nameczz
Getting errors during startup, due to this: minio/minio-py#1378.
I had to manually specify minio==7.2.0
to make it work.
安装milvus_cli,就会自动卸载之前安装的2.2.9版的pymilvus, 给我安装一个低版本的pymilvus-2.2.1, 导致代码在导入数据时报找不到from milvus import db, 需要重新安装pymilvus?, 希望zilliz工程师能尽快修复版本库包问题
As usually, we never want to change password by write some python codes and execute it, and authorization is very important in current world, why not just provide it in cli? or maybe I can provide a PR to milvus_cli project to implement this feature
Not sure if this is related to issue #68 but I keep running into commands that don't seem to work.
Milvus cli version: 0.4.2
Pymilvus version: 2.3.4
milvus_cli > describe collecion -c test2
Usage: milvus_cli [OPTIONS] COMMAND [ARGS]...
Error: No such command 'describe'.
milvus_cli >
Or am I reading the docs wrong? Or reading the wrong docs?
Link to docs:
https://milvus.io/docs/v2.1.x/check_collection.md#Check-collection-details
When I run milvus_cli.exe on Windows 10:
it show this error:
C:\Users\yu.wang\Downloads>milvus_cli.exe
Traceback (most recent call last):
File "scripts\milvus_cli.py", line 1, in
ImportError: attempted relative import with no known parent package
[17988] Failed to execute script 'milvus_cli' due to unhandled exception!
How can I solve this problem?
I installed milvus_cli
and readline
in RHEL 8. and milvus_cli
core dumps at any command.
[root@st2]# milvus_cli
__ __ _ _ ____ _ ___
| \/ (_) |_ ___ _ ___ / ___| | |_ _|
| |\/| | | \ \ / / | | / __| | | | | | |
| | | | | |\ V /| |_| \__ \ | |___| |___ | |
|_| |_|_|_| \_/ \__,_|___/ \____|_____|___|
Milvus cli version: 0.4.0
Pymilvus version: 2.3.0
Learn more: https://github.com/zilliztech/milvus_cli.
milvus_cli > connect
free(): invalid pointer
Aborted (core dumped)
[root@st2]# milvus_cli
__ __ _ _ ____ _ ___
| \/ (_) |_ ___ _ ___ / ___| | |_ _|
| |\/| | | \ \ / / | | / __| | | | | | |
| | | | | |\ V /| |_| \__ \ | |___| |___ | |
|_| |_|_|_| \_/ \__,_|___/ \____|_____|___|
Milvus cli version: 0.4.0
Pymilvus version: 2.3.0
Learn more: https://github.com/zilliztech/milvus_cli.
milvus_cli > help
free(): invalid pointer
Aborted (core dumped)
pip show pymilvus
Name: pymilvus
Version: 2.3.0
Summary: Python Sdk for Milvus
Home-page:
Author:
Author-email: Milvus Team <[email protected]>
License:
Location: /root/jupyter/virtualenv/slack/lib/python3.10/site-packages
Requires: environs, grpcio, pandas, protobuf, ujson
Required-by: milvus-cli
Current milvus_cli depends on python >=3.8.5
to run, while most server image in production (like RHEL<=7 or ubantu <=16) won't have python at such high version. Some slimed or old images may only have python2 or even no python installed.
I'm recently try to build a rpm binary release for RHEL7, and I mean to enclude a milvus_cli
for the user to check the service after installation. But I give up for there're so many dependency to install and there're dependency conflicts that could drive our user crazy.
Now that the go SDK is available, maybe we can use it to build a binary client without dependencies.
cli failed to start on RHEL 8
./milvus_cli-v0.3.3-Linux
[3800578] Error loading Python lib '/tmp/_MEIzrq14X/libpython3.8.so.1.0': dlopen: /lib64/libm.so.6: version `GLIBC_2.35' not found (required by /tmp/_MEIzrq14X/libpython3.8.so.1.0)
python --version
Python 3.10.12
I tried with python 3.8, failed at the same error.
./milvus_cli-v0.3.3-Linux
[3803912] Error loading Python lib '/tmp/_MEIbq8zhU/libpython3.8.so.1.0': dlopen: /lib64/libm.so.6: version `GLIBC_2.35' not found (required by /tmp/_MEIbq8zhU/libpython3.8.so.1.0)
python --version
Python 3.8.16
I‘ve installed Milvus Standalone with Docker on Oracle Linux 8.9 successfully and the hello_milvus.py runs successfully as well.
pymilvus-2.3.6 is installed.
I installed milvus_cli-0.2.0b2.tar.gz. When execute connect command in milvus_cli, I got error like blow:
Seems this is a memory leak error, but I don't know why I got this error. Could you help to fix out how to resolve this issue?
$ sudo docker run -it zilliz/milvus_cli:latest
| / () | ___ _ ___ / | | | |
| |/| | | \ \ / / | | / __| | | | | | |
| | | | | |\ V /| || _ \ | || |_ | |
|| |||| _/ _,|/ _|__||
Milvus cli version: 0.4.0
Pymilvus version: 2.3.0
Learn more: https://github.com/zilliztech/milvus_cli.
milvus_cli > connect -uri http://127.0.0.1:19530
Connect to Milvus error!<MilvusException: (code=2, message=Fail connecting to server on 127.0.0.1:19530. Timeout)>
milvus_cli >
as a macos user, I like to manage all my software using homebrew. Could you add a formula to add the milvus CLI so that it could be installed with:
brew install milvus-cli
and how to use UsingDatabase、ListDatabases、DropDatabase commands
When will the creation of scalar indexes be supported with milvus_cli?
I just want to test Milvus on GPU server with milvus_cli. But there is no any GPU_IVF_FLAT option to create index. The output is like that: Milvus cli version: 0.4.0
Pymilvus version: 2.3.0
Learn more: https://github.com/zilliztech/milvus_cli.
milvus_cli >
milvus_cli > create index
Collection name (docs_general, car): car
The name of the field to create an index for (id, vector, color, brand): vector
Index name: idx_vct
Index type (FLAT, IVF_FLAT, IVF_SQ8, IVF_PQ, RNSG, HNSW, ANNOY, AUTOINDEX, DISKANN, ) []:
connect db error use milvus_cli0.4.0
connect -uri 192.168.xx.xx:19530 -t root:xxxx
message=I1legal uri: [192.168.xx.xx:19530],expected form "http[s]://[user :[email protected]
connect to MiTvus error!<ConnectionConfigException: (code=1,
:12345>
Milvus cannot use the dataType of varchar when creating a collection, indicating the need for varchar. However, using varchar will result in an error
command line as follows
milvus_cli > create collection -c test_commond -f id:INT64: -f enterprise_id:VarChar: -f vector:FLOAT_VECTOR:1536 -p id -d test_commond
Error!
Invalid field data type, should be one of ['BOOL', 'INT8', 'INT16', 'INT32', 'INT64', 'FLOAT', 'DOUBLE', 'STRING', 'BINARY_VECTOR', 'FLOAT_VECTOR']
milvus_cli >
milvus_cli > create collection -c test_commond -f id:INT64: -f enterprise_id:VARCHAR: -f vector:FLOAT_VECTOR:1536 -p id -d test_commond
Error!
Invalid field data type, should be one of ['BOOL', 'INT8', 'INT16', 'INT32', 'INT64', 'FLOAT', 'DOUBLE', 'STRING', 'BINARY_VECTOR', 'FLOAT_VECTOR']
milvus_cli >
milvus_cli > create collection -c test_commond -f id:INT64: -f enterprise_id:STRING: -f vector:FLOAT_VECTOR:1536 -p id -d test_commond
RPC error: [create_collection], <MilvusException: (code=1, message=string data type not supported yet, please use VarChar type instead)>, <Time:{'RPC start': '2023-04-20 15:12:31.273735', 'RPC error': '2023-04-20 15:12:31.274766'}>
Error occurred!
<MilvusException: (code=1, message=string data type not supported yet, please use VarChar type instead)>
Command "show loading_progress" errors anyway no matter how I use this command:
After some look up, I found that milvus_cli passes the partition parameter of tuple type to pymilvus, but pymilvus only accepts the partition parameter of list type, resulting in the above error.
I think there are two solutions to this issuse:
I personally prefer solution 1 because it this has the least impact on the whole Milvus project, and I've already implemented this.
Please let me know what you think.
Here is my environment, it matches what recommended in https://github.com/zilliztech/milvus_cli/blob/main/README.md. My python version is 3.10.12
pip list | egrep 'milvus|readline'
milvus_cli 0.4.2
pymilvus 2.3.4
readline 6.2.4.1
Here are my errors
milvus_cli
__ __ _ _ ____ _ ___
| \/ (_) |_ ___ _ ___ / ___| | |_ _|
| |\/| | | \ \ / / | | / __| | | | | | |
| | | | | |\ V /| |_| \__ \ | |___| |___ | |
|_| |_|_|_| \_/ \__,_|___/ \____|_____|___|
Milvus cli version: 0.4.2
Pymilvus version: 2.3.4
Learn more: https://github.com/zilliztech/milvus_cli.
milvus_cli > connect -h 127.0.0.1 -p 19530 -a default
double free or corruption (out)
Aborted (core dumped)
and
milvus_cli list collections
__ __ _ _ ____ _ ___
| \/ (_) |_ ___ _ ___ / ___| | |_ _|
| |\/| | | \ \ / / | | / __| | | | | | |
| | | | | |\ V /| |_| \__ \ | |___| |___ | |
|_| |_|_|_| \_/ \__,_|___/ \____|_____|___|
Milvus cli version: 0.4.2
Pymilvus version: 2.3.4
Learn more: https://github.com/zilliztech/milvus_cli.
milvus_cli > list collections
free(): invalid size
Aborted (core dumped)
Milvus version: dev version.
Cli: v0.2.0
query on unloaded collection, every working fine.
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.