modollama

package
v1.25.12 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2024 License: BSD-3-Clause Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const Name = "text2vec-ollama"

Variables

This section is empty.

Functions

This section is empty.

Types

type OllamaModule

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

func New

func New() *OllamaModule

func (*OllamaModule) AdditionalProperties

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

func (*OllamaModule) Arguments

func (*OllamaModule) ClassConfigDefaults

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

func (*OllamaModule) Init

func (*OllamaModule) InitExtension

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

func (*OllamaModule) MetaInfo

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

func (*OllamaModule) Name

func (m *OllamaModule) Name() string

func (*OllamaModule) PropertyConfigDefaults

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

func (*OllamaModule) RootHandler

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

func (*OllamaModule) Type

func (*OllamaModule) ValidateClass

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

func (*OllamaModule) VectorSearches

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

func (*OllamaModule) VectorizableProperties

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

func (*OllamaModule) VectorizeBatch

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

func (*OllamaModule) VectorizeInput

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

func (*OllamaModule) VectorizeObject

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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