modcohere

package
v1.29.0 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2025 License: BSD-3-Clause Imports: 16 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[[]float32]

func (*CohereModule) VectorizableProperties added in v1.25.0

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

func (*CohereModule) VectorizeBatch added in v1.25.0

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

func (*CohereModule) VectorizeInput

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

func (*CohereModule) VectorizeObject

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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