eval.ragas_bridge¶
chunktuner.eval.ragas_bridge
¶
RAGAS Faithfulness + Answer Relevancy (optional chunktuner[ragas] + compatible stack).
RagasBridge
¶
Thin adapter around RAGAS faithfulness and answer_relevancy (optional extra).
Source code in src/chunktuner/eval/ragas_bridge.py
is_configured
staticmethod
¶
Return True if an API key RAGAS/LiteLLM typically reads is set.
Includes CHUNKTUNER_API_KEY for the same OpenAI-compatible routing as the
rest of chunktuner. RAGAS still does not support local-only (LM Studio / Ollama)
judge flows without extra LangChain wiring — a key here means provider-style
auth, not api_base alone.
Source code in src/chunktuner/eval/ragas_bridge.py
compute
¶
Return averaged metrics, or sentinel Nones if RAGAS cannot run.