modcontextionary

package
v1.17.1 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2023 License: BSD-3-Clause Imports: 21 Imported by: 0

Documentation

Overview

modcontextionary concentrates some of the code that relates to the contextionary module, this must be extracted when Weaviate becomes modular.

For now it's just used to concentrate any new contextionary specific code, so it's already in one place to make the modularization easier later on

Index

Constants

View Source
const MinimumRequiredRemoteVersion = "1.0.0"

MinimumRequiredRemoteVersion describes the minimal semver version (independent of the model version) of the remote model inference API

Variables

This section is empty.

Functions

This section is empty.

Types

type ContextionaryModule

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

ContextionaryModule for now only handles storage and retrieval of extensions, but with making Weaviate more modular, this should contain anything related to the module

func New

func New() *ContextionaryModule

func (*ContextionaryModule) AdditionalProperties added in v1.2.0

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

func (*ContextionaryModule) Arguments added in v1.2.0

func (*ContextionaryModule) ClassConfigDefaults added in v1.2.0

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

func (*ContextionaryModule) Classifiers added in v1.2.1

func (*ContextionaryModule) Init

func (*ContextionaryModule) InitExtension added in v1.12.2

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

func (*ContextionaryModule) MetaInfo added in v1.2.1

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

func (*ContextionaryModule) Name

func (m *ContextionaryModule) Name() string

func (*ContextionaryModule) PropertyConfigDefaults added in v1.2.0

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

func (*ContextionaryModule) RootHandler

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

func (*ContextionaryModule) Type added in v1.15.0

func (*ContextionaryModule) ValidateClass added in v1.2.0

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

func (*ContextionaryModule) VectorSearches added in v1.2.0

func (*ContextionaryModule) VectorizeInput added in v1.17.0

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

func (*ContextionaryModule) VectorizeObject added in v1.2.0

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

Jump to

Keyboard shortcuts

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