sempath

package
v1.26.0-rc.1 Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2024 License: BSD-3-Clause Imports: 14 Imported by: 0

Documentation

Index

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 (p *Params) SetDefaultsAndValidate(inputSize, dims int) error

func (*Params) SetSearchVector

func (p *Params) SetSearchVector(vector []float32)

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 (pb *PathBuilder) CalculatePath(in []search.Result, params *Params) ([]search.Result, error)

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)
}

Jump to

Keyboard shortcuts

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