Your .NET SDK for Milvus
What is the .NET SDK for Milvus
The .NET SDK for Milvus is a versatile tool that leverages the capabilities of the .NET framework, a free and open-source application platform developed by Microsoft. Primarily utilizing the C# programming language, which offers strong typing, type safety, integrated concurrency, and automatic memory management, the SDK enables developers to build AI applications seamlessly across various operating systems using tools like the .NET CLI, Visual Studio, Visual Studio Code, and more.
Why .NET and Zilliz Cloud (Milvus)
Implemented using the gRPC protocol, the .NET SDK for Milvus provides comprehensive access to the features of the Milvus vector database, facilitating efficient data management and retrieval. Moreover, its seamless integration with continuous integration services like GitHub Actions enables streamlined development workflows, allowing for hassle-free deployments to cloud environments.
With the .NET SDK, you can:
- Create a collection in Milvus or Zilliz Cloud
- Insert vector embeddings
- Create an index and load collection
- Search and query across your collections
How the .NET Client Library and Zilliz Cloud Work
How the Integration Works
To use Milvus with the .NET SDK you can use Zilliz Cloud on Azure (managed version of Milvus) or use Milvus open source on Azure. Once you have your instance of Milvus deployed:
- Create a C# console application
- Install the Milvus.Client NuGet package.
- Use the Milvus SDK to create a client and connect to your Milvus or Zilliz Cloud database. Make sure to replace “localhost” with your Milvus service host.
var milvusClient = new MilvusClient("localhost", username: "username", password: "password");
Here are two tutorials to help you create a collection and execute a query. One with movie data and another with book data. Both are simple to follow.
Learn How
Check out these tutorials to learn how to use the .NET SDK and Milvus / Zilliz Cloud.