Relevance
Does the retrieved passage address the user's query, or is it unrelated to the information needed?
RAGOne is a focused evaluation model for judging whether retrieved context is relevant, sufficient, evidentially strong, or in conflict with a claim.
Four evaluation tasks. One consistent interface. Designed for research and experimentation.
RAGOne treats retrieved-context evaluation as distinct decisions. Each task has its own label set and can be called directly through the Python package.
Does the retrieved passage address the user's query, or is it unrelated to the information needed?
Can the query be answered using the supplied context, without filling gaps from outside knowledge?
How directly and strongly does the context support the proposition or answer being assessed?
Does a claim conflict with what the supplied context explicitly states?
Choose a task to inspect its query, retrieved context, predicted label, and full JSON score breakdown across every candidate label. RAGOne helps assess whether retrieved evidence supports a generated answer before that answer is accepted.
Can the query be answered from the retrieved context?
What is the refund period?
Customers can request a refund within 30 days.
The context directly states the refund period.
{
"task": "answerability",
"prediction": "yes",
"scores": [
{"label": "yes", "score": 0.893767},
{"label": "no", "score": 0.106233}
]
}The answerability scores shown are from one recorded model run. Score values for the other task examples are illustrative JSON examples, not verified inference results. Run the package to obtain scores for your own inputs. Scores rank candidate labels and should not be treated as calibrated probabilities.
The figures below summarize the experiments reported for this model. Small evaluation sets are useful for initial checks, but do not establish generalization to every dataset or production setting.
The 40-example evaluation contained 10 examples per task: answerability 10/10, evidence quality 9/10, contradiction 10/10, and relevance 8/10. Latency is environment-dependent; it is not a universal speed guarantee.
Use RAGOne to inspect retrieved material before a downstream answer is accepted, or as one component in a larger evaluation experiment.
Pass the user's query and a retrieved context passage to the model. Keep the source text available for audit.
Select relevance, answerability, evidence quality, or contradiction and provide that task's valid options.
Review the predicted label and returned scores. Combine the result with your pipeline's own thresholds and validation rules.
Install the published package, load the model, and evaluate a query against its retrieved context.
from ragone import RAGOne
model = RAGOne.from_pretrained("Hariharan05/ragone")
result = model.predict(
query="What is the refund period?",
context="Customers can request a refund within 30 days.",
task="answerability",
options=["yes", "no"],
)
print(result)For reproducible latency measurements, warm up the model and measure multiple calls on the target hardware. Record the device, batch size, input length, and timing method alongside results.