Documentation ¶
Index ¶
- type FeatureProjection
- type FeatureProjector
- func (f *FeatureProjector) AdditionalPropertyFn(ctx context.Context, in []search.Result, params interface{}, limit *int, ...) ([]search.Result, error)
- func (f *FeatureProjector) AdditonalPropertyDefaultValue() interface{}
- func (f *FeatureProjector) ExtractAdditionalFn(param []*ast.Argument) interface{}
- func (f *FeatureProjector) Reduce(in []search.Result, params *Params) ([]search.Result, error)
- type Params
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FeatureProjection ¶
type FeatureProjection struct {
Vector []float32 `json:"vector"`
}
type FeatureProjector ¶
type FeatureProjector struct {
// contains filtered or unexported fields
}
func New ¶
func New() *FeatureProjector
func (*FeatureProjector) AdditionalPropertyFn ¶
func (f *FeatureProjector) AdditionalPropertyFn(ctx context.Context, in []search.Result, params interface{}, limit *int, argumentModuleParams map[string]interface{}, cfg moduletools.ClassConfig, ) ([]search.Result, error)
func (*FeatureProjector) AdditonalPropertyDefaultValue ¶
func (f *FeatureProjector) AdditonalPropertyDefaultValue() interface{}
func (*FeatureProjector) ExtractAdditionalFn ¶
func (f *FeatureProjector) ExtractAdditionalFn(param []*ast.Argument) interface{}
type Params ¶
type Params struct { Enabled bool Algorithm *string // optional parameter Dimensions *int // optional parameter Perplexity *int // optional parameter Iterations *int // optional parameter LearningRate *int // optional parameter IncludeNeighbors bool }
func (*Params) SetDefaultsAndValidate ¶
Click to show internal directories.
Click to hide internal directories.