Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AskParams ¶
type AskParams struct { Question string Certainty float64 Distance float64 WithDistance bool Properties []string Autocorrect bool }
func (AskParams) GetCertainty ¶
func (AskParams) GetDistance ¶
func (AskParams) SimilarityMetricProvided ¶
type GraphQLArgumentsProvider ¶
type GraphQLArgumentsProvider struct {
// contains filtered or unexported fields
}
func New ¶
func New(askTransformer modulecapabilities.TextTransform) *GraphQLArgumentsProvider
func (*GraphQLArgumentsProvider) Arguments ¶
func (g *GraphQLArgumentsProvider) Arguments() map[string]modulecapabilities.GraphQLArgument
type ParamsHelper ¶
type ParamsHelper struct{}
func NewParamsHelper ¶
func NewParamsHelper() *ParamsHelper
func (*ParamsHelper) GetCertainty ¶
func (p *ParamsHelper) GetCertainty(params interface{}) float64
func (*ParamsHelper) GetDistance ¶
func (p *ParamsHelper) GetDistance(params interface{}) float64
func (*ParamsHelper) GetProperties ¶
func (p *ParamsHelper) GetProperties(params interface{}) []string
func (*ParamsHelper) GetQuestion ¶
func (p *ParamsHelper) GetQuestion(params interface{}) string
type Searcher ¶
type Searcher struct {
// contains filtered or unexported fields
}
func NewSearcher ¶
func NewSearcher(nearTextDeps []modulecapabilities.Dependency) *Searcher
func (*Searcher) VectorSearches ¶
func (s *Searcher) VectorSearches() map[string]modulecapabilities.ArgumentVectorForParams
Click to show internal directories.
Click to hide internal directories.