nearText

package
v1.24.10 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: BSD-3-Clause Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const NAME = "nearText"

Variables

This section is empty.

Functions

This section is empty.

Types

type ExploreMove

type ExploreMove struct {
	Values  []string
	Force   float32
	Objects []ObjectMove
}

ExploreMove moves an existing Search Vector closer (or further away from) a specific other search term

type GraphQLArgumentsProvider

type GraphQLArgumentsProvider struct {
	// contains filtered or unexported fields
}

func New

func (*GraphQLArgumentsProvider) Arguments

type NearTextParams

type NearTextParams struct {
	Values        []string
	Limit         int
	MoveTo        ExploreMove
	MoveAwayFrom  ExploreMove
	Certainty     float64
	Distance      float64
	WithDistance  bool
	Network       bool
	Autocorrect   bool
	TargetVectors []string
}

func (NearTextParams) GetCertainty

func (n NearTextParams) GetCertainty() float64

func (NearTextParams) GetDistance

func (n NearTextParams) GetDistance() float64

func (NearTextParams) GetTargetVectors

func (n NearTextParams) GetTargetVectors() []string

func (NearTextParams) SimilarityMetricProvided

func (n NearTextParams) SimilarityMetricProvided() bool

func (NearTextParams) Validate

func (n NearTextParams) Validate() error

type ObjectMove

type ObjectMove struct {
	ID     string
	Beacon string
}

type Searcher

type Searcher struct {
	// contains filtered or unexported fields
}

func NewSearcher

func NewSearcher(vectorizer vectorizer) *Searcher

func (*Searcher) VectorSearches

func (s *Searcher) VectorSearches() map[string]modulecapabilities.VectorForParams

Jump to

Keyboard shortcuts

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