From 066757702f47e403a06cf057f20faa5fa955b135 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 27 Mar 2025 03:02:45 +0000 Subject: [PATCH 1/5] chore: fix typos (#43) --- src/isaacus/_models.py | 2 +- src/isaacus/_utils/_transform.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/isaacus/_models.py b/src/isaacus/_models.py index b51a1bf..3493571 100644 --- a/src/isaacus/_models.py +++ b/src/isaacus/_models.py @@ -681,7 +681,7 @@ def set_pydantic_config(typ: Any, config: pydantic.ConfigDict) -> None: setattr(typ, "__pydantic_config__", config) # noqa: B010 -# our use of subclasssing here causes weirdness for type checkers, +# our use of subclassing here causes weirdness for type checkers, # so we just pretend that we don't subclass if TYPE_CHECKING: GenericModel = BaseModel diff --git a/src/isaacus/_utils/_transform.py b/src/isaacus/_utils/_transform.py index 18afd9d..7ac2e17 100644 --- a/src/isaacus/_utils/_transform.py +++ b/src/isaacus/_utils/_transform.py @@ -126,7 +126,7 @@ def _get_annotated_type(type_: type) -> type | None: def _maybe_transform_key(key: str, type_: type) -> str: """Transform the given `data` based on the annotations provided in `type_`. - Note: this function only looks at `Annotated` types that contain `PropertInfo` metadata. + Note: this function only looks at `Annotated` types that contain `PropertyInfo` metadata. """ annotated_type = _get_annotated_type(type_) if annotated_type is None: From 8384fd45cea69528435e0c5b671e281ad55a49bb Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 27 Mar 2025 03:03:37 +0000 Subject: [PATCH 2/5] codegen metadata --- .stats.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.stats.yml b/.stats.yml index e2eefb1..fcc79a7 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,2 +1,4 @@ configured_endpoints: 1 openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/isaacus%2Fisaacus-ec269bff43481aeb5c72d3074aa31815ef915d435e78bc62b0290437a7b2992a.yml +openapi_spec_hash: 8471a8ba4cb4ccf1a7724d65b57eb029 +config_hash: 8a781867f31df68b9c6fba04c165c647 From c9999cd77abfe0101a3d30536261a43404cfef6d Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Sun, 30 Mar 2025 06:33:44 +0000 Subject: [PATCH 3/5] feat(api)!: started sorting chunks by score and added `index` field (#45) --- .stats.yml | 4 ++-- .../types/classifications/universal_classification.py | 5 ++++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/.stats.yml b/.stats.yml index fcc79a7..75de4d0 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/isaacus%2Fisaacus-ec269bff43481aeb5c72d3074aa31815ef915d435e78bc62b0290437a7b2992a.yml -openapi_spec_hash: 8471a8ba4cb4ccf1a7724d65b57eb029 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/isaacus%2Fisaacus-435aa8d67bf720d46273e05839fecdc34ae2968b1bd3c35c33a42f144f9e5395.yml +openapi_spec_hash: 55f30f53ce7ef4f7481444a635e9ab8a config_hash: 8a781867f31df68b9c6fba04c165c647 diff --git a/src/isaacus/types/classifications/universal_classification.py b/src/isaacus/types/classifications/universal_classification.py index fd5c58e..0a7a8ef 100644 --- a/src/isaacus/types/classifications/universal_classification.py +++ b/src/isaacus/types/classifications/universal_classification.py @@ -11,6 +11,9 @@ class Chunk(BaseModel): end: int """The end index of the chunk in the original text.""" + index: int + """The index of the chunk in the list of chunks.""" + score: float """ The model's score of the likelihood that the query expressed about the chunk is @@ -37,7 +40,7 @@ class UniversalClassification(BaseModel): """ The text as broken into chunks by [semchunk](https://github.com/isaacus-dev/semchunk), each chunk with its own - confidence score. + confidence score, ordered from highest to lowest score. If no chunking occurred, this will be `null`. """ From 9c072877b4116eddf27f6fa87365010cb52effbb Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Sun, 30 Mar 2025 06:35:47 +0000 Subject: [PATCH 4/5] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index 75de4d0..2ce4e99 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/isaacus%2Fisaacus-435aa8d67bf720d46273e05839fecdc34ae2968b1bd3c35c33a42f144f9e5395.yml -openapi_spec_hash: 55f30f53ce7ef4f7481444a635e9ab8a +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/isaacus%2Fisaacus-19689acec6acc1fe55f5b1f80b6029b2115db76aceb76da98a36e22115990af2.yml +openapi_spec_hash: d647b0df96ea892932515aa18f690e2a config_hash: 8a781867f31df68b9c6fba04c165c647 From e2e49ba8fc12afb8b31ab135687ec0c7f9db0180 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Sun, 30 Mar 2025 06:36:07 +0000 Subject: [PATCH 5/5] release: 0.2.0 --- .release-please-manifest.json | 2 +- CHANGELOG.md | 17 +++++++++++++++++ pyproject.toml | 2 +- src/isaacus/_version.py | 2 +- 4 files changed, 20 insertions(+), 3 deletions(-) diff --git a/.release-please-manifest.json b/.release-please-manifest.json index ce44794..10f3091 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "0.1.6" + ".": "0.2.0" } \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index 5e81b15..55b952f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,22 @@ # Changelog +## 0.2.0 (2025-03-30) + +Full Changelog: [v0.1.6...v0.2.0](https://github.com/isaacus-dev/isaacus-python/compare/v0.1.6...v0.2.0) + +### ⚠ BREAKING CHANGES + +* **api:** started sorting chunks by score and added `index` field ([#45](https://github.com/isaacus-dev/isaacus-python/issues/45)) + +### Features + +* **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)) + + +### Chores + +* fix typos ([#43](https://github.com/isaacus-dev/isaacus-python/issues/43)) ([0667577](https://github.com/isaacus-dev/isaacus-python/commit/066757702f47e403a06cf057f20faa5fa955b135)) + ## 0.1.6 (2025-03-18) Full Changelog: [v0.1.5...v0.1.6](https://github.com/isaacus-dev/isaacus-python/compare/v0.1.5...v0.1.6) diff --git a/pyproject.toml b/pyproject.toml index 3a9d924..b64e5db 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "isaacus" -version = "0.1.6" +version = "0.2.0" description = "The official Python library for the isaacus API" dynamic = ["readme"] license = "Apache-2.0" diff --git a/src/isaacus/_version.py b/src/isaacus/_version.py index f6d030c..d48a923 100644 --- a/src/isaacus/_version.py +++ b/src/isaacus/_version.py @@ -1,4 +1,4 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. __title__ = "isaacus" -__version__ = "0.1.6" # x-release-please-version +__version__ = "0.2.0" # x-release-please-version