Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RerankInput ¶
type RerankParameter ¶
type RerankRequest ¶
type RerankRequest struct {
Model string `json:"model"`
Input RerankInput `json:"input"`
Parameters *RerankParameter `json:"parameters,omitempty"`
}
type Reranker ¶
type Reranker struct {
Ctx context.Context
Config RerankerConfig
}
func NewReranker ¶
func NewReranker(ctx context.Context, config RerankerConfig) *Reranker
func (*Reranker) Rerank ¶
func (r *Reranker) Rerank(ctx context.Context, req domain.RerankRequest) (domain.RerankResponse, error)
type RerankerConfig ¶
Click to show internal directories.
Click to hide internal directories.