Skip to content

Commit dd1a29d

Browse files
docs(api): reworded descriptions
1 parent 17d2f76 commit dd1a29d

File tree

10 files changed

+57
-51
lines changed

10 files changed

+57
-51
lines changed

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 5
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/isaacus%2Fisaacus-0768ad934de95835e9f317b06cbe79b8958d9acc9b4b06f3c7743a2b9fcc0f44.yml
3-
openapi_spec_hash: e00200876d755684db6ee666119bc719
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/isaacus%2Fisaacus-a307f2351504c7d4d18a52c3cc7a120f2b1347bb5cfd8f89f8a95591bcc22eac.yml
3+
openapi_spec_hash: 5057bbce3b8a5c9561253624702d893d
44
config_hash: 9040e7359f066240ad536041fb2c5185

src/isaacus/_client.py

Lines changed: 18 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ def __init__(
9898

9999
@cached_property
100100
def embeddings(self) -> EmbeddingsResource:
101-
"""Embed legal texts with Isaacus legal AI embedders."""
101+
"""Vectorize content with an Isaacus embedding model."""
102102
from .resources.embeddings import EmbeddingsResource
103103

104104
return EmbeddingsResource(self)
@@ -112,7 +112,7 @@ def classifications(self) -> ClassificationsResource:
112112
@cached_property
113113
def rerankings(self) -> RerankingsResource:
114114
"""
115-
Rerank legal documents by their relevance to queries with Isaacus legal AI rerankers.
115+
Score and rank documents by their relevance to queries with an Isaacus reranker.
116116
"""
117117
from .resources.rerankings import RerankingsResource
118118

@@ -126,6 +126,7 @@ def extractions(self) -> ExtractionsResource:
126126

127127
@cached_property
128128
def enrichments(self) -> EnrichmentsResource:
129+
"""Enrich documents with an Isaacus enrichment model."""
129130
from .resources.enrichments import EnrichmentsResource
130131

131132
return EnrichmentsResource(self)
@@ -300,7 +301,7 @@ def __init__(
300301

301302
@cached_property
302303
def embeddings(self) -> AsyncEmbeddingsResource:
303-
"""Embed legal texts with Isaacus legal AI embedders."""
304+
"""Vectorize content with an Isaacus embedding model."""
304305
from .resources.embeddings import AsyncEmbeddingsResource
305306

306307
return AsyncEmbeddingsResource(self)
@@ -314,7 +315,7 @@ def classifications(self) -> AsyncClassificationsResource:
314315
@cached_property
315316
def rerankings(self) -> AsyncRerankingsResource:
316317
"""
317-
Rerank legal documents by their relevance to queries with Isaacus legal AI rerankers.
318+
Score and rank documents by their relevance to queries with an Isaacus reranker.
318319
"""
319320
from .resources.rerankings import AsyncRerankingsResource
320321

@@ -328,6 +329,7 @@ def extractions(self) -> AsyncExtractionsResource:
328329

329330
@cached_property
330331
def enrichments(self) -> AsyncEnrichmentsResource:
332+
"""Enrich documents with an Isaacus enrichment model."""
331333
from .resources.enrichments import AsyncEnrichmentsResource
332334

333335
return AsyncEnrichmentsResource(self)
@@ -453,7 +455,7 @@ def __init__(self, client: Isaacus) -> None:
453455

454456
@cached_property
455457
def embeddings(self) -> embeddings.EmbeddingsResourceWithRawResponse:
456-
"""Embed legal texts with Isaacus legal AI embedders."""
458+
"""Vectorize content with an Isaacus embedding model."""
457459
from .resources.embeddings import EmbeddingsResourceWithRawResponse
458460

459461
return EmbeddingsResourceWithRawResponse(self._client.embeddings)
@@ -467,7 +469,7 @@ def classifications(self) -> classifications.ClassificationsResourceWithRawRespo
467469
@cached_property
468470
def rerankings(self) -> rerankings.RerankingsResourceWithRawResponse:
469471
"""
470-
Rerank legal documents by their relevance to queries with Isaacus legal AI rerankers.
472+
Score and rank documents by their relevance to queries with an Isaacus reranker.
471473
"""
472474
from .resources.rerankings import RerankingsResourceWithRawResponse
473475

@@ -481,6 +483,7 @@ def extractions(self) -> extractions.ExtractionsResourceWithRawResponse:
481483

482484
@cached_property
483485
def enrichments(self) -> enrichments.EnrichmentsResourceWithRawResponse:
486+
"""Enrich documents with an Isaacus enrichment model."""
484487
from .resources.enrichments import EnrichmentsResourceWithRawResponse
485488

486489
return EnrichmentsResourceWithRawResponse(self._client.enrichments)
@@ -494,7 +497,7 @@ def __init__(self, client: AsyncIsaacus) -> None:
494497

495498
@cached_property
496499
def embeddings(self) -> embeddings.AsyncEmbeddingsResourceWithRawResponse:
497-
"""Embed legal texts with Isaacus legal AI embedders."""
500+
"""Vectorize content with an Isaacus embedding model."""
498501
from .resources.embeddings import AsyncEmbeddingsResourceWithRawResponse
499502

500503
return AsyncEmbeddingsResourceWithRawResponse(self._client.embeddings)
@@ -508,7 +511,7 @@ def classifications(self) -> classifications.AsyncClassificationsResourceWithRaw
508511
@cached_property
509512
def rerankings(self) -> rerankings.AsyncRerankingsResourceWithRawResponse:
510513
"""
511-
Rerank legal documents by their relevance to queries with Isaacus legal AI rerankers.
514+
Score and rank documents by their relevance to queries with an Isaacus reranker.
512515
"""
513516
from .resources.rerankings import AsyncRerankingsResourceWithRawResponse
514517

@@ -522,6 +525,7 @@ def extractions(self) -> extractions.AsyncExtractionsResourceWithRawResponse:
522525

523526
@cached_property
524527
def enrichments(self) -> enrichments.AsyncEnrichmentsResourceWithRawResponse:
528+
"""Enrich documents with an Isaacus enrichment model."""
525529
from .resources.enrichments import AsyncEnrichmentsResourceWithRawResponse
526530

527531
return AsyncEnrichmentsResourceWithRawResponse(self._client.enrichments)
@@ -535,7 +539,7 @@ def __init__(self, client: Isaacus) -> None:
535539

536540
@cached_property
537541
def embeddings(self) -> embeddings.EmbeddingsResourceWithStreamingResponse:
538-
"""Embed legal texts with Isaacus legal AI embedders."""
542+
"""Vectorize content with an Isaacus embedding model."""
539543
from .resources.embeddings import EmbeddingsResourceWithStreamingResponse
540544

541545
return EmbeddingsResourceWithStreamingResponse(self._client.embeddings)
@@ -549,7 +553,7 @@ def classifications(self) -> classifications.ClassificationsResourceWithStreamin
549553
@cached_property
550554
def rerankings(self) -> rerankings.RerankingsResourceWithStreamingResponse:
551555
"""
552-
Rerank legal documents by their relevance to queries with Isaacus legal AI rerankers.
556+
Score and rank documents by their relevance to queries with an Isaacus reranker.
553557
"""
554558
from .resources.rerankings import RerankingsResourceWithStreamingResponse
555559

@@ -563,6 +567,7 @@ def extractions(self) -> extractions.ExtractionsResourceWithStreamingResponse:
563567

564568
@cached_property
565569
def enrichments(self) -> enrichments.EnrichmentsResourceWithStreamingResponse:
570+
"""Enrich documents with an Isaacus enrichment model."""
566571
from .resources.enrichments import EnrichmentsResourceWithStreamingResponse
567572

568573
return EnrichmentsResourceWithStreamingResponse(self._client.enrichments)
@@ -576,7 +581,7 @@ def __init__(self, client: AsyncIsaacus) -> None:
576581

577582
@cached_property
578583
def embeddings(self) -> embeddings.AsyncEmbeddingsResourceWithStreamingResponse:
579-
"""Embed legal texts with Isaacus legal AI embedders."""
584+
"""Vectorize content with an Isaacus embedding model."""
580585
from .resources.embeddings import AsyncEmbeddingsResourceWithStreamingResponse
581586

582587
return AsyncEmbeddingsResourceWithStreamingResponse(self._client.embeddings)
@@ -590,7 +595,7 @@ def classifications(self) -> classifications.AsyncClassificationsResourceWithStr
590595
@cached_property
591596
def rerankings(self) -> rerankings.AsyncRerankingsResourceWithStreamingResponse:
592597
"""
593-
Rerank legal documents by their relevance to queries with Isaacus legal AI rerankers.
598+
Score and rank documents by their relevance to queries with an Isaacus reranker.
594599
"""
595600
from .resources.rerankings import AsyncRerankingsResourceWithStreamingResponse
596601

@@ -604,6 +609,7 @@ def extractions(self) -> extractions.AsyncExtractionsResourceWithStreamingRespon
604609

605610
@cached_property
606611
def enrichments(self) -> enrichments.AsyncEnrichmentsResourceWithStreamingResponse:
612+
"""Enrich documents with an Isaacus enrichment model."""
607613
from .resources.enrichments import AsyncEnrichmentsResourceWithStreamingResponse
608614

609615
return AsyncEnrichmentsResourceWithStreamingResponse(self._client.enrichments)

src/isaacus/resources/classifications/classifications.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
class ClassificationsResource(SyncAPIResource):
2020
@cached_property
2121
def universal(self) -> UniversalResource:
22-
"""Classify legal documents with Isaacus legal AI classifiers."""
22+
"""Classify documents with an Isaacus classification model."""
2323
return UniversalResource(self._client)
2424

2525
@cached_property
@@ -45,7 +45,7 @@ def with_streaming_response(self) -> ClassificationsResourceWithStreamingRespons
4545
class AsyncClassificationsResource(AsyncAPIResource):
4646
@cached_property
4747
def universal(self) -> AsyncUniversalResource:
48-
"""Classify legal documents with Isaacus legal AI classifiers."""
48+
"""Classify documents with an Isaacus classification model."""
4949
return AsyncUniversalResource(self._client)
5050

5151
@cached_property
@@ -74,7 +74,7 @@ def __init__(self, classifications: ClassificationsResource) -> None:
7474

7575
@cached_property
7676
def universal(self) -> UniversalResourceWithRawResponse:
77-
"""Classify legal documents with Isaacus legal AI classifiers."""
77+
"""Classify documents with an Isaacus classification model."""
7878
return UniversalResourceWithRawResponse(self._classifications.universal)
7979

8080

@@ -84,7 +84,7 @@ def __init__(self, classifications: AsyncClassificationsResource) -> None:
8484

8585
@cached_property
8686
def universal(self) -> AsyncUniversalResourceWithRawResponse:
87-
"""Classify legal documents with Isaacus legal AI classifiers."""
87+
"""Classify documents with an Isaacus classification model."""
8888
return AsyncUniversalResourceWithRawResponse(self._classifications.universal)
8989

9090

@@ -94,7 +94,7 @@ def __init__(self, classifications: ClassificationsResource) -> None:
9494

9595
@cached_property
9696
def universal(self) -> UniversalResourceWithStreamingResponse:
97-
"""Classify legal documents with Isaacus legal AI classifiers."""
97+
"""Classify documents with an Isaacus classification model."""
9898
return UniversalResourceWithStreamingResponse(self._classifications.universal)
9999

100100

@@ -104,5 +104,5 @@ def __init__(self, classifications: AsyncClassificationsResource) -> None:
104104

105105
@cached_property
106106
def universal(self) -> AsyncUniversalResourceWithStreamingResponse:
107-
"""Classify legal documents with Isaacus legal AI classifiers."""
107+
"""Classify documents with an Isaacus classification model."""
108108
return AsyncUniversalResourceWithStreamingResponse(self._classifications.universal)

src/isaacus/resources/classifications/universal/universal.py

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525

2626

2727
class UniversalResource(SyncAPIResource):
28-
"""Classify legal documents with Isaacus legal AI classifiers."""
28+
"""Classify documents with an Isaacus classification model."""
2929

3030
@cached_property
3131
def with_raw_response(self) -> UniversalResourceWithRawResponse:
@@ -63,8 +63,7 @@ def create(
6363
timeout: float | httpx.Timeout | None | NotGiven = not_given,
6464
) -> UniversalClassificationResponse:
6565
"""
66-
Classify the relevance of legal documents to a query with an Isaacus universal
67-
legal AI classifier.
66+
Classify documents with an Isaacus universal classification model.
6867
6968
Args:
7069
model: The ID of the [model](https://docs.isaacus.com/models#universal-classification)
@@ -128,7 +127,7 @@ def create(
128127

129128

130129
class AsyncUniversalResource(AsyncAPIResource):
131-
"""Classify legal documents with Isaacus legal AI classifiers."""
130+
"""Classify documents with an Isaacus classification model."""
132131

133132
@cached_property
134133
def with_raw_response(self) -> AsyncUniversalResourceWithRawResponse:
@@ -166,8 +165,7 @@ async def create(
166165
timeout: float | httpx.Timeout | None | NotGiven = not_given,
167166
) -> UniversalClassificationResponse:
168167
"""
169-
Classify the relevance of legal documents to a query with an Isaacus universal
170-
legal AI classifier.
168+
Classify documents with an Isaacus universal classification model.
171169
172170
Args:
173171
model: The ID of the [model](https://docs.isaacus.com/models#universal-classification)

src/isaacus/resources/embeddings.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525

2626

2727
class EmbeddingsResource(SyncAPIResource):
28-
"""Embed legal texts with Isaacus legal AI embedders."""
28+
"""Vectorize content with an Isaacus embedding model."""
2929

3030
@cached_property
3131
def with_raw_response(self) -> EmbeddingsResourceWithRawResponse:
@@ -62,7 +62,7 @@ def create(
6262
timeout: float | httpx.Timeout | None | NotGiven = not_given,
6363
) -> EmbeddingResponse:
6464
"""
65-
Embed legal texts with an Isaacus legal AI embedder.
65+
Vectorize content with an Isaacus embedding model.
6666
6767
Args:
6868
model: The ID of the [model](https://docs.isaacus.com/models#embedding) to use for
@@ -120,7 +120,7 @@ def create(
120120

121121

122122
class AsyncEmbeddingsResource(AsyncAPIResource):
123-
"""Embed legal texts with Isaacus legal AI embedders."""
123+
"""Vectorize content with an Isaacus embedding model."""
124124

125125
@cached_property
126126
def with_raw_response(self) -> AsyncEmbeddingsResourceWithRawResponse:
@@ -157,7 +157,7 @@ async def create(
157157
timeout: float | httpx.Timeout | None | NotGiven = not_given,
158158
) -> EmbeddingResponse:
159159
"""
160-
Embed legal texts with an Isaacus legal AI embedder.
160+
Vectorize content with an Isaacus embedding model.
161161
162162
Args:
163163
model: The ID of the [model](https://docs.isaacus.com/models#embedding) to use for

src/isaacus/resources/enrichments.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@
2525

2626

2727
class EnrichmentsResource(SyncAPIResource):
28+
"""Enrich documents with an Isaacus enrichment model."""
29+
2830
@cached_property
2931
def with_raw_response(self) -> EnrichmentsResourceWithRawResponse:
3032
"""
@@ -58,7 +60,7 @@ def create(
5860
timeout: float | httpx.Timeout | None | NotGiven = not_given,
5961
) -> EnrichmentResponse:
6062
"""
61-
Enrich documents with an Isaacus enricher model.
63+
Enrich documents with an Isaacus enrichment model.
6264
6365
Args:
6466
model: The ID of the [model](https://docs.isaacus.com/models#enrichment) to use for
@@ -113,6 +115,8 @@ def create(
113115

114116

115117
class AsyncEnrichmentsResource(AsyncAPIResource):
118+
"""Enrich documents with an Isaacus enrichment model."""
119+
116120
@cached_property
117121
def with_raw_response(self) -> AsyncEnrichmentsResourceWithRawResponse:
118122
"""
@@ -146,7 +150,7 @@ async def create(
146150
timeout: float | httpx.Timeout | None | NotGiven = not_given,
147151
) -> EnrichmentResponse:
148152
"""
149-
Enrich documents with an Isaacus enricher model.
153+
Enrich documents with an Isaacus enrichment model.
150154
151155
Args:
152156
model: The ID of the [model](https://docs.isaacus.com/models#enrichment) to use for

src/isaacus/resources/extractions/extractions.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
class ExtractionsResource(SyncAPIResource):
2020
@cached_property
2121
def qa(self) -> QAResource:
22-
"""Extract information from legal documents with Isaacus legal AI extractors."""
22+
"""Extract information from documents with an Isaacus extraction model."""
2323
return QAResource(self._client)
2424

2525
@cached_property
@@ -45,7 +45,7 @@ def with_streaming_response(self) -> ExtractionsResourceWithStreamingResponse:
4545
class AsyncExtractionsResource(AsyncAPIResource):
4646
@cached_property
4747
def qa(self) -> AsyncQAResource:
48-
"""Extract information from legal documents with Isaacus legal AI extractors."""
48+
"""Extract information from documents with an Isaacus extraction model."""
4949
return AsyncQAResource(self._client)
5050

5151
@cached_property
@@ -74,7 +74,7 @@ def __init__(self, extractions: ExtractionsResource) -> None:
7474

7575
@cached_property
7676
def qa(self) -> QAResourceWithRawResponse:
77-
"""Extract information from legal documents with Isaacus legal AI extractors."""
77+
"""Extract information from documents with an Isaacus extraction model."""
7878
return QAResourceWithRawResponse(self._extractions.qa)
7979

8080

@@ -84,7 +84,7 @@ def __init__(self, extractions: AsyncExtractionsResource) -> None:
8484

8585
@cached_property
8686
def qa(self) -> AsyncQAResourceWithRawResponse:
87-
"""Extract information from legal documents with Isaacus legal AI extractors."""
87+
"""Extract information from documents with an Isaacus extraction model."""
8888
return AsyncQAResourceWithRawResponse(self._extractions.qa)
8989

9090

@@ -94,7 +94,7 @@ def __init__(self, extractions: ExtractionsResource) -> None:
9494

9595
@cached_property
9696
def qa(self) -> QAResourceWithStreamingResponse:
97-
"""Extract information from legal documents with Isaacus legal AI extractors."""
97+
"""Extract information from documents with an Isaacus extraction model."""
9898
return QAResourceWithStreamingResponse(self._extractions.qa)
9999

100100

@@ -104,5 +104,5 @@ def __init__(self, extractions: AsyncExtractionsResource) -> None:
104104

105105
@cached_property
106106
def qa(self) -> AsyncQAResourceWithStreamingResponse:
107-
"""Extract information from legal documents with Isaacus legal AI extractors."""
107+
"""Extract information from documents with an Isaacus extraction model."""
108108
return AsyncQAResourceWithStreamingResponse(self._extractions.qa)

0 commit comments

Comments
 (0)