Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ZeroDivisionError in context_relevance (#154)
Changed: python3.9/site-packages/ragas/metrics/context_relevance.py", line 162, in _score_batch From: `score = min(len(indices) / len(context_sents), 1)` To: ``` if len(context_sents) == 0: score = 0 else: score = min(len(indices) / len(context_sents), 1)``` fixes: #153 Co-authored-by: devtribble <[email protected]>
- Loading branch information