package snippet import ( "context" "github.com/qdrant/go-client/qdrant" ) func Main() { // @hide-start client, err := qdrant.NewClient(&qdrant.Config{ Host: "xyz-example.qdrant.io", Port: 6334, APIKey: "", UseTLS: true, }) // @hide-end if err != nil { panic(err) } // @hide ctx := qdrant.WithHeader(context.Background(), "openrouter-api-key", "") client.Query(ctx, &qdrant.QueryPoints{ CollectionName: "{collection_name}", Query: qdrant.NewQueryNearest( qdrant.NewVectorInputDocument(&qdrant.Document{ Model: "openrouter/mistralai/mistral-embed-2312", Text: "How to bake cookies?", }), ), }) }