Skip to content

Commit 27081bb

Browse files
authored
TrustworthyRAG set retries (#45)
* TrustworthyRAG set retries
1 parent ba2b171 commit 27081bb

File tree

3 files changed

+12
-2
lines changed

3 files changed

+12
-2
lines changed

CHANGELOG.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased]
99

10+
## [1.0.16] - 2025-04-02
11+
12+
### Added
13+
14+
- TrustworthyRAG set retries
15+
1016
## [1.0.15] - 2025-04-01
1117

1218
### Added
@@ -87,7 +93,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
8793

8894
- Release of the Cleanlab TLM Python client.
8995

90-
[Unreleased]: https://github.com/cleanlab/cleanlab-tlm/compare/v1.0.15...HEAD
96+
[Unreleased]: https://github.com/cleanlab/cleanlab-tlm/compare/v1.0.16...HEAD
97+
[1.0.16]: https://github.com/cleanlab/cleanlab-tlm/compare/v1.0.15...v1.0.16
9198
[1.0.15]: https://github.com/cleanlab/cleanlab-tlm/compare/v1.0.14...v1.0.15
9299
[1.0.14]: https://github.com/cleanlab/cleanlab-tlm/compare/v1.0.13...v1.0.14
93100
[1.0.13]: https://github.com/cleanlab/cleanlab-tlm/compare/v1.0.12...v1.0.13

src/cleanlab_tlm/__about__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
# SPDX-License-Identifier: MIT
2-
__version__ = "1.0.15"
2+
__version__ = "1.0.16"

src/cleanlab_tlm/utils/rag.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@
3636
_TLM_EVAL_NAME_KEY,
3737
_TLM_EVAL_QUERY_IDENTIFIER_KEY,
3838
_TLM_EVAL_RESPONSE_IDENTIFIER_KEY,
39+
_TLM_MAX_RETRIES,
3940
_VALID_TLM_QUALITY_PRESETS_RAG,
4041
)
4142
from cleanlab_tlm.internal.exception_handling import handle_tlm_exceptions
@@ -424,6 +425,7 @@ async def _generate_async(
424425
options=self._options,
425426
rate_handler=self._rate_handler,
426427
batch_index=batch_index,
428+
retries=_TLM_MAX_RETRIES,
427429
),
428430
timeout=timeout,
429431
),
@@ -473,6 +475,7 @@ async def _score_async(
473475
rate_handler=self._rate_handler,
474476
evals=self._evals,
475477
batch_index=batch_index,
478+
retries=_TLM_MAX_RETRIES,
476479
),
477480
timeout=timeout,
478481
),

0 commit comments

Comments
 (0)