Skip to content

feature: qdrant.WithClient() #1249

Open

Description

@atopx
package main

import (
	"example/conf"

	"github.com/qdrant/go-client/qdrant"
	vecstore "github.com/tmc/langchaingo/vectorstores/qdrant"
)


func main() {
	cfg := conf.Get().Qdrant
	client, _ := qdrant.NewClient(&qdrant.Config{
		Host:      cfg.Host,
		Port:      cfg.Port,
	})
	
	store, _ := vecstore.New(
		vecstore.WithClient(client),
		vecstore.WithCollectionName("a"),
	)
	// use store
}

Activity

  1. Priya-9 commented on Nov 24, 2026

    @Priya-9

    The Qdrant store talks to the REST API directly and always uses httputil.DefaultClient. As a smaller step toward this, I'd like to add a WithHTTPClient(*http.Client) option (same as weaviate and azureaisearch), so callers can set timeouts, proxies, TLS or tracing. Passing a *qdrant.Client from go-client would need the migration in #1008. I'll open a PR for the HTTP client option.

  2. Priya-9 commented on Nov 24, 2026

    @Priya-9

    I've opened #1584 for the HTTP client option

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions