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

fix issue-67,issue-58 #69

Merged
merged 1 commit into from
Jan 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion milvus_cli/Index.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,6 @@ def list_indexes(
collectionName,
)
result = target.indexes
print(result[0].field_name, result[0].index_name, result[0]._index_params)
rows = list(
map(
lambda x: [
Expand Down
17 changes: 17 additions & 0 deletions milvus_cli/Types.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,11 @@ def __str__(self):
"ANNOY",
"AUTOINDEX",
"DISKANN",
"GPU_IVF_FLAT",
"GPU_IVF_PQ",
"SCANN",
"STL_SORT",
"Trie",
"",
]

Expand Down Expand Up @@ -100,6 +105,18 @@ def __str__(self):
"index_building_parameters": [],
"search_parameters": [],
},
"GPU_IVF_FLAT": {
"index_building_parameters": ["nlist"],
"search_parameters": ["nprobe"],
},
"GPU_IVF_PQ": {
"index_building_parameters": ["nlist", "m", "nbits"],
"search_parameters": ["nprobe"],
},
"SCANN": {
"index_building_parameters": ["nlist", "with_raw_data"],
"search_parameters": ["nprobe", "reorder_k"],
},
}

DupSearchParams = reduce(
Expand Down
8 changes: 4 additions & 4 deletions milvus_cli/scripts/helper_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,14 +37,14 @@ def clear():
@cli.group("show", no_args_is_help=False)
@click.pass_obj
def show(obj):
"""Show connection, database,collection, loading_progress and index_progress."""
"""Show connection, database,collection, loading_progress or index_progress."""
pass


@cli.group("list", no_args_is_help=False)
@click.pass_obj
def getList(obj):
"""List collections,databases, partitions,users and indexes."""
"""List collections,databases, partitions,users or indexes."""
pass


Expand All @@ -58,7 +58,7 @@ def rename(obj):
@cli.group("create", no_args_is_help=False)
@click.pass_obj
def create(obj):
"""Create collection, database, partition,user and index."""
"""Create collection, database, partition,user or index."""
pass


Expand All @@ -79,7 +79,7 @@ def release(obj):
@cli.group("delete", no_args_is_help=False)
@click.pass_obj
def delete(obj):
"""Delete collection, database, partition,alias,user and index."""
"""Delete collection, database, partition,alias,user or index."""
pass


Expand Down
2 changes: 1 addition & 1 deletion milvus_cli/scripts/index_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def createIndex(obj):
)
params = []

ignoreIndexType = ["", "AUTOINDEX"]
ignoreIndexType = ["", "AUTOINDEX", "Trie", "STL_SORT"]
if indexType not in ignoreIndexType:
index_building_parameters = IndexTypesMap[indexType][
"index_building_parameters"
Expand Down
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

setup(
name="milvus_cli",
version="v0.4.1",
version="v0.4.2",
author="Milvus Team",
author_email="milvus-team@zilliz.com",
url="https://github.com/zilliztech/milvus_cli",
Expand All @@ -19,7 +19,7 @@
"Click==8.0.1",
"pymilvus==2.3.4",
"tabulate==0.8.9",
"requests==2.26.0",
"requests==2.31.0",
],
entry_points={
"console_scripts": [
Expand Down