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.
-
Make sure Python 3.6 and a compatible pip are installed.
-
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. -
Download Python example code.
# Download Python example $ wget https://raw.githubusercontent.com/milvus-io/pymilvus/v1.0.1/examples/example.py
If you cannot usewget
to download the example code, you can also create example.py and copy the example code. -
Run the example code.
# Run Milvus Python example $ python3 example.py
-
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
- Learn basic Milvus operations in Milvus
- Try Milvus bootcamp to check more solutions