modhuggingface

package
v1.20.1 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2023 License: BSD-3-Clause Imports: 14 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) VectorizeInput

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

func (*HuggingFaceModule) VectorizeObject

func (m *HuggingFaceModule) VectorizeObject(ctx context.Context,
	obj *models.Object, objDiff *moduletools.ObjectDiff, cfg moduletools.ClassConfig,
) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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