modcohere

package
v1.20.3 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2023 License: BSD-3-Clause Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const Name = "text2vec-cohere"

Variables

This section is empty.

Functions

This section is empty.

Types

type CohereModule

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

func New

func New() *CohereModule

func (*CohereModule) AdditionalProperties

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

func (*CohereModule) Arguments

func (*CohereModule) ClassConfigDefaults

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

func (*CohereModule) Init

func (*CohereModule) InitExtension

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

func (*CohereModule) MetaInfo

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

func (*CohereModule) Name

func (m *CohereModule) Name() string

func (*CohereModule) PropertyConfigDefaults

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

func (*CohereModule) RootHandler

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

func (*CohereModule) Type

func (*CohereModule) ValidateClass

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

func (*CohereModule) VectorSearches

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

func (*CohereModule) VectorizeInput

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

func (*CohereModule) VectorizeObject

func (m *CohereModule) 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