{"id":13600217,"url":"https://github.com/qdrant/go-client","last_synced_at":"2026-05-11T14:02:25.179Z","repository":{"id":39413987,"uuid":"506916087","full_name":"qdrant/go-client","owner":"qdrant","description":"Go client for Qdrant vector search engine","archived":false,"fork":false,"pushed_at":"2025-04-09T10:17:17.000Z","size":1004,"stargazers_count":207,"open_issues_count":2,"forks_count":17,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-09T11:25:52.381Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/qdrant.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-06-24T07:19:39.000Z","updated_at":"2025-04-09T00:04:18.000Z","dependencies_parsed_at":"2024-06-19T01:21:10.714Z","dependency_job_id":"ee755b74-ef76-4214-8758-3a0cc13d6d14","html_url":"https://github.com/qdrant/go-client","commit_stats":null,"previous_names":[],"tags_count":29,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qdrant%2Fgo-client","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qdrant%2Fgo-client/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qdrant%2Fgo-client/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qdrant%2Fgo-client/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/qdrant","download_url":"https://codeload.github.com/qdrant/go-client/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248301427,"owners_count":21080893,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-01T18:00:32.418Z","updated_at":"2026-05-11T14:02:25.149Z","avatar_url":"https://github.com/qdrant.png","language":"Go","funding_links":[],"categories":["Go"],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n  \u003cpicture\u003e\n      \u003csource media=\"(prefers-color-scheme: dark)\" srcset=\"https://github.com/qdrant/qdrant/raw/master/docs/logo-dark.svg\"\u003e\n      \u003csource media=\"(prefers-color-scheme: light)\" srcset=\"https://github.com/qdrant/qdrant/raw/master/docs/logo-light.svg\"\u003e\n      \u003cimg height=\"100\" alt=\"Qdrant\" src=\"https://github.com/qdrant/qdrant/raw/master/docs/logo.svg\"\u003e\n  \u003c/picture\u003e\n  \u003cimg height=\"150\" width=\"100\" src=\"./examples/Go_Logo_Blue.svg.png\" alt=\"Golang\"\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n    \u003cb\u003eGo client for the \u003ca href=\"https://github.com/qdrant/qdrant\"\u003eQdrant\u003c/a\u003e vector search engine.\u003c/b\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n    \u003ca href=\"https://pkg.go.dev/github.com/qdrant/go-client\"\u003e\u003cimg src=\"https://img.shields.io/badge/Docs-godoc-success\" alt=\"Godoc\"\u003e\u003c/a\u003e\n    \u003ca href=\"https://github.com/qdrant/go-client/actions/workflows/ci.yml\"\u003e\u003cimg src=\"https://github.com/qdrant/go-client/actions/workflows/ci.yml/badge.svg?branch=master\" alt=\"Tests\"\u003e\u003c/a\u003e\n    \u003ca href=\"https://github.com/qdrant/go-client/blob/master/LICENSE\"\u003e\u003cimg src=\"https://img.shields.io/badge/License-Apache%202.0-success\" alt=\"Apache 2.0 License\"\u003e\u003c/a\u003e\n    \u003ca href=\"https://qdrant.to/discord\"\u003e\u003cimg src=\"https://img.shields.io/badge/Discord-Qdrant-5865F2.svg?logo=discord\" alt=\"Discord\"\u003e\u003c/a\u003e\n    \u003ca href=\"https://qdrant.to/roadmap\"\u003e\u003cimg src=\"https://img.shields.io/badge/Roadmap-2026-bc1439.svg\" alt=\"Roadmap 2026\"\u003e\u003c/a\u003e\n\u003c/p\u003e\n\nGo client library with handy utilities for interfacing with [Qdrant](https://qdrant.tech/).\n\n## 📥 Installation\n\n```bash\ngo get -u github.com/qdrant/go-client\n```\n\n## 📖 Documentation\n\n- Usage examples are available throughout the [Qdrant documentation](https://qdrant.tech/documentation/quick-start/) and [API Reference](https://api.qdrant.tech/).\n- [Godoc Reference](https://pkg.go.dev/github.com/qdrant/go-client)\n\n## 🔌 Getting started\n\n### Creating a client\n\nA client can be instantiated with\n\n```go\nimport \"github.com/qdrant/go-client/qdrant\"\n\nclient, err := qdrant.NewClient(\u0026qdrant.Config{\n  Host: \"localhost\",\n  Port: 6334,\n})\n```\n\nWhich creates a client that will connect to Qdrant on \u003chttp://localhost:6334\u003e.\n\nInternally, the high-level client uses a low-level gRPC client to interact with\nQdrant. `qdrant.Config` provides additional options to control how the gRPC\nclient is configured. The following example configures API key authentication with TLS:\n\n```go\nimport \"github.com/qdrant/go-client/qdrant\"\n\nclient, err := qdrant.NewClient(\u0026qdrant.Config{\n\tHost:   \"xyz-example.eu-central.aws.cloud.qdrant.io\",\n\tPort:   6334,\n\tAPIKey: \"\u003cyour-api-key\u003e\",\n\tUseTLS: true,  // uses default config with minimum TLS version set to 1.3\n\t// PoolSize: 3,\n\t// KeepAliveTime: 10,\n\t// KeepAliveTimeout: 2,\n\t// TLSConfig: \u0026tls.Config{...},\n\t// GrpcOptions: []grpc.DialOption{},\n})\n```\n\n### Working with collections\n\nOnce a client has been created, create a new collection\n\n```go\nimport (\n\t\"context\"\n\n\t\"github.com/qdrant/go-client/qdrant\"\n)\n\nclient.CreateCollection(context.Background(), \u0026qdrant.CreateCollection{\n\tCollectionName: \"{collection_name}\",\n\tVectorsConfig: qdrant.NewVectorsConfig(\u0026qdrant.VectorParams{\n\t\tSize:     4,\n\t\tDistance: qdrant.Distance_Cosine,\n\t}),\n})\n```\n\nInsert vectors into the collection\n\n```go\noperationInfo, err := client.Upsert(context.Background(), \u0026qdrant.UpsertPoints{\n\tCollectionName: \"{collection_name}\",\n\tPoints: []*qdrant.PointStruct{\n\t\t{\n\t\t\tId:      qdrant.NewIDNum(1),\n\t\t\tVectors: qdrant.NewVectors(0.05, 0.61, 0.76, 0.74),\n\t\t\tPayload: qdrant.NewValueMap(map[string]any{\"city\": \"London\"}),\n\t\t},\n\t\t{\n\t\t\tId:      qdrant.NewIDNum(2),\n\t\t\tVectors: qdrant.NewVectors(0.19, 0.81, 0.75, 0.11),\n\t\t\tPayload: qdrant.NewValueMap(map[string]any{\"age\": 32}),\n\t\t},\n\t\t{\n\t\t\tId:      qdrant.NewIDNum(3),\n\t\t\tVectors: qdrant.NewVectors(0.36, 0.55, 0.47, 0.94),\n\t\t\tPayload: qdrant.NewValueMap(map[string]any{\"vegan\": true}),\n\t\t},\n\t},\n})\n```\n\nSearch for similar vectors\n\n```go\nsearchResult, err := client.Query(context.Background(), \u0026qdrant.QueryPoints{\n\tCollectionName: \"{collection_name}\",\n\tQuery:          qdrant.NewQuery(0.2, 0.1, 0.9, 0.7),\n})\n```\n\nSearch for similar vectors with a filtering condition\n\n```go\nsearchResult, err := client.Query(context.Background(), \u0026qdrant.QueryPoints{\n\tCollectionName: \"{collection_name}\",\n\tQuery:          qdrant.NewQuery(0.2, 0.1, 0.9, 0.7),\n\tFilter: \u0026qdrant.Filter{\n\t\tMust: []*qdrant.Condition{\n\t\t\tqdrant.NewMatch(\"city\", \"London\"),\n\t\t},\n\t},\n\tWithPayload: qdrant.NewWithPayload(true),\n})\n```\n\n## ⚖️ LICENSE\n\n[Apache 2.0](https://github.com/qdrant/go-client/blob/master/LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fqdrant%2Fgo-client","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fqdrant%2Fgo-client","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fqdrant%2Fgo-client/lists"}