Try an Example Program

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.5 and a compatible pip are installed.
  2. Install Milvus Python SDK.

    # Install Milvus Python SDK
    $ pip3 install pymilvus==0.2.8
    

    Note: 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/0.7.0/examples/example.py
    

    Note: 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

Edit
© 2019 - 2020 Milvus. All rights reserved.