Documentation
¶
Overview ¶
Package rerank defines the common reranking request and response structures.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Request ¶
type Request struct {
// Model is the reranker model to use.
Model string
// Query is the search query to rank documents against.
Query string
// Documents is the list of documents to rerank.
Documents []string
// TopN limits the number of results returned (0 means return all).
TopN int
}
Request represents a reranking request.
type Response ¶
type Response struct {
// Model is the model that was used for reranking.
Model string
// Results contains the reranked documents with their scores.
Results Results
}
Response represents a reranking response.
Click to show internal directories.
Click to hide internal directories.