isaacus 0.1.6__py3-none-any.whl → 0.3.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- isaacus/_models.py +1 -1
- isaacus/_utils/_transform.py +1 -1
- isaacus/_version.py +1 -1
- isaacus/resources/classifications/universal.py +2 -2
- isaacus/types/classifications/universal_classification.py +4 -1
- {isaacus-0.1.6.dist-info → isaacus-0.3.0.dist-info}/METADATA +1 -1
- {isaacus-0.1.6.dist-info → isaacus-0.3.0.dist-info}/RECORD +9 -9
- {isaacus-0.1.6.dist-info → isaacus-0.3.0.dist-info}/WHEEL +0 -0
- {isaacus-0.1.6.dist-info → isaacus-0.3.0.dist-info}/licenses/LICENSE +0 -0
isaacus/_models.py
CHANGED
@@ -681,7 +681,7 @@ def set_pydantic_config(typ: Any, config: pydantic.ConfigDict) -> None:
|
|
681
681
|
setattr(typ, "__pydantic_config__", config) # noqa: B010
|
682
682
|
|
683
683
|
|
684
|
-
# our use of
|
684
|
+
# our use of subclassing here causes weirdness for type checkers,
|
685
685
|
# so we just pretend that we don't subclass
|
686
686
|
if TYPE_CHECKING:
|
687
687
|
GenericModel = BaseModel
|
isaacus/_utils/_transform.py
CHANGED
@@ -126,7 +126,7 @@ def _get_annotated_type(type_: type) -> type | None:
|
|
126
126
|
def _maybe_transform_key(key: str, type_: type) -> str:
|
127
127
|
"""Transform the given `data` based on the annotations provided in `type_`.
|
128
128
|
|
129
|
-
Note: this function only looks at `Annotated` types that contain `
|
129
|
+
Note: this function only looks at `Annotated` types that contain `PropertyInfo` metadata.
|
130
130
|
"""
|
131
131
|
annotated_type = _get_annotated_type(type_)
|
132
132
|
if annotated_type is None:
|
isaacus/_version.py
CHANGED
@@ -64,7 +64,7 @@ class UniversalResource(SyncAPIResource):
|
|
64
64
|
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
65
65
|
) -> UniversalClassification:
|
66
66
|
"""
|
67
|
-
Classify the relevance of a legal document to a query
|
67
|
+
Classify the relevance of a legal document to a query with an Isaacus universal
|
68
68
|
legal AI classifier.
|
69
69
|
|
70
70
|
Args:
|
@@ -165,7 +165,7 @@ class AsyncUniversalResource(AsyncAPIResource):
|
|
165
165
|
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
166
166
|
) -> UniversalClassification:
|
167
167
|
"""
|
168
|
-
Classify the relevance of a legal document to a query
|
168
|
+
Classify the relevance of a legal document to a query with an Isaacus universal
|
169
169
|
legal AI classifier.
|
170
170
|
|
171
171
|
Args:
|
@@ -11,6 +11,9 @@ class Chunk(BaseModel):
|
|
11
11
|
end: int
|
12
12
|
"""The end index of the chunk in the original text."""
|
13
13
|
|
14
|
+
index: int
|
15
|
+
"""The index of the chunk in the list of chunks."""
|
16
|
+
|
14
17
|
score: float
|
15
18
|
"""
|
16
19
|
The model's score of the likelihood that the query expressed about the chunk is
|
@@ -37,7 +40,7 @@ class UniversalClassification(BaseModel):
|
|
37
40
|
"""
|
38
41
|
The text as broken into chunks by
|
39
42
|
[semchunk](https://github.com/isaacus-dev/semchunk), each chunk with its own
|
40
|
-
confidence score.
|
43
|
+
confidence score, ordered from highest to lowest score.
|
41
44
|
|
42
45
|
If no chunking occurred, this will be `null`.
|
43
46
|
"""
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.3
|
2
2
|
Name: isaacus
|
3
|
-
Version: 0.
|
3
|
+
Version: 0.3.0
|
4
4
|
Summary: The official Python library for the isaacus API
|
5
5
|
Project-URL: Homepage, https://github.com/isaacus-dev/isaacus-python
|
6
6
|
Project-URL: Repository, https://github.com/isaacus-dev/isaacus-python
|
@@ -5,13 +5,13 @@ isaacus/_compat.py,sha256=VWemUKbj6DDkQ-O4baSpHVLJafotzeXmCQGJugfVTIw,6580
|
|
5
5
|
isaacus/_constants.py,sha256=S14PFzyN9-I31wiV7SmIlL5Ga0MLHxdvegInGdXH7tM,462
|
6
6
|
isaacus/_exceptions.py,sha256=L82uluhizzc94VydHIaJkNxkcG-2DAe74tNhrE2eN2A,3222
|
7
7
|
isaacus/_files.py,sha256=mf4dOgL4b0ryyZlbqLhggD3GVgDf6XxdGFAgce01ugE,3549
|
8
|
-
isaacus/_models.py,sha256=
|
8
|
+
isaacus/_models.py,sha256=Bg-k8-T1kDWURAYXrbDF5FSAyLEy7k90Jrvne-dF4Wc,29070
|
9
9
|
isaacus/_qs.py,sha256=AOkSz4rHtK4YI3ZU_kzea-zpwBUgEY8WniGmTPyEimc,4846
|
10
10
|
isaacus/_resource.py,sha256=iP_oYhz5enCI58mK7hlwLoPMPh4Q5s8-KBv-jGfv2aM,1106
|
11
11
|
isaacus/_response.py,sha256=5v-mAgiP6X9EBGBvTYVdwuDjikiha-dc1dYmadIraCU,28795
|
12
12
|
isaacus/_streaming.py,sha256=tMBfwrfEFWm0v7vWFgjn_lizsoD70lPkYigIBuADaCM,10104
|
13
13
|
isaacus/_types.py,sha256=WCRAb8jikEJoOi8nza8l5NnOTKgZlpmN5fkiHoKoY08,6144
|
14
|
-
isaacus/_version.py,sha256=
|
14
|
+
isaacus/_version.py,sha256=DaIpOsmJwTjZ7vjUdHGrS7xLPy7VQCqCka2YMC41GU4,159
|
15
15
|
isaacus/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
16
16
|
isaacus/_utils/__init__.py,sha256=PNZ_QJuzZEgyYXqkO1HVhGkj5IU9bglVUcw7H-Knjzw,2062
|
17
17
|
isaacus/_utils/_logs.py,sha256=rwa1Yzjbs2JaFn9KQ06rH5c_GSNa--BVwWnWhvvT1tY,777
|
@@ -19,19 +19,19 @@ isaacus/_utils/_proxy.py,sha256=z3zsateHtb0EARTWKk8QZNHfPkqJbqwd1lM993LBwGE,1902
|
|
19
19
|
isaacus/_utils/_reflection.py,sha256=ZmGkIgT_PuwedyNBrrKGbxoWtkpytJNU1uU4QHnmEMU,1364
|
20
20
|
isaacus/_utils/_streams.py,sha256=SMC90diFFecpEg_zgDRVbdR3hSEIgVVij4taD-noMLM,289
|
21
21
|
isaacus/_utils/_sync.py,sha256=TpGLrrhRNWTJtODNE6Fup3_k7zrWm1j2RlirzBwre-0,2862
|
22
|
-
isaacus/_utils/_transform.py,sha256=
|
22
|
+
isaacus/_utils/_transform.py,sha256=asrbdx4Pf5NupzaB8QdEjypW_DgHjjkpswHT0Jum4S0,13987
|
23
23
|
isaacus/_utils/_typing.py,sha256=nTJz0jcrQbEgxwy4TtAkNxuU0QHHlmc6mQtA6vIR8tg,4501
|
24
24
|
isaacus/_utils/_utils.py,sha256=8UmbPOy_AAr2uUjjFui-VZSrVBHRj6bfNEKRp5YZP2A,12004
|
25
25
|
isaacus/lib/.keep,sha256=wuNrz-5SXo3jJaJOJgz4vFHM41YH_g20F5cRQo0vLes,224
|
26
26
|
isaacus/resources/__init__.py,sha256=KjFBnZ_h6ej57WNjlTujjO7TMNC1wVbFNA19ryus-P4,669
|
27
27
|
isaacus/resources/classifications/__init__.py,sha256=tYSnDm-o0CVuTC95VoNJzOqHsb8jTzYmW8hdwW14K60,1158
|
28
28
|
isaacus/resources/classifications/classifications.py,sha256=Td5Gscg1PNJJeobxow_hJq_RicpFe3ibEYN0Gh3Kpsg,4018
|
29
|
-
isaacus/resources/classifications/universal.py,sha256=
|
29
|
+
isaacus/resources/classifications/universal.py,sha256=bA577ocisYb_xS4OA53pM8ZITFprgbL7Wl6ruBqkccE,10656
|
30
30
|
isaacus/types/__init__.py,sha256=OKfJYcKb4NObdiRObqJV_dOyDQ8feXekDUge2o_4pXQ,122
|
31
31
|
isaacus/types/classifications/__init__.py,sha256=GX6WFRzjx9qcuJhdRZjFLJRYMM4d5J8F5N-BUq4ZgP0,296
|
32
|
-
isaacus/types/classifications/universal_classification.py,sha256=
|
32
|
+
isaacus/types/classifications/universal_classification.py,sha256=Dmh03lcEzb5atmmdhNs99kPX9HQ1B_BaNKUojxu2nlA,1654
|
33
33
|
isaacus/types/classifications/universal_create_params.py,sha256=fFhx7SfLPA36lwCYPEzrW2jr7hFlSFyVPqBzNcHXQ2w,2259
|
34
|
-
isaacus-0.
|
35
|
-
isaacus-0.
|
36
|
-
isaacus-0.
|
37
|
-
isaacus-0.
|
34
|
+
isaacus-0.3.0.dist-info/METADATA,sha256=eMAYqLdyJ7c7Y4d8D-if6gAV7yWyjVZ8ry483UhlF0I,14296
|
35
|
+
isaacus-0.3.0.dist-info/WHEEL,sha256=C2FUgwZgiLbznR-k0b_5k3Ai_1aASOXDss3lzCUsUug,87
|
36
|
+
isaacus-0.3.0.dist-info/licenses/LICENSE,sha256=lUen4LYVFVGEVXBsntBAPsQsOWgMkno1e9WfgWkpZ-k,11337
|
37
|
+
isaacus-0.3.0.dist-info/RECORD,,
|
File without changes
|
File without changes
|