modtransformers

package
v1.24.19 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2024 License: BSD-3-Clause Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClassSettings

type ClassSettings interface {
	VectorizeClassName() bool
	VectorizePropertyName(propName string) bool
	PropertyIndexed(propName string) bool
}

type ConfigValidator

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

func NewConfigValidator

func NewConfigValidator(logger logrus.FieldLogger) *ConfigValidator

func (*ConfigValidator) Do

func (cv *ConfigValidator) Do(ctx context.Context, class *models.Class,
	cfg moduletools.ClassConfig, settings ClassSettings,
) error

type TransformersModule

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

func New

func New() *TransformersModule

func (*TransformersModule) AdditionalProperties

func (m *TransformersModule) AdditionalProperties() map[string]modulecapabilities.AdditionalProperty

func (*TransformersModule) Arguments

func (*TransformersModule) ClassConfigDefaults

func (m *TransformersModule) ClassConfigDefaults() map[string]interface{}

func (*TransformersModule) Init

func (*TransformersModule) InitExtension

func (m *TransformersModule) InitExtension(modules []modulecapabilities.Module) error

func (*TransformersModule) MetaInfo

func (m *TransformersModule) MetaInfo() (map[string]interface{}, error)

func (*TransformersModule) Name

func (m *TransformersModule) Name() string

func (*TransformersModule) PropertyConfigDefaults

func (m *TransformersModule) PropertyConfigDefaults(
	dt *schema.DataType,
) map[string]interface{}

func (*TransformersModule) RootHandler

func (m *TransformersModule) RootHandler() http.Handler

func (*TransformersModule) Type

func (*TransformersModule) ValidateClass

func (m *TransformersModule) ValidateClass(ctx context.Context,
	class *models.Class, cfg moduletools.ClassConfig,
) error

func (*TransformersModule) VectorSearches

func (*TransformersModule) VectorizeInput

func (m *TransformersModule) VectorizeInput(ctx context.Context,
	input string, cfg moduletools.ClassConfig,
) ([]float32, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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