modrerankernvidia

package
v1.29.0-rc.1 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2025 License: BSD-3-Clause Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const Name = "reranker-nvidia"

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