No description
  • Go 99.5%
  • Shell 0.5%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2026-10-26 12:20:58 +01:00
.github test: upgrade workflow go version 2026-10-21 15:36:10 +02:00
test refactor(client): remove contextionary API group after server dropped /v1/modules 2026-09-15 13:43:33 +02:00
test_deprecated Support new GraphQL search operators (minimumOrTokensMatch) for bm25/hybrid query (#263) 2025-06-03 10:07:03 +02:00
tools Inject version in client header 2026-01-20 21:19:49 +01:00
weaviate Release v5.7.4 version 2026-10-22 12:26:11 +02:00
.gitignore Add necessary headers for weaviate embedding service if present (#256) 2025-02-25 17:27:09 +01:00
.golangci.yml chore(ci): upgrage golangci-lint 2026-02-20 15:04:54 +01:00
.pre-commit-config.yaml Add precommit with gofumpt 2023-02-01 14:34:03 +01:00
CODE_OF_CONDUCT.md Move v4 to main folder 2023-02-01 16:01:52 +01:00
CONTRIBUTE.md Move v4 to main folder 2023-02-01 16:01:52 +01:00
go.mod fix: upgrade to go 1.26.10 2026-10-21 15:22:27 +02:00
go.sum refactor(client): remove contextionary API group after server dropped /v1/modules 2026-09-15 13:43:33 +02:00
LICENSE Move v4 to main folder 2023-02-01 16:01:52 +01:00
README.md Release v5.7.4 version 2026-10-22 12:26:11 +02:00

Weaviate Go client Weaviate logo

A native Go client for Weaviate.

Usage

⚠️ v5.0.0 cannot be installed due to a malformed go.mod file. Prefer v5.0.1 or higher.

In order to get the Go client v5 issue this command:

$ go get github.com/weaviate/weaviate-go-client/v5@v5.x.x

where v5.x.x is the desired Go client v5 version, for example v5.7.4.

Add dependency to your go.mod:

require github.com/weaviate/weaviate-go-client/v5 v5.7.4

Connect to Weaviate on localhost:8080 and fetch meta information

package main

import (
  "context"
  "fmt"

  client "github.com/weaviate/weaviate-go-client/v5/weaviate"
)

func main() {
  config := client.Config{
    Scheme: "http",
    Host:   "localhost:8080",
  }
  c, err := client.NewClient(config)
  if err != nil {
    fmt.Printf("Error occurred %v", err)
    return
  }
  metaGetter := c.Misc().MetaGetter()
  meta, err := metaGetter.Do(context.Background())
  if err != nil {
    fmt.Printf("Error occurred %v", err)
    return
  }
  fmt.Printf("Weaviate meta information\n")
  fmt.Printf("hostname: %s version: %s\n", meta.Hostname, meta.Version)
  fmt.Printf("enabled modules: %+v\n", meta.Modules)
}

Documentation

Support

Contributing

Build Status

Build Status