Documentation ¶
Index ¶
- Constants
- type ReRankerCohereClient
- type ReRankerCohereModule
- func (m *ReRankerCohereModule) AdditionalProperties() map[string]modulecapabilities.AdditionalProperty
- func (m *ReRankerCohereModule) ClassConfigDefaults() map[string]interface{}
- func (m *ReRankerCohereModule) Init(ctx context.Context, params moduletools.ModuleInitParams) error
- func (m *ReRankerCohereModule) MetaInfo() (map[string]interface{}, error)
- func (m *ReRankerCohereModule) Name() string
- func (m *ReRankerCohereModule) PropertyConfigDefaults(dt *schema.DataType) map[string]interface{}
- func (m *ReRankerCohereModule) RootHandler() http.Handler
- func (m *ReRankerCohereModule) Type() modulecapabilities.ModuleType
- func (m *ReRankerCohereModule) ValidateClass(ctx context.Context, class *models.Class, cfg moduletools.ClassConfig) error
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 (m *ReRankerCohereModule) Init(ctx context.Context, params moduletools.ModuleInitParams, ) error
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 (m *ReRankerCohereModule) Type() modulecapabilities.ModuleType
func (*ReRankerCohereModule) ValidateClass ¶
func (m *ReRankerCohereModule) ValidateClass(ctx context.Context, class *models.Class, cfg moduletools.ClassConfig, ) error
Click to show internal directories.
Click to hide internal directories.