• Tools


MilvusDM (Milvus Data Migration) is an open-source tool designed specifically for importing and exporting data with Milvus. MilvusDM allows you to migrate data in a specific collection or partition.

Currently, MilvusDM is only supported in Milvus 1.x version.

To substantially improve data management efficiency and reduce DevOps costs, MilvusDM supports the following migration channels:

MilvusDM MilvusDM

MilvusDM is hosted on GitHub. To install MilvusDM, run:

pip3 install pymilvusdm

MilvusDM File Structure

The flow chart below shows how MilvusDM performs different tasks according to the .yaml file it receives:

File structure File structure

MilvusDM file structure:

  • pymilvusdm
    • core
      • Performs client operations in Milvus.
      • Reads the HDF5 files on your local drive. (Add your code here to support reading data files in other formats.)
      • Reads Faiss data files.
      • Reads Milvus data files.
      • Reads Milvus metadata.
      • Creates collections or partitions as specified in .yaml files and imports vectors and the corresponding IDs into Milvus.
      • Saves data as HDF5 files.
      • Writes debug/info/error logs during runtime.
    • Imports Faiss data into Milvus.
    • Imports HDF5 files into Milvus.
    • Migrates data from a source Milvus to a target Milvus.
    • Saves Milvus data as HDF5 files.
    • Executes tasks as specified by the received .yaml file.
    • Stores configurations for MilvusDM operation.
  • Creates and uploads pymilvusdm file packages to PyPI (Python Package Index).

Enhancement Plan

In future releases, MilvusDM will provide more new features including MilvusDump and MilvusRestore to support exporting all Milvus data, restoring data in specified collections and partitions, resuming interrupted download and more.

The MilvusDM project is open sourced on GitHub. Any contribution to the project is welcome. Give it a star 🌟, and feel free to file an issue or submit your own code!