/** * @example * { * query: "query", * documents: ["documents"], * model: "model" * } */ export interface RerankRequest { /** The query as a string. The query can contain a maximum of 1000 tokens for `rerank-lite-1` and 2000 tokens for `rerank-1`. */ query: string; /** The documents to be reranked as a list of strings. */ documents: string[]; /** Name of the model. Recommended options: `rerank-lite-1`, `rerank-1`. */ model: string; /** The number of most relevant documents to return. If not specified, the reranking results of all documents will be returned. */ topK?: number; /** Whether to return the documents in the response. Defaults to `false`. */ returnDocuments?: boolean; /** Whether to truncate the input to satisfy the "context length limit" on the query and the documents. Defaults to `true`. */ truncation?: boolean; }