Documentation ¶
Index ¶
- type ClassSettings
- type ConfigValidator
- type TransformersModule
- func (m *TransformersModule) AdditionalProperties() map[string]modulecapabilities.AdditionalProperty
- func (m *TransformersModule) Arguments() map[string]modulecapabilities.GraphQLArgument
- func (m *TransformersModule) ClassConfigDefaults() map[string]interface{}
- func (m *TransformersModule) Init(ctx context.Context, params moduletools.ModuleInitParams) error
- func (m *TransformersModule) InitExtension(modules []modulecapabilities.Module) error
- func (m *TransformersModule) MetaInfo() (map[string]interface{}, error)
- func (m *TransformersModule) Name() string
- func (m *TransformersModule) PropertyConfigDefaults(dt *schema.DataType) map[string]interface{}
- func (m *TransformersModule) RootHandler() http.Handler
- func (m *TransformersModule) Type() modulecapabilities.ModuleType
- func (m *TransformersModule) ValidateClass(ctx context.Context, class *models.Class, cfg moduletools.ClassConfig) error
- func (m *TransformersModule) VectorSearches() map[string]modulecapabilities.VectorForParams
- func (m *TransformersModule) VectorizeInput(ctx context.Context, input string, cfg moduletools.ClassConfig) ([]float32, error)
- func (m *TransformersModule) VectorizeObject(ctx context.Context, obj *models.Object, ...) ([]float32, models.AdditionalProperties, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClassSettings ¶
type ConfigValidator ¶
type ConfigValidator struct {
// contains filtered or unexported fields
}
func NewConfigValidator ¶
func NewConfigValidator(logger logrus.FieldLogger) *ConfigValidator
func (*ConfigValidator) Do ¶
func (cv *ConfigValidator) Do(ctx context.Context, class *models.Class, cfg moduletools.ClassConfig, settings ClassSettings, ) error
type TransformersModule ¶
type TransformersModule struct {
// contains filtered or unexported fields
}
func New ¶
func New() *TransformersModule
func (*TransformersModule) AdditionalProperties ¶
func (m *TransformersModule) AdditionalProperties() map[string]modulecapabilities.AdditionalProperty
func (*TransformersModule) Arguments ¶
func (m *TransformersModule) Arguments() map[string]modulecapabilities.GraphQLArgument
func (*TransformersModule) ClassConfigDefaults ¶
func (m *TransformersModule) ClassConfigDefaults() map[string]interface{}
func (*TransformersModule) Init ¶
func (m *TransformersModule) Init(ctx context.Context, params moduletools.ModuleInitParams, ) error
func (*TransformersModule) InitExtension ¶
func (m *TransformersModule) InitExtension(modules []modulecapabilities.Module) error
func (*TransformersModule) MetaInfo ¶
func (m *TransformersModule) MetaInfo() (map[string]interface{}, error)
func (*TransformersModule) Name ¶
func (m *TransformersModule) Name() string
func (*TransformersModule) PropertyConfigDefaults ¶
func (m *TransformersModule) PropertyConfigDefaults( dt *schema.DataType, ) map[string]interface{}
func (*TransformersModule) RootHandler ¶
func (m *TransformersModule) RootHandler() http.Handler
func (*TransformersModule) Type ¶
func (m *TransformersModule) Type() modulecapabilities.ModuleType
func (*TransformersModule) ValidateClass ¶
func (m *TransformersModule) ValidateClass(ctx context.Context, class *models.Class, cfg moduletools.ClassConfig, ) error
func (*TransformersModule) VectorSearches ¶
func (m *TransformersModule) VectorSearches() map[string]modulecapabilities.VectorForParams
func (*TransformersModule) VectorizeInput ¶
func (m *TransformersModule) VectorizeInput(ctx context.Context, input string, cfg moduletools.ClassConfig, ) ([]float32, error)
func (*TransformersModule) VectorizeObject ¶
func (m *TransformersModule) VectorizeObject(ctx context.Context, obj *models.Object, comp moduletools.VectorizablePropsComparator, cfg moduletools.ClassConfig, ) ([]float32, models.AdditionalProperties, error)
Click to show internal directories.
Click to hide internal directories.