clients

package
v1.37.7 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2026 License: BSD-3-Clause Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

func New

func New(apiKey string, timeout time.Duration, logger logrus.FieldLogger) *Client

func (*Client) GetApiKeyHash

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

func (*Client) GetVectorizerRateLimit

func (c *Client) GetVectorizerRateLimit(ctx context.Context, _ moduletools.ClassConfig) *modulecomponents.RateLimits

func (*Client) MetaInfo

func (c *Client) MetaInfo() (map[string]any, error)

func (*Client) VectorizeQuery

func (c *Client) VectorizeQuery(ctx context.Context, input []string,
	cfg moduletools.ClassConfig,
) (*modulecomponents.VectorizationResult[[]float32], error)

type ModelLister

type ModelLister struct {
	// contains filtered or unexported fields
}

ModelLister fetches the model catalogue from a DigitalOcean Serverless Inference endpoint and caches the result in-memory.

func NewModelLister

func NewModelLister(timeout time.Duration) *ModelLister

func (*ModelLister) ListModels

func (l *ModelLister) ListModels(ctx context.Context, baseURL, apiKey, weaviateUUID string) ([]string, error)

Jump to

Keyboard shortcuts

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