diff --git a/README.md b/README.md index 5275719..2a2c986 100644 --- a/README.md +++ b/README.md @@ -24,14 +24,14 @@ ### 🔝Install in a Python environment - #### Prerequisites + Python >= 3.8.5 #### Install from PyPI (Recommended) -Run `pip install pymilvus==2.2.15` -Run `pip install milvus-cli==0.4.0` +Run `pip install pymilvus==2.3.4` +Run `pip install milvus-cli==0.4.1` #### Install from a tarball diff --git a/milvus_cli/Types.py b/milvus_cli/Types.py index d899f6d..d59185b 100644 --- a/milvus_cli/Types.py +++ b/milvus_cli/Types.py @@ -32,6 +32,7 @@ def __str__(self): "VARCHAR", "BINARY_VECTOR", "FLOAT_VECTOR", + "JSON", ] IndexTypes = [ @@ -126,6 +127,7 @@ def __str__(self): 11: "DOUBLE", 20: "STRING", 21: "VARCHAR", + 23: "JSON", 100: "BINARY_VECTOR", 101: "FLOAT_VECTOR", 999: "UNKNOWN", diff --git a/milvus_cli/scripts/collection_cli.py b/milvus_cli/scripts/collection_cli.py index e004301..437022c 100644 --- a/milvus_cli/scripts/collection_cli.py +++ b/milvus_cli/scripts/collection_cli.py @@ -1,5 +1,4 @@ from tabulate import tabulate -from .helper_cli import create, getList, delete, rename, show, load, release import click import os import sys @@ -8,6 +7,7 @@ parent_dir = os.path.dirname(current_dir) sys.path.append(parent_dir) +from .helper_cli import create, getList, delete, rename, show, load, release from Validation import validateCollectionParameter from Types import ParameterException @@ -24,7 +24,7 @@ "-p", "--schema-primary-field", "primaryField", help="Primary field name." ) @click.option( - "-a", + "-A", "--schema-auto-id", "autoId", help="[Optional, Flag] - Enable auto id.", diff --git a/milvus_cli/test/test_index.py b/milvus_cli/test/test_index.py index a6c8fe4..f1b8a96 100644 --- a/milvus_cli/test/test_index.py +++ b/milvus_cli/test/test_index.py @@ -23,7 +23,7 @@ class TestIndex(unittest.TestCase): @classmethod def setUpClass(cls): - milvusConnection.connect(uri=uri, alias=tempAlias) + milvusConnection.connect(uri=uri) fields = [ "id:VARCHAR:128", "title:VARCHAR:512", @@ -33,7 +33,6 @@ def setUpClass(cls): collection.create_collection( collectionName=collectionName, fields=fields, - alias=tempAlias, autoId=False, description="this is a test collection", primaryField="id", diff --git a/setup.py b/setup.py index ec17923..ddadcd7 100644 --- a/setup.py +++ b/setup.py @@ -5,7 +5,7 @@ setup( name="milvus_cli", - version="v0.4.0", + version="v0.4.1", author="Milvus Team", author_email="milvus-team@zilliz.com", url="https://github.com/zilliztech/milvus_cli", @@ -17,7 +17,7 @@ include_package_data=True, install_requires=[ "Click==8.0.1", - "pymilvus==2.3.0", + "pymilvus==2.3.4", "tabulate==0.8.9", "requests==2.26.0", ],