embeddings

package
v6.5.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CreateTextEmbeddingsOption

type CreateTextEmbeddingsOption func(*CreateTextEmbeddingsOptions)

type CreateTextEmbeddingsOptions

type CreateTextEmbeddingsOptions struct {
	Model string
	// contains filtered or unexported fields
}

func (CreateTextEmbeddingsOptions) New

type Embeddings

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

Embeddings service

func New

func New(clt client.Client) *Embeddings

func (*Embeddings) CreateTextEmbeddings

func (srv *Embeddings) CreateTextEmbeddings(Texts []string, optionalSetters ...CreateTextEmbeddingsOption) (*models.EmbeddingList, error)

CreateTextEmbeddings generate vector embeddings for an array of text using the selected embedding model. Use the returned vectors to power semantic search and similarity queries against your vector collections.

func (*Embeddings) WithCreateTextEmbeddingsModel

func (srv *Embeddings) WithCreateTextEmbeddingsModel(v string) CreateTextEmbeddingsOption

Jump to

Keyboard shortcuts

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