modrerankertransformers

package
v1.24.19 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2024 License: BSD-3-Clause Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const Name = "reranker-transformers"

Variables

This section is empty.

Functions

This section is empty.

Types

type ReRankerClient

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

type ReRankerModule

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

func New

func New() *ReRankerModule

func (*ReRankerModule) AdditionalProperties

func (m *ReRankerModule) AdditionalProperties() map[string]modulecapabilities.AdditionalProperty

func (*ReRankerModule) ClassConfigDefaults

func (m *ReRankerModule) ClassConfigDefaults() map[string]interface{}

func (*ReRankerModule) Init

func (*ReRankerModule) MetaInfo

func (m *ReRankerModule) MetaInfo() (map[string]interface{}, error)

func (*ReRankerModule) Name

func (m *ReRankerModule) Name() string

func (*ReRankerModule) PropertyConfigDefaults

func (m *ReRankerModule) PropertyConfigDefaults(
	dt *schema.DataType,
) map[string]interface{}

func (*ReRankerModule) RootHandler

func (m *ReRankerModule) RootHandler() http.Handler

func (*ReRankerModule) Type

func (*ReRankerModule) ValidateClass

func (m *ReRankerModule) ValidateClass(ctx context.Context,
	class *models.Class, cfg moduletools.ClassConfig,
) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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