Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

def import(collection_name,  files, partition_name=None, bucketoptions=None)

  • collection_name:  the target collection name  (required)
  • partition_name: target partition name  (optional)
  • files: a list of files with row-based format or a dict of files with column-based format  (required)
    row-based files:   ["file_1.json", "file_2.json"]
    column-based files: {"id": "id.json", "vectors": "embeddings.npy"}

  • options: extra options in JSON format, for examplebucket: the MinIO/S3 bucket where the files come from, same with Milvus server bucket by default  from  (optional)
    {"bucket": "mybucket"}


Pre-defined format for import files

...