Documentation ¶
Index ¶
- Constants
- type OllamaModule
- func (m *OllamaModule) AdditionalProperties() map[string]modulecapabilities.AdditionalProperty
- func (m *OllamaModule) Arguments() map[string]modulecapabilities.GraphQLArgument
- func (m *OllamaModule) ClassConfigDefaults() map[string]interface{}
- func (m *OllamaModule) Init(ctx context.Context, params moduletools.ModuleInitParams) error
- func (m *OllamaModule) InitExtension(modules []modulecapabilities.Module) error
- func (m *OllamaModule) MetaInfo() (map[string]interface{}, error)
- func (m *OllamaModule) Name() string
- func (m *OllamaModule) PropertyConfigDefaults(dt *schema.DataType) map[string]interface{}
- func (m *OllamaModule) RootHandler() http.Handler
- func (m *OllamaModule) Type() modulecapabilities.ModuleType
- func (m *OllamaModule) ValidateClass(ctx context.Context, class *models.Class, cfg moduletools.ClassConfig) error
- func (m *OllamaModule) VectorSearches() map[string]modulecapabilities.VectorForParams
- func (m *OllamaModule) VectorizableProperties(cfg moduletools.ClassConfig) (bool, []string, error)
- func (m *OllamaModule) VectorizeBatch(ctx context.Context, objs []*models.Object, skipObject []bool, ...) ([][]float32, []models.AdditionalProperties, map[int]error)
- func (m *OllamaModule) VectorizeInput(ctx context.Context, input string, cfg moduletools.ClassConfig) ([]float32, error)
- func (m *OllamaModule) VectorizeObject(ctx context.Context, obj *models.Object, cfg moduletools.ClassConfig) ([]float32, models.AdditionalProperties, error)
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 (m *OllamaModule) Arguments() map[string]modulecapabilities.GraphQLArgument
func (*OllamaModule) ClassConfigDefaults ¶
func (m *OllamaModule) ClassConfigDefaults() map[string]interface{}
func (*OllamaModule) Init ¶
func (m *OllamaModule) Init(ctx context.Context, params moduletools.ModuleInitParams, ) error
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 (m *OllamaModule) Type() modulecapabilities.ModuleType
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 ¶
func (m *OllamaModule) VectorizeObject(ctx context.Context, obj *models.Object, cfg moduletools.ClassConfig, ) ([]float32, models.AdditionalProperties, error)
Click to show internal directories.
Click to hide internal directories.