Documentation ¶
Index ¶
- type Params
- type PathBuilder
- func (pb *PathBuilder) AdditionalPropertyDefaultValue() interface{}
- func (pb *PathBuilder) AdditionalPropertyFn(ctx context.Context, in []search.Result, params interface{}, limit *int, ...) ([]search.Result, error)
- func (pb *PathBuilder) CalculatePath(in []search.Result, params *Params) ([]search.Result, error)
- func (pb *PathBuilder) ExtractAdditionalFn(param []*ast.Argument) interface{}
- type Remote
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Params ¶
type Params struct {
SearchVector []float32
}
func (*Params) SetDefaultsAndValidate ¶
func (*Params) SetSearchVector ¶
type PathBuilder ¶
type PathBuilder struct {
// contains filtered or unexported fields
}
func New ¶
func New(c11y Remote) *PathBuilder
func (*PathBuilder) AdditionalPropertyDefaultValue ¶ added in v1.19.0
func (pb *PathBuilder) AdditionalPropertyDefaultValue() interface{}
func (*PathBuilder) AdditionalPropertyFn ¶
func (pb *PathBuilder) AdditionalPropertyFn(ctx context.Context, in []search.Result, params interface{}, limit *int, argumentModuleParams map[string]interface{}, cfg moduletools.ClassConfig, ) ([]search.Result, error)
func (*PathBuilder) CalculatePath ¶
func (*PathBuilder) ExtractAdditionalFn ¶
func (pb *PathBuilder) ExtractAdditionalFn(param []*ast.Argument) interface{}
type Remote ¶
type Remote interface {
MultiNearestWordsByVector(ctx context.Context, vectors [][]float32, k, n int) ([]*txt2vecmodels.NearestNeighbors, error)
}
Click to show internal directories.
Click to hide internal directories.