diff --git a/src/ragas/utils.py b/src/ragas/utils.py index 1f961899f..9136fce9a 100644 --- a/src/ragas/utils.py +++ b/src/ragas/utils.py @@ -149,7 +149,7 @@ def emit_warning(*args, **kwargs): def get_or_init( dictionary: t.Dict[str, t.Any], key: str, default: t.Callable[[], t.Any] ) -> t.Any: - _value = dictionary.get("key") + _value = dictionary.get(key) value = _value if _value is not None else default() return value