modcontextionary

package
v1.24.10 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: BSD-3-Clause Imports: 22 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

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

func (*ContextionaryModule) Arguments

func (*ContextionaryModule) ClassConfigDefaults

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

func (*ContextionaryModule) Classifiers

func (*ContextionaryModule) Init

func (*ContextionaryModule) InitExtension

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

func (*ContextionaryModule) MetaInfo

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

func (*ContextionaryModule) Name

func (m *ContextionaryModule) Name() string

func (*ContextionaryModule) PropertyConfigDefaults

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

func (*ContextionaryModule) RootHandler

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

func (*ContextionaryModule) Type

func (*ContextionaryModule) ValidateClass

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

func (*ContextionaryModule) VectorSearches

func (*ContextionaryModule) VectorizeInput

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

Jump to

Keyboard shortcuts

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