Skip to content

Commit

Permalink
Merge pull request #65 from zilliztech/support-json
Browse files Browse the repository at this point in the history
support json for cli
  • Loading branch information
shanghaikid authored Dec 8, 2023
2 parents be5924c + cf4a52e commit 8563d12
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 9 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 2 additions & 0 deletions milvus_cli/Types.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ def __str__(self):
"VARCHAR",
"BINARY_VECTOR",
"FLOAT_VECTOR",
"JSON",
]

IndexTypes = [
Expand Down Expand Up @@ -126,6 +127,7 @@ def __str__(self):
11: "DOUBLE",
20: "STRING",
21: "VARCHAR",
23: "JSON",
100: "BINARY_VECTOR",
101: "FLOAT_VECTOR",
999: "UNKNOWN",
Expand Down
4 changes: 2 additions & 2 deletions milvus_cli/scripts/collection_cli.py
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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

Expand All @@ -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.",
Expand Down
3 changes: 1 addition & 2 deletions milvus_cli/test/test_index.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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",
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.0",
version="v0.4.1",
author="Milvus Team",
author_email="[email protected]",
url="https://github.com/zilliztech/milvus_cli",
Expand All @@ -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",
],
Expand Down

0 comments on commit 8563d12

Please sign in to comment.