Notebooks
A
Azure
Getting Started Milvus

Getting Started Milvus

azure-openai-samplesBasic_SamplesdotnetcsharpDatastores

Get Started with Milvus

This notebook shows how to get started with Milvus vector database.

Start Milvus DB (optional)

Milvus is available through the Zilliz Cloud for Azure managed offering or Azure Container Apps Add-Ons.

If you don't already have an instance of Milvus, you can run a local version for dev/test scenarios.

[1]
Creating network "milvus" with the default driver
Pulling etcd (quay.io/coreos/etcd:v3.5.5)...
v3.5.5: Pulling from coreos/etcd
Digest: sha256:89b6debd43502d1088f3e02f39442fd3e951aa52bee846ed601cf4477114b89e
Status: Downloaded newer image for quay.io/coreos/etcd:v3.5.5
Pulling minio (minio/minio:RELEASE.2023-03-20T20-16-18Z)...
RELEASE.2023-03-20T20-16-18Z: Pulling from minio/minio
Digest: sha256:6d770d7f255cda1f18d841ffc4365cb7e0d237f6af6a15fcdb587480cd7c3b93
Status: Downloaded newer image for minio/minio:RELEASE.2023-03-20T20-16-18Z
Pulling standalone (milvusdb/milvus:v2.2.14)...
v2.2.14: Pulling from milvusdb/milvus
Digest: sha256:099bd246ae15242eeb6e4ba9263b977eb9d92d069f28b3f51e1a4986cab0f90d
Status: Downloaded newer image for milvusdb/milvus:v2.2.14
Creating milvus-etcd ... 
Creating milvus-minio ... 
Creating milvus-minio ... done
Creating milvus-etcd  ... done
Creating milvus-standalone ... 
Creating milvus-standalone ... done

Install Milvus C# SDK

[2]
[3]

Initialize Milvus Client

NOTE: If you have an instance of Milvus deployed in the cloud or your datacenter, replace localhost with your instance's host.

[4]

Cleanup (optional)

[5]

List collections

[6]
[7]

Create collection

Define schema

[8]

Create collection

[9]
[10]

Add data to collection

[11]
[12]

Persist data

[13]
[14]

Search for data

Create Index

[15]

Load collection

[16]

Define search parameters

[17]

Search for data

Search for data using embedding vectors for the query "A movie that's fun for the whole family".

[18]
[19]