modrerankercohere

package
v1.24.11 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const Name = "reranker-cohere"

Variables

This section is empty.

Functions

This section is empty.

Types

type ReRankerCohereClient

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

type ReRankerCohereModule

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

func New

func New() *ReRankerCohereModule

func (*ReRankerCohereModule) AdditionalProperties

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

func (*ReRankerCohereModule) ClassConfigDefaults

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

func (*ReRankerCohereModule) Init

func (*ReRankerCohereModule) MetaInfo

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

func (*ReRankerCohereModule) Name

func (m *ReRankerCohereModule) Name() string

func (*ReRankerCohereModule) PropertyConfigDefaults

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

func (*ReRankerCohereModule) RootHandler

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

func (*ReRankerCohereModule) Type

func (*ReRankerCohereModule) ValidateClass

func (m *ReRankerCohereModule) 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