aws

package
v1.32.13 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2025 License: BSD-3-Clause Imports: 14 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(awsAccessKey, awsSecret, awsSessionToken string,
	timeout time.Duration,
	logger logrus.FieldLogger,
) *Client

func (*Client) Vectorize

func (c *Client) Vectorize(ctx context.Context,
	texts []string, settings Settings,
) (*modulecomponents.VectorizationResult[[]float32], error)

func (*Client) VectorizeMultiModal

func (c *Client) VectorizeMultiModal(ctx context.Context,
	texts, images []string, settings Settings,
) (*modulecomponents.VectorizationCLIPResult[[]float32], error)

type OperationType

type OperationType string
const (
	Document OperationType = "document"
	Query    OperationType = "query"
)

type Service

type Service string
const (
	Bedrock   Service = "bedrock"
	Sagemaker Service = "sagemaker"
)

type Settings

type Settings struct {
	Model         string
	Region        string
	Endpoint      string
	Service       Service
	Dimensions    *int64
	OperationType OperationType
}

Jump to

Keyboard shortcuts

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