text2vecbase

package
v1.25.20 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2024 License: BSD-3-Clause Imports: 8 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BatchClient

type BatchClient interface {
	batch.BatchClient
	VectorizeQuery(ctx context.Context, input []string,
		cfg moduletools.ClassConfig) (*modulecomponents.VectorizationResult, error)
}

type BatchVectorizer

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

func New

func New(client BatchClient, batchVectorizer *batch.Batch, tokenizerFunc tokenizerFuncType) *BatchVectorizer

func (*BatchVectorizer) ObjectBatch

func (v *BatchVectorizer) ObjectBatch(ctx context.Context, objects []*models.Object, skipObject []bool, cfg moduletools.ClassConfig,
) ([][]float32, map[int]error)

func (*BatchVectorizer) Texts

func (v *BatchVectorizer) Texts(ctx context.Context, inputs []string,
	cfg moduletools.ClassConfig,
) ([]float32, error)

type MetaProvider

type MetaProvider interface {
	MetaInfo() (map[string]interface{}, error)
}

type TextVectorizer

type TextVectorizer interface {
	Object(ctx context.Context, object *models.Object,
		cfg moduletools.ClassConfig) ([]float32, models.AdditionalProperties, error)
	Texts(ctx context.Context, input []string,
		cfg moduletools.ClassConfig) ([]float32, error)
}

type TextVectorizerBatch

type TextVectorizerBatch interface {
	Texts(ctx context.Context, input []string,
		cfg moduletools.ClassConfig) ([]float32, error)
	Object(ctx context.Context, object *models.Object,
		cfg moduletools.ClassConfig, cs objectsvectorizer.ClassSettings) ([]float32, models.AdditionalProperties, error)
	ObjectBatch(ctx context.Context, objects []*models.Object, skipObject []bool, cfg moduletools.ClassConfig) ([][]float32, map[int]error)
}

Jump to

Keyboard shortcuts

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