from osmosis_ai import osmosis_rubric, evaluate_rubric
@osmosis_rubric
def helpfulness_check(
solution_str: str,
ground_truth: str | None,
extra_info: dict
) -> float:
"""Evaluate response helpfulness using an LLM."""
return evaluate_rubric(
rubric="Rate how helpful this response is on a scale of 0-1.",
solution_str=solution_str,
ground_truth=ground_truth,
model_info={
"provider": "openai",
"model": "gpt-5"
}
)
score = helpfulness_check(
solution_str="Click the reset button in Settings.",
ground_truth=None,
extra_info={}
)
print(f"Helpfulness: {score}")