weaviateembed

package
v1.35.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 26, 2026 License: BSD-3-Clause Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultBaseURL = "https://api.embedding.weaviate.io"
	URLPath        = "/v1/embeddings/embed"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client[T dto.Embedding] struct {
	// contains filtered or unexported fields
}

func New

func New[T dto.Embedding](timeout time.Duration, defaultRPM, defaultTPM int) *Client[T]

func (*Client[T]) GetApiKeyHash

func (c *Client[T]) GetApiKeyHash(ctx context.Context, config moduletools.ClassConfig) [32]byte

func (*Client[T]) GetVectorizerRateLimit

func (c *Client[T]) GetVectorizerRateLimit(ctx context.Context, cfg moduletools.ClassConfig) *modulecomponents.RateLimits

func (*Client[T]) Vectorize

func (c *Client[T]) Vectorize(ctx context.Context, input []string, query bool, dimensions *int64, model, baseURL string) (*embeddingsResponse[T], error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL