Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support a non-interactive mode so that it is possible to build scripts with the milvus_cli #77

Open
JakeSummers opened this issue May 7, 2024 · 4 comments

Comments

@JakeSummers
Copy link

JakeSummers commented May 7, 2024

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.

@JakeSummers
Copy link
Author

This would also make it easier to use the currently unusable commands like query. See #78.

@nameczz
Copy link

nameczz commented May 7, 2024

CLI is designed for interactive applications base on pymilvus.
You can using pymilvus directly in bash. Is that meet your requirements?

@JakeSummers
Copy link
Author

JakeSummers commented May 8, 2024

@nameczz

You can using pymilvus directly in bash. Is that meet your requirements?

Can you provide me with an example or point me to the doc?

@nameczz
Copy link

nameczz commented May 9, 2024

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants