Skip to content

Commit

Permalink
Merge pull request #1161 from chinalu/patch-1
Browse files Browse the repository at this point in the history
Update milvus_helpers.py
  • Loading branch information
JackLCL authored Jun 30, 2023
2 parents b2ca042 + 26e2b6b commit ac94803
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 ac94803

Please sign in to comment.