Skip to content

Commit

Permalink
Update milvus_helpers.py
Browse files Browse the repository at this point in the history
descrition -> description
  • Loading branch information
chinalu authored Jun 30, 2023
1 parent c041670 commit 26e2b6b
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ def has_collection(self, collection_name):
def create_collection(self, collection_name):
# Create milvus collection if not exists
try:
field1 = FieldSchema(name="id", dtype=DataType.INT64, descrition="int64", is_primary=True, auto_id=True)
field2 = FieldSchema(name="embedding", dtype=DataType.FLOAT_VECTOR, descrition="float vector",
field1 = FieldSchema(name="id", dtype=DataType.INT64, description="int64", is_primary=True, auto_id=True)
field2 = FieldSchema(name="embedding", dtype=DataType.FLOAT_VECTOR, description="float vector",
dim=VECTOR_DIMENSION, is_primary=False)
schema = CollectionSchema(fields=[field1, field2], description="collection description")
self.collection = Collection(name=collection_name, schema=schema)
Expand Down

0 comments on commit 26e2b6b

Please sign in to comment.