rank

package
v1.28.3 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2025 License: BSD-3-Clause Imports: 11 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 {
	Property *string
	Query    *string
}

func (Params) GetPropertiesToExtract added in v1.27.0

func (n Params) GetPropertiesToExtract() []string

func (Params) GetProperty

func (n Params) GetProperty() string

func (Params) GetQuery

func (n Params) GetQuery() string

type ReRankerClient

type ReRankerClient interface {
	Rank(ctx context.Context, query string, documents []string, cfg moduletools.ClassConfig) (*ent.RankResult, error)
}

const maximumNumberOfGoroutines = 10

type ReRankerProvider

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

func New

func New(reranker ReRankerClient) *ReRankerProvider

func (*ReRankerProvider) AdditionalFieldFn

func (p *ReRankerProvider) AdditionalFieldFn(classname string) *graphql.Field

func (*ReRankerProvider) AdditionalPropertyDefaultValue

func (p *ReRankerProvider) AdditionalPropertyDefaultValue() interface{}

func (*ReRankerProvider) AdditionalPropertyFn

func (p *ReRankerProvider) AdditionalPropertyFn(ctx context.Context,
	in []search.Result, params interface{}, limit *int,
	argumentModuleParams map[string]interface{}, cfg moduletools.ClassConfig,
) ([]search.Result, error)

func (*ReRankerProvider) ExtractAdditionalFn

func (p *ReRankerProvider) ExtractAdditionalFn(param []*ast.Argument, class *models.Class) interface{}

Jump to

Keyboard shortcuts

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