milvus-logo

Hello Milvus

After the Milvus server is successfully started, you can use this example program to create a table, insert 10 vectors, and then run a vector similarity search.

  1. Make sure Python 3.6 and a compatible pip are installed.

  2. Install Milvus Python SDK.

    # Install Milvus Python SDK
    $ pip3 install pymilvus==1.0.1
    
    To learn more about Milvus Python SDK, go to Milvus Python SDK Readme.
  3. Download Python example code.

    # Download Python example
    $ wget https://raw.githubusercontent.com/milvus-io/pymilvus/v1.0.1/examples/example.py
    
    If you cannot use wget to download the example code, you can also create example.py and copy the example code.
  4. Run the example code.

    # Run Milvus Python example
    $ python3 example.py
    
  5. Confirm the program is running correctly.

    Query result is correct.
    

Congratulations! You have successfully completed your first vector similarity search with Milvus.

What's next

On this page