modhuggingface

package
v1.26.3 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2024 License: BSD-3-Clause Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const Name = "text2vec-huggingface"

Variables

This section is empty.

Functions

This section is empty.

Types

type HuggingFaceModule

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

func New

func New() *HuggingFaceModule

func (*HuggingFaceModule) AdditionalProperties

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

func (*HuggingFaceModule) Arguments

func (*HuggingFaceModule) ClassConfigDefaults

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

func (*HuggingFaceModule) Init

func (*HuggingFaceModule) InitExtension

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

func (*HuggingFaceModule) MetaInfo

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

func (*HuggingFaceModule) Name

func (m *HuggingFaceModule) Name() string

func (*HuggingFaceModule) PropertyConfigDefaults

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

func (*HuggingFaceModule) RootHandler

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

func (*HuggingFaceModule) Type

func (*HuggingFaceModule) ValidateClass

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

func (*HuggingFaceModule) VectorSearches

func (*HuggingFaceModule) VectorizableProperties added in v1.25.0

func (m *HuggingFaceModule) VectorizableProperties(cfg moduletools.ClassConfig) (bool, []string, error)

func (*HuggingFaceModule) VectorizeBatch added in v1.25.0

func (m *HuggingFaceModule) VectorizeBatch(ctx context.Context, objs []*models.Object, skipObject []bool, cfg moduletools.ClassConfig) ([][]float32, []models.AdditionalProperties, map[int]error)

func (*HuggingFaceModule) VectorizeInput

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

func (*HuggingFaceModule) VectorizeObject

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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