witskeeper / milvus-sdk-csharp

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

milvus-sdk-csharp

C# SDK for Milvus.

Getting Started

Visual Studio

Visual Studio 2019 or higher

NuGet

IO.Milvus is delivered via NuGet package manager. You can find the package here: https://www.nuget.org/packages/IO.Milvus/

Prerequisites

Framework

NET6 NET5

.net 5.0 or .net 6.0

Installing

Install-Package IO.Milvus -Version 2.0.0-alpha.2

Or

<PackageReference Include="IO.Milvus" Version="2.0.0-alpha.2" />

Examples

Connect to a Milvus server.

var milvusClient = new MilvusServiceClient(
    ConnectParam.Create(
    host: "192.168.100.139",
    port: 19531));

Disconnect from a Milvus server.

milvusClient.Close();

Please refer to Test Project for more examples.

Grpc client

You can find code that auto generated by grpc tools in namespace of IO.Milvus.Grpc,then use auto-generated serviceclient to connect server and send request.

var defualtClient = MilvusServiceClient.CreateGrpcDefaultClient(
    ConnectParam.Create(
        host: "192.168.100.139",
        port: 19531));

Asp.net core

If you want to use io.milvus in asp.net core, you can take a look at this doc.

Use namespace of IO.Milvus.Grpc with DI.

About

License:Apache License 2.0


Languages

Language:C# 100.0%