Define good.
Write down what good and bad look like for your application, as metrics and test cases you can run.
from ragas.metrics.collections import (
Faithfulness, ContextRecall,
)
faithfulness = Faithfulness(llm=llm)
recall = ContextRecall(llm=llm)
score = await faithfulness.ascore(
user_input=question,
response=answer,
retrieved_contexts=contexts,
)