Hi,
I implemented PhoenixEvals as follows:
for index, d in enumerate(self.__ragas_dicts):
if d.get("ground_truth")[0] is not None:
result = evaluate(
dataset=Dataset.from_dict(d),
metrics=self.__metrics)
results.append(result)As part of my main script there are also some other calculations ongoing, e.g., calculating a bert_score.
bert_score_dict = metric.compute(predictions=[pred], references=[ref], lang="de")
Depending on the order I sometimes get the error:
ERROR:asyncio:Task exception was never retrieved
future: <Task finished name='Task-54' coro=<AsyncClient.aclose() done,
RuntimeError: Event loop is closed
Anyone with an idea how to avoid this issue? What's happening?