aws

package
v1.32.21 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 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 EmbeddingPurpose added in v1.32.17

type EmbeddingPurpose string
const (
	GenericIndex     EmbeddingPurpose = "GENERIC_INDEX"
	GenericRetrieval EmbeddingPurpose = "GENERIC_RETRIEVAL"
)

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
	EmbeddingPurpose EmbeddingPurpose
}

type TaskType added in v1.32.17

type TaskType string
const (
	SingleEmbedding TaskType = "SINGLE_EMBEDDING"
)

Jump to

Keyboard shortcuts

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