Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RankedResult ¶
type RerankedChromaResults ¶
type RerankedChromaResults struct {
chromago.QueryResults
Ranks map[string][][]float32 // each reranker adds a rank for each result
}
type RerankingFunction ¶
type RerankingFunction interface {
ID() string
Rerank(ctx context.Context, query string, results []Result) (map[string][]RankedResult, error)
RerankResults(ctx context.Context, queryResults *chromago.QueryResults) (*RerankedChromaResults, error)
}
type RerankingModel ¶
type RerankingModel string
Click to show internal directories.
Click to hide internal directories.