Skip to content

Commit 8198fb3

Browse files
committed
Report input items with errors.
1 parent 48ad9e1 commit 8198fb3

2 files changed

Lines changed: 13 additions & 2 deletions

File tree

ragability/ragability_eval.py

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,18 @@ def run(config: dict):
304304
dfout_long_metrics = dfout_long[~dfout_long["metric"].str.endswith(":n")]
305305
print(dfout_long_metrics.to_string())
306306

307-
307+
# report the total number and number per LLM of query time errors and checking time errors
308+
# which we encountered and which were ignored. For the errors per LLM output one line per LLM
309+
logger.info(f"Errors in queries (ignored for eval): {n_errors}")
310+
logger.info(f"Errors in queries per llm:")
311+
if n_errors > 0:
312+
for llm, n in n_errors_per_llm.items():
313+
logger.info(f" {llm}: {n}")
314+
logger.info(f"Errors in checks (ignored for eval): {nc_errors}")
315+
logger.info(f"Errors in checks per llm:")
316+
if nc_errors
317+
for llm, n in nc_errors_per_llm.items():
318+
logger.info(f" {llm}: {n}")
308319

309320
def main():
310321
args = get_args()

ragability/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
import importlib.metadata
2-
__version__ = "0.7.0"
2+
__version__ = "0.7.1"

0 commit comments

Comments
 (0)