Skip to content

Commit

Permalink
fix_multimodal_eval_metrics (#281)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ceceliachenen authored Nov 25, 2024
1 parent de22a2d commit 82496ea
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/pai_rag/evaluation/metrics/response/faithfulness.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,8 @@ async def aevaluate_multimodal(
) or response_answer is None:
raise ValueError("contexts and response must be provided")

reference_image_url_list = reference_image_url_list or []
contexts = contexts or []
image_context_str = "\n\n".join(reference_image_url_list)
text_context_str = "\n\n".join(contexts)

Expand Down

0 comments on commit 82496ea

Please sign in to comment.