Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) Rerank ¶
func (c *Client) Rerank(ctx context.Context, req RerankRequest) (*RerankResponse, error)
type MockServer ¶
type MockServer struct {
// contains filtered or unexported fields
}
func NewMockServer ¶
func NewMockServer() *MockServer
func (*MockServer) AuthToken ¶
func (s *MockServer) AuthToken() string
func (*MockServer) Close ¶
func (s *MockServer) Close() error
func (*MockServer) Ready ¶
func (s *MockServer) Ready()
func (*MockServer) Start ¶
func (s *MockServer) Start() error
func (*MockServer) URL ¶
func (s *MockServer) URL() string
type RerankRequest ¶
type RerankResponse ¶
type RerankResponse struct {
Model string `json:"model"`
Usage Usage `json:"usage"`
Results []RerankResult `json:"results"`
}
type RerankResult ¶
Click to show internal directories.
Click to hide internal directories.