in src/fmeval/reporting/eval_output_cells.py [0:0]
def truncate_samples(samples: List[Any]) -> List[Any]:
"""
:param samples: List of items representing one row in the table.
:return: Table row with strings longer than MAX_CHAR truncated.
"""
truncated_samples = [
shorten(sample, MAX_CHAR)
if isinstance(sample, str) and len(sample) > MAX_CHAR
else np.round(sample, decimals=6)
if isinstance(sample, float)
else sample
for sample in samples
]
return truncated_samples