modgoogle

package
v1.27.4 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2024 License: BSD-3-Clause Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Name       = "text2vec-google"
	LegacyName = "text2vec-palm"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type GoogleModule

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

func New

func New() *GoogleModule

func (*GoogleModule) AdditionalProperties

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

func (*GoogleModule) AltNames

func (m *GoogleModule) AltNames() []string

func (*GoogleModule) Arguments

func (*GoogleModule) ClassConfigDefaults

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

func (*GoogleModule) Init

func (*GoogleModule) InitExtension

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

func (*GoogleModule) MetaInfo

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

func (*GoogleModule) Name

func (m *GoogleModule) Name() string

func (*GoogleModule) PropertyConfigDefaults

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

func (*GoogleModule) RootHandler

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

func (*GoogleModule) Type

func (*GoogleModule) ValidateClass

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

func (*GoogleModule) VectorSearches

func (m *GoogleModule) VectorSearches() map[string]modulecapabilities.VectorForParams

func (*GoogleModule) VectorizableProperties

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

func (*GoogleModule) VectorizeBatch

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

func (*GoogleModule) VectorizeInput

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

func (*GoogleModule) VectorizeObject

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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