milvus-io/milvus-sdk-go

Go SDK for Milvus(Deprecated)

367

stars

420

commits

Go

primary language

Mar 21, 2025

updated

github.com/milvus-io/milvus/
anns
go
hacktoberfest
sdk
vector

README

Milvus Go SDK

Note this repo is deprecated. Go to https://github.com/milvus-io/milvus/tree/master/client for the newest Go SDK

license Mergify Status Go Reference

Go SDK for Milvus. To contribute code to this project, please read our contribution guidelines first.

SDK versions

Milvus versionRecommended Go SDK version
2.4.x2.4.0
2.3.x2.3.1
2.2.x2.2.8
2.1.02.1.0
2.0.02.0.0
1.1.x1.1.0
1.0.x1.0.0

Note: Major versions is NOT compatible between Milvus and SDK

Getting started

Prerequisites

Go 1.17 or higher

Install Milvus Go SDK

  1. Use go get to install the latest version of the Milvus Go SDK and dependencies:

    go get -u github.com/milvus-io/milvus-sdk-go/v2
    
  2. Include the Milvus Go SDK in your application:

    import "github.com/milvus-io/milvus-sdk-go/v2/client"
    
    //...other snippet ...
    client, err := client.NewClient(context.Background(), client.Config{
       Address: "localhost:19530",
    })
    if err != nil {
        // handle error
    }
    defer client.Close()
    
    client.HasCollection(context.Background(), "YOUR_COLLECTION_NAME")
    

API Documentation

Refer to https://milvus.io/api-reference/go/v2.2.x/About.md for the Go SDK API documentation.

Examples

See examples about how to use this package to communicate with Milvus

Code format

The Go source code is formatted using gofmt and golint.

Contributors

(top 30 of 45)

congqixia

221 commits

ThreadDao

47 commits

fishpenguin

45 commits

wayblink

11 commits

milvus-io/milvus-sdk-go

Go SDK for Milvus(Deprecated)

367

stars

420

commits

Go

primary language

Mar 21, 2025

updated

github.com/milvus-io/milvus/
anns
go
hacktoberfest
sdk
vector

README

Milvus Go SDK

Note this repo is deprecated. Go to https://github.com/milvus-io/milvus/tree/master/client for the newest Go SDK

license Mergify Status Go Reference

Go SDK for Milvus. To contribute code to this project, please read our contribution guidelines first.

SDK versions

Milvus versionRecommended Go SDK version
2.4.x2.4.0
2.3.x2.3.1
2.2.x2.2.8
2.1.02.1.0
2.0.02.0.0
1.1.x1.1.0
1.0.x1.0.0

Note: Major versions is NOT compatible between Milvus and SDK

Getting started

Prerequisites

Go 1.17 or higher

Install Milvus Go SDK

  1. Use go get to install the latest version of the Milvus Go SDK and dependencies:

    go get -u github.com/milvus-io/milvus-sdk-go/v2
    
  2. Include the Milvus Go SDK in your application:

    import "github.com/milvus-io/milvus-sdk-go/v2/client"
    
    //...other snippet ...
    client, err := client.NewClient(context.Background(), client.Config{
       Address: "localhost:19530",
    })
    if err != nil {
        // handle error
    }
    defer client.Close()
    
    client.HasCollection(context.Background(), "YOUR_COLLECTION_NAME")
    

API Documentation

Refer to https://milvus.io/api-reference/go/v2.2.x/About.md for the Go SDK API documentation.

Examples

See examples about how to use this package to communicate with Milvus

Code format

The Go source code is formatted using gofmt and golint.

Contributors

(top 30 of 45)

congqixia

221 commits

ThreadDao

47 commits

fishpenguin

45 commits

wayblink

11 commits

Languages

Go

98.8%

Shell

1.0%