check() builds the context with chunk.get("text", ""), but when the key is present with value None, .get() returns None (the default applies only to missing keys), and the subsequent " ".join(...) raises TypeError.
Steps to reproduce:
from rag.evaluator.faithfulness_checker import FaithfulnessChecker
FaithfulnessChecker().check('Knows Python.', [{'text': None}])
# observed: TypeError: sequence item 0: expected str instance, NoneType found
Related failing test: test_none_context_chunk_text in tests/unit/test_faithfulness_checker.py.
check()builds the context withchunk.get("text", ""), but when the key is present with valueNone,.get()returnsNone(the default applies only to missing keys), and the subsequent" ".join(...)raisesTypeError.Steps to reproduce:
Related failing test:
test_none_context_chunk_textintests/unit/test_faithfulness_checker.py.