isaacus 0.1.6__tar.gz → 0.3.0__tar.gz

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.
Files changed (71) hide show
  1. isaacus-0.3.0/.release-please-manifest.json +3 -0
  2. {isaacus-0.1.6 → isaacus-0.3.0}/CHANGELOG.md +25 -0
  3. {isaacus-0.1.6 → isaacus-0.3.0}/PKG-INFO +1 -1
  4. {isaacus-0.1.6 → isaacus-0.3.0}/pyproject.toml +1 -1
  5. {isaacus-0.1.6 → isaacus-0.3.0}/src/isaacus/_models.py +1 -1
  6. {isaacus-0.1.6 → isaacus-0.3.0}/src/isaacus/_utils/_transform.py +1 -1
  7. {isaacus-0.1.6 → isaacus-0.3.0}/src/isaacus/_version.py +1 -1
  8. {isaacus-0.1.6 → isaacus-0.3.0}/src/isaacus/resources/classifications/universal.py +2 -2
  9. {isaacus-0.1.6 → isaacus-0.3.0}/src/isaacus/types/classifications/universal_classification.py +4 -1
  10. isaacus-0.1.6/.release-please-manifest.json +0 -3
  11. {isaacus-0.1.6 → isaacus-0.3.0}/.gitignore +0 -0
  12. {isaacus-0.1.6 → isaacus-0.3.0}/CONTRIBUTING.md +0 -0
  13. {isaacus-0.1.6 → isaacus-0.3.0}/LICENSE +0 -0
  14. {isaacus-0.1.6 → isaacus-0.3.0}/README.md +0 -0
  15. {isaacus-0.1.6 → isaacus-0.3.0}/SECURITY.md +0 -0
  16. {isaacus-0.1.6 → isaacus-0.3.0}/api.md +0 -0
  17. {isaacus-0.1.6 → isaacus-0.3.0}/bin/check-release-environment +0 -0
  18. {isaacus-0.1.6 → isaacus-0.3.0}/bin/publish-pypi +0 -0
  19. {isaacus-0.1.6 → isaacus-0.3.0}/examples/.keep +0 -0
  20. {isaacus-0.1.6 → isaacus-0.3.0}/mypy.ini +0 -0
  21. {isaacus-0.1.6 → isaacus-0.3.0}/noxfile.py +0 -0
  22. {isaacus-0.1.6 → isaacus-0.3.0}/release-please-config.json +0 -0
  23. {isaacus-0.1.6 → isaacus-0.3.0}/requirements-dev.lock +0 -0
  24. {isaacus-0.1.6 → isaacus-0.3.0}/requirements.lock +0 -0
  25. {isaacus-0.1.6 → isaacus-0.3.0}/src/isaacus/__init__.py +0 -0
  26. {isaacus-0.1.6 → isaacus-0.3.0}/src/isaacus/_base_client.py +0 -0
  27. {isaacus-0.1.6 → isaacus-0.3.0}/src/isaacus/_client.py +0 -0
  28. {isaacus-0.1.6 → isaacus-0.3.0}/src/isaacus/_compat.py +0 -0
  29. {isaacus-0.1.6 → isaacus-0.3.0}/src/isaacus/_constants.py +0 -0
  30. {isaacus-0.1.6 → isaacus-0.3.0}/src/isaacus/_exceptions.py +0 -0
  31. {isaacus-0.1.6 → isaacus-0.3.0}/src/isaacus/_files.py +0 -0
  32. {isaacus-0.1.6 → isaacus-0.3.0}/src/isaacus/_qs.py +0 -0
  33. {isaacus-0.1.6 → isaacus-0.3.0}/src/isaacus/_resource.py +0 -0
  34. {isaacus-0.1.6 → isaacus-0.3.0}/src/isaacus/_response.py +0 -0
  35. {isaacus-0.1.6 → isaacus-0.3.0}/src/isaacus/_streaming.py +0 -0
  36. {isaacus-0.1.6 → isaacus-0.3.0}/src/isaacus/_types.py +0 -0
  37. {isaacus-0.1.6 → isaacus-0.3.0}/src/isaacus/_utils/__init__.py +0 -0
  38. {isaacus-0.1.6 → isaacus-0.3.0}/src/isaacus/_utils/_logs.py +0 -0
  39. {isaacus-0.1.6 → isaacus-0.3.0}/src/isaacus/_utils/_proxy.py +0 -0
  40. {isaacus-0.1.6 → isaacus-0.3.0}/src/isaacus/_utils/_reflection.py +0 -0
  41. {isaacus-0.1.6 → isaacus-0.3.0}/src/isaacus/_utils/_streams.py +0 -0
  42. {isaacus-0.1.6 → isaacus-0.3.0}/src/isaacus/_utils/_sync.py +0 -0
  43. {isaacus-0.1.6 → isaacus-0.3.0}/src/isaacus/_utils/_typing.py +0 -0
  44. {isaacus-0.1.6 → isaacus-0.3.0}/src/isaacus/_utils/_utils.py +0 -0
  45. {isaacus-0.1.6 → isaacus-0.3.0}/src/isaacus/lib/.keep +0 -0
  46. {isaacus-0.1.6 → isaacus-0.3.0}/src/isaacus/py.typed +0 -0
  47. {isaacus-0.1.6 → isaacus-0.3.0}/src/isaacus/resources/__init__.py +0 -0
  48. {isaacus-0.1.6 → isaacus-0.3.0}/src/isaacus/resources/classifications/__init__.py +0 -0
  49. {isaacus-0.1.6 → isaacus-0.3.0}/src/isaacus/resources/classifications/classifications.py +0 -0
  50. {isaacus-0.1.6 → isaacus-0.3.0}/src/isaacus/types/__init__.py +0 -0
  51. {isaacus-0.1.6 → isaacus-0.3.0}/src/isaacus/types/classifications/__init__.py +0 -0
  52. {isaacus-0.1.6 → isaacus-0.3.0}/src/isaacus/types/classifications/universal_create_params.py +0 -0
  53. {isaacus-0.1.6 → isaacus-0.3.0}/tests/__init__.py +0 -0
  54. {isaacus-0.1.6 → isaacus-0.3.0}/tests/api_resources/__init__.py +0 -0
  55. {isaacus-0.1.6 → isaacus-0.3.0}/tests/api_resources/classifications/__init__.py +0 -0
  56. {isaacus-0.1.6 → isaacus-0.3.0}/tests/api_resources/classifications/test_universal.py +0 -0
  57. {isaacus-0.1.6 → isaacus-0.3.0}/tests/conftest.py +0 -0
  58. {isaacus-0.1.6 → isaacus-0.3.0}/tests/sample_file.txt +0 -0
  59. {isaacus-0.1.6 → isaacus-0.3.0}/tests/test_client.py +0 -0
  60. {isaacus-0.1.6 → isaacus-0.3.0}/tests/test_deepcopy.py +0 -0
  61. {isaacus-0.1.6 → isaacus-0.3.0}/tests/test_extract_files.py +0 -0
  62. {isaacus-0.1.6 → isaacus-0.3.0}/tests/test_files.py +0 -0
  63. {isaacus-0.1.6 → isaacus-0.3.0}/tests/test_models.py +0 -0
  64. {isaacus-0.1.6 → isaacus-0.3.0}/tests/test_qs.py +0 -0
  65. {isaacus-0.1.6 → isaacus-0.3.0}/tests/test_required_args.py +0 -0
  66. {isaacus-0.1.6 → isaacus-0.3.0}/tests/test_response.py +0 -0
  67. {isaacus-0.1.6 → isaacus-0.3.0}/tests/test_streaming.py +0 -0
  68. {isaacus-0.1.6 → isaacus-0.3.0}/tests/test_transform.py +0 -0
  69. {isaacus-0.1.6 → isaacus-0.3.0}/tests/test_utils/test_proxy.py +0 -0
  70. {isaacus-0.1.6 → isaacus-0.3.0}/tests/test_utils/test_typing.py +0 -0
  71. {isaacus-0.1.6 → isaacus-0.3.0}/tests/utils.py +0 -0
@@ -0,0 +1,3 @@
1
+ {
2
+ ".": "0.3.0"
3
+ }
@@ -1,5 +1,30 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.3.0 (2025-04-01)
4
+
5
+ Full Changelog: [v0.2.0...v0.3.0](https://github.com/isaacus-dev/isaacus-python/compare/v0.2.0...v0.3.0)
6
+
7
+ ### Features
8
+
9
+ * **api:** added reranking endpoint ([#47](https://github.com/isaacus-dev/isaacus-python/issues/47)) ([71ef52b](https://github.com/isaacus-dev/isaacus-python/commit/71ef52b1d23c2ea924f4d178aa1201d980030fe4))
10
+
11
+ ## 0.2.0 (2025-03-30)
12
+
13
+ Full Changelog: [v0.1.6...v0.2.0](https://github.com/isaacus-dev/isaacus-python/compare/v0.1.6...v0.2.0)
14
+
15
+ ### ⚠ BREAKING CHANGES
16
+
17
+ * **api:** started sorting chunks by score and added `index` field ([#45](https://github.com/isaacus-dev/isaacus-python/issues/45))
18
+
19
+ ### Features
20
+
21
+ * **api:** started sorting chunks by score and added `index` field ([#45](https://github.com/isaacus-dev/isaacus-python/issues/45)) ([c9999cd](https://github.com/isaacus-dev/isaacus-python/commit/c9999cd77abfe0101a3d30536261a43404cfef6d))
22
+
23
+
24
+ ### Chores
25
+
26
+ * fix typos ([#43](https://github.com/isaacus-dev/isaacus-python/issues/43)) ([0667577](https://github.com/isaacus-dev/isaacus-python/commit/066757702f47e403a06cf057f20faa5fa955b135))
27
+
3
28
  ## 0.1.6 (2025-03-18)
4
29
 
5
30
  Full Changelog: [v0.1.5...v0.1.6](https://github.com/isaacus-dev/isaacus-python/compare/v0.1.5...v0.1.6)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: isaacus
3
- Version: 0.1.6
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
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "isaacus"
3
- version = "0.1.6"
3
+ version = "0.3.0"
4
4
  description = "The official Python library for the isaacus API"
5
5
  dynamic = ["readme"]
6
6
  license = "Apache-2.0"
@@ -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 subclasssing here causes weirdness for type checkers,
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
@@ -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 `PropertInfo` metadata.
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:
@@ -1,4 +1,4 @@
1
1
  # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
 
3
3
  __title__ = "isaacus"
4
- __version__ = "0.1.6" # x-release-please-version
4
+ __version__ = "0.3.0" # x-release-please-version
@@ -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 using an Isaacus universal
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 using an Isaacus universal
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,3 +0,0 @@
1
- {
2
- ".": "0.1.6"
3
- }
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes