@@ -15,7 +15,7 @@ export class Rerankings extends APIResource {
1515 * @example
1616 * ```ts
1717 * const rerankingResponse = await client.rerankings.create({
18- * model: 'kanon-universal-classifier ',
18+ * model: 'kanon-2-reranker ',
1919 * query:
2020 * 'What are the essential elements required to establish a negligence claim?',
2121 * texts: [
@@ -35,8 +35,8 @@ export class Rerankings extends APIResource {
3535
3636export interface RerankingResponse {
3737 /**
38- * The rerankings of the texts, by relevance to the query, in order from highest to
39- * lowest relevance score.
38+ * The texts reranked by relevance to the query, in order from highest to lowest
39+ * relevance score.
4040 */
4141 results : Array < RerankingResponse . Result > ;
4242
@@ -74,10 +74,11 @@ export namespace RerankingResponse {
7474
7575export interface RerankingCreateParams {
7676 /**
77- * The ID of the [model](https://docs.isaacus.com/models#reranking) to use for
78- * reranking.
77+ * The ID of the model to use for reranking, being either a
78+ * [reranking model](https://docs.isaacus.com/models/introduction#reranking) or
79+ * [universal classification model](https://docs.isaacus.com/models/introduction#universal-classification).
7980 */
80- model : 'kanon-universal-classifier' | 'kanon-universal-classifier-mini' ;
81+ model : 'kanon-2-reranker' | 'kanon- universal-classifier' | 'kanon-universal-classifier-mini' ;
8182
8283 /**
8384 * The query to evaluate the relevance of the texts to.
@@ -115,7 +116,9 @@ export interface RerankingCreateParams {
115116 is_iql ?: boolean ;
116117
117118 /**
118- * The method to use for producing an overall relevance score for a text.
119+ * The method to use for producing an overall relevance score for a text that
120+ * exceeds the model's local context window and has, therefore, been split into
121+ * multiple chunks.
119122 *
120123 * `auto` is the default scoring method and is recommended for most use cases.
121124 * Currently, it is equivalent to `chunk_max`. In the future, it will automatically
0 commit comments