22
33from __future__ import annotations
44
5- from typing import Optional
5+ from typing import List , Optional
66from typing_extensions import Literal
77
88import httpx
@@ -52,7 +52,7 @@ def create(
5252 * ,
5353 model : Literal ["kanon-universal-classifier" , "kanon-universal-classifier-mini" ],
5454 query : str ,
55- text : str ,
55+ texts : List [ str ] ,
5656 chunking_options : Optional [universal_create_params .ChunkingOptions ] | NotGiven = NOT_GIVEN ,
5757 is_iql : bool | NotGiven = NOT_GIVEN ,
5858 scoring_method : Literal ["auto" , "chunk_max" , "chunk_avg" , "chunk_min" ] | NotGiven = NOT_GIVEN ,
@@ -64,24 +64,24 @@ def create(
6464 timeout : float | httpx .Timeout | None | NotGiven = NOT_GIVEN ,
6565 ) -> UniversalClassification :
6666 """
67- Classify the relevance of a legal document to a query with an Isaacus universal
67+ Classify the relevance of legal documents to a query with an Isaacus universal
6868 legal AI classifier.
6969
7070 Args:
7171 model: The ID of the [model](https://docs.isaacus.com/models#universal-classification)
7272 to use for universal classification.
7373
7474 query: The [Isaacus Query Language (IQL)](https://docs.isaacus.com/iql) query or, if
75- IQL is disabled, the statement, to evaluate the text against.
75+ IQL is disabled, the statement, to evaluate the texts against.
7676
7777 The query must contain at least one non-whitespace character.
7878
79- Unlike the text being classified, the query cannot be so long that it exceeds
79+ Unlike the texts being classified, the query cannot be so long that it exceeds
8080 the maximum input length of the universal classifier.
8181
82- text : The text to classify.
82+ texts : The texts to classify.
8383
84- The text must contain at least one non-whitespace character.
84+ The texts must contain at least one non-whitespace character.
8585
8686 chunking_options: Options for how to split text into smaller chunks.
8787
@@ -92,13 +92,13 @@ def create(
9292
9393 `auto` is the default scoring method and is recommended for most use cases.
9494 Currently, it is equivalent to `chunk_max`. In the future, it will automatically
95- select the best method based on the model and input .
95+ select the best method based on the model and inputs .
9696
97- `chunk_max` uses the highest confidence score of all of the text's chunks.
97+ `chunk_max` uses the highest confidence score of all of the texts' chunks.
9898
99- `chunk_avg` averages the confidence scores of all of the text's chunks.
99+ `chunk_avg` averages the confidence scores of all of the texts' chunks.
100100
101- `chunk_min` uses the lowest confidence score of all of the text's chunks.
101+ `chunk_min` uses the lowest confidence score of all of the texts' chunks.
102102
103103 extra_headers: Send extra headers
104104
@@ -114,7 +114,7 @@ def create(
114114 {
115115 "model" : model ,
116116 "query" : query ,
117- "text " : text ,
117+ "texts " : texts ,
118118 "chunking_options" : chunking_options ,
119119 "is_iql" : is_iql ,
120120 "scoring_method" : scoring_method ,
@@ -153,7 +153,7 @@ async def create(
153153 * ,
154154 model : Literal ["kanon-universal-classifier" , "kanon-universal-classifier-mini" ],
155155 query : str ,
156- text : str ,
156+ texts : List [ str ] ,
157157 chunking_options : Optional [universal_create_params .ChunkingOptions ] | NotGiven = NOT_GIVEN ,
158158 is_iql : bool | NotGiven = NOT_GIVEN ,
159159 scoring_method : Literal ["auto" , "chunk_max" , "chunk_avg" , "chunk_min" ] | NotGiven = NOT_GIVEN ,
@@ -165,24 +165,24 @@ async def create(
165165 timeout : float | httpx .Timeout | None | NotGiven = NOT_GIVEN ,
166166 ) -> UniversalClassification :
167167 """
168- Classify the relevance of a legal document to a query with an Isaacus universal
168+ Classify the relevance of legal documents to a query with an Isaacus universal
169169 legal AI classifier.
170170
171171 Args:
172172 model: The ID of the [model](https://docs.isaacus.com/models#universal-classification)
173173 to use for universal classification.
174174
175175 query: The [Isaacus Query Language (IQL)](https://docs.isaacus.com/iql) query or, if
176- IQL is disabled, the statement, to evaluate the text against.
176+ IQL is disabled, the statement, to evaluate the texts against.
177177
178178 The query must contain at least one non-whitespace character.
179179
180- Unlike the text being classified, the query cannot be so long that it exceeds
180+ Unlike the texts being classified, the query cannot be so long that it exceeds
181181 the maximum input length of the universal classifier.
182182
183- text : The text to classify.
183+ texts : The texts to classify.
184184
185- The text must contain at least one non-whitespace character.
185+ The texts must contain at least one non-whitespace character.
186186
187187 chunking_options: Options for how to split text into smaller chunks.
188188
@@ -193,13 +193,13 @@ async def create(
193193
194194 `auto` is the default scoring method and is recommended for most use cases.
195195 Currently, it is equivalent to `chunk_max`. In the future, it will automatically
196- select the best method based on the model and input .
196+ select the best method based on the model and inputs .
197197
198- `chunk_max` uses the highest confidence score of all of the text's chunks.
198+ `chunk_max` uses the highest confidence score of all of the texts' chunks.
199199
200- `chunk_avg` averages the confidence scores of all of the text's chunks.
200+ `chunk_avg` averages the confidence scores of all of the texts' chunks.
201201
202- `chunk_min` uses the lowest confidence score of all of the text's chunks.
202+ `chunk_min` uses the lowest confidence score of all of the texts' chunks.
203203
204204 extra_headers: Send extra headers
205205
@@ -215,7 +215,7 @@ async def create(
215215 {
216216 "model" : model ,
217217 "query" : query ,
218- "text " : text ,
218+ "texts " : texts ,
219219 "chunking_options" : chunking_options ,
220220 "is_iql" : is_iql ,
221221 "scoring_method" : scoring_method ,
0 commit comments