Agents & developers
RAG context relevance
Check whether a retrieved passage helps answer the question—and whether anything is missing.
Jev AI playground
Set up this template
Check whether a passage is relevant—and whether it answers the whole question.
What to provide
The user question and a retrieved passage, including scope or date qualifiers present in the source.
- Supply the user’s exact question and one retrieved passage.
- Define relevance separately from answer completeness.
- Keep useful passages and retrieve more when the question remains unanswered.
Outputs and rules
relevance · choice
Whether the passage contributes specific evidence to the question.
Assess how directly the passage helps answer the supplied question. Related vocabulary alone is not enough.
- direct
- The passage addresses the specific subject and at least one requested fact.
- related
- The passage concerns a nearby topic but supplies no requested fact.
- irrelevant
- The passage does not help with this question.
- insufficient_information
- The question or passage is absent or too incomplete to compare.
sufficient_to_answer · Yes / No
Whether the whole question can be answered from this passage alone.
Does this passage alone supply evidence for every part of the question, including its conditions and scope?
Try different inputs
Normal input
Direct relevance can coexist with insufficient coverage.
Question: How long can I restore a deleted project, and does that rule include files deleted from inside a project? Retrieved passage: Deleted projects stay in the recovery area for 14 days, then are permanently removed. This page covers project deletion only; file recovery is described in a separate article.
Ambiguous input
A conditional statement cannot confirm the user’s eligibility without their plan.
Question: Can I recover a project deleted last week? Retrieved passage: Recovery is available on some workspace plans. Contact the workspace owner to check your plan.
Missing information
No retrieved evidence means the system should seek a source instead of filling the gap.
Question: How long can I restore a deleted project? Retrieved passage: [No passage returned]
Use the result
Keep directly useful passages, retrieve evidence for unanswered parts, and state gaps in the final response. Use Citation check later to assess individual generated claims.
Limits to keep in mind
A relevant passage can still be inaccurate or incomplete. Don’t use it to fill gaps it doesn’t address.