Documentation
¶
Index ¶
Constants ¶
View Source
const Name = "nearText"
Variables ¶
View Source
var ( ErrMultiVectorMoveTo = errors.New("move to operations are not applicable for multivector embeddings") ErrMultiVectorMoveAway = errors.New("move away from operations are not applicable for multivector embeddings") )
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 New(nearTextTransformer modulecapabilities.TextTransform) *GraphQLArgumentsProvider
func (*GraphQLArgumentsProvider) Arguments ¶
func (g *GraphQLArgumentsProvider) Arguments() map[string]modulecapabilities.GraphQLArgument
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 Searcher ¶
func NewSearcher ¶
func (*Searcher[T]) VectorSearches ¶
func (s *Searcher[T]) VectorSearches() map[string]modulecapabilities.VectorForParams[T]
Click to show internal directories.
Click to hide internal directories.