Qdrant.Client (Qdrant v0.1.15)

Copy Markdown View Source

Immutable configuration for one Qdrant client.

Construct independent clients with new/1; each value retains its own URL, credentials, adapter, and timeout configuration.

iex> {:ok, client} = Qdrant.Client.new(url: "http://localhost:6333")
iex> client.url
"http://localhost:6333"

iex> {:error, %Qdrant.Error{kind: :configuration}} = Qdrant.Client.new(url: "not-a-url")

Summary

Types

t()

@type t() :: %Qdrant.Client{
  adapter: module() | function(),
  adapter_opts: keyword(),
  api_key: String.t() | nil,
  base_path: String.t(),
  interface: :rest,
  max_response_bytes: pos_integer(),
  tesla: Tesla.Client.t(),
  url: String.t()
}

Functions

new(opts \\ [])

@spec new(keyword()) :: {:ok, t()} | {:error, Qdrant.Error.t()}

new!(opts \\ [])

@spec new!(keyword()) :: t()