You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+10-13Lines changed: 10 additions & 13 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
8
8
## [Unreleased]
9
9
10
+
## [1.1.31] - 2025-09-18
11
+
12
+
### Added
13
+
14
+
- Add `get_explanation_async()` API for TLM and TrustworthyRAG
15
+
10
16
## [1.1.30] - 2025-09-09
11
17
12
18
### Added
@@ -60,8 +66,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
60
66
### Changed
61
67
62
68
- Updated `TLMOptions` to support `disable_trustworthiness` parameter
63
-
- Skips trustworthiness scoring when `disable_trustworthiness` is True, assuming either custom evaluation criteria (TLM) or RAG Evals (TrustworthyRAG) are provided
64
-
69
+
- Skips trustworthiness scoring when `disable_trustworthiness` is True, assuming either custom evaluation criteria (TLM) or RAG Evals (TrustworthyRAG) are provided
65
70
66
71
## [1.1.22] - 2025-07-29
67
72
@@ -87,55 +92,48 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
87
92
88
93
- Add `get_model_name()` method to `TrustworthyRAG`, `TLMChatCompletion`
89
94
90
-
91
95
## [1.1.18] - 2025-07-25
92
96
93
97
### Fixed
94
98
95
99
- Properly pass quality preset in `TLMChatCompletion`
96
100
97
-
98
101
## [1.1.17] - 2025-07-18
99
102
100
103
### Changed
101
104
102
105
- Enabled `TLMChatCompletion.score()`to evaluate structured outputs in `ChatCompletion` objects
103
106
104
-
105
107
## [1.1.16] - 2025-07-15
106
108
107
109
### Changed
108
110
109
111
- Add internal setting to bypass model validation check (for custom/VPC models)
110
112
111
-
112
113
## [1.1.15] - 2025-07-14
113
114
114
115
### Changed
115
116
116
117
- Enabled `TLMChatCompletion.score()`to evaluate tool calls in `ChatCompletion` objects
117
118
118
-
119
119
## [1.1.14] - 2025-07-08
120
120
121
121
### Added
122
122
123
123
- New TLMOption `num_self_reflections`
124
124
- Support for `best` and `high` preset in `TrustworthyRAG`
125
125
126
-
### Changed
126
+
### Changed
127
127
128
128
- Deprecate `use_self_reflection`
129
129
- Documentation updates for new default configurations
130
130
131
-
132
131
## [1.1.13] - 2025-06-26
133
132
134
133
### Added
135
134
136
135
- Added `form_response_string_chat_completions_api` in `chat.py`
137
136
138
-
139
137
## [1.1.12] - 2025-06-23
140
138
141
139
### Fixed
@@ -153,7 +151,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
153
151
- Bug fix in `chat.py` for empty tool list still using tools prompt
154
152
- Bug fix in `chat.py` for handling empty strings args
155
153
156
-
157
154
## [1.1.10] - 2025-06-20
158
155
159
156
### Added
@@ -346,8 +343,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
"""Asynchronously gets explanations for a response with a given trustworthiness score.
445
+
446
+
This method provides detailed explanations from TrustworthyRAG about why a particular response
447
+
received its trustworthiness score.
448
+
449
+
The `tlm_result` object will be mutated to include the explanation in its log,
450
+
adding an "explanation" key to the log dictionary.
451
+
452
+
Args:
453
+
response (str | Sequence[str], optional): The response(s) that were evaluated.
454
+
Required when `tlm_result` contains a `TrustworthyRAGScore` object, as the response text is
455
+
not included there. Should not be provided when `tlm_result` contains a `TrustworthyRAGResponse`
456
+
object, as the response text is already included there.
457
+
query (str | Sequence[str]): The user query (or list of multiple queries) that was used to generate the response.
458
+
context (str | Sequence[str]): The context (or list of multiple contexts) that was retrieved from the RAG Knowledge Base and used to generate the response.
459
+
tlm_result (TrustworthyRAGResponse | Sequence[TrustworthyRAGResponse] | TrustworthyRAGScore | Sequence[TrustworthyRAGScore]): The result object(s) from a previous TrustworthyRAG call (either `generate()` or `score()`).
460
+
prompt (str | Sequence[str], optional): Optional prompt (or list of multiple prompts) representing the actual inputs (combining query, context, and system instructions into one string) to the LLM that generated the response.
461
+
form_prompt (Callable[[str, str], str], optional): Optional function to format the prompt based on query and context. Cannot be provided together with prompt, provide one or the other.
462
+
This function should take query and context as parameters and return a formatted prompt string.
463
+
If not provided, a default prompt formatter will be used.
464
+
To include a system prompt or any other special instructions for your LLM,
465
+
incorporate them directly in your custom `form_prompt()` function definition.
466
+
467
+
Returns:
468
+
str | list[str]: Explanation(s) for why TrustworthyRAG assigned the given trustworthiness score to the response(s).
469
+
If a single prompt/result pair was provided, returns a single explanation string.
470
+
If a list of prompt/results was provided, returns a list of explanation strings matching the input order.
0 commit comments