Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CohereClient ¶
type CohereClient interface {
Rerank(ctx context.Context, request *cohere.RerankRequest) (*cohere.RerankResponse, error)
}
CohereClient is an interface for interacting with the Cohere API.
type CohereRerank ¶
type CohereRerank struct {
// contains filtered or unexported fields
}
CohereRerank is a struct representing the Cohere Rerank compression functionality.
func NewCohereRank ¶
func NewCohereRank(client CohereClient, optFns ...func(o *CohereRerankOptions)) *CohereRerank
NewCohereRank creates a new instance of CohereRerank with the provided client and options.
type CohereRerankOptions ¶
CohereRerankOptions contains options for Cohere Rerank compression.
Click to show internal directories.
Click to hide internal directories.