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