How To
Verify If a Query Has Enough Context Using Context Sufficiency Eval
Ensuring that a query is supported by sufficient context is critical for accurate and reliable responses. Inadequate context can lead to incomplete, ambiguous, or incorrect answers, impacting decision-making and information retrieval.
This eval determines whether the provided content contains enough information to accurately address a given query.
Click here to read the eval definition of Context Sufficiency
a. Using Interface
Inputs Required:
- Query: The question or request requiring an answer.
- Context: The background information used to generate the response.
Configuration Parameters:
- Model: LLM model to be used here to analyze context sufficiency.
Output
- 1: The context contains sufficient information to fully answer the query.
- 0: The context lacks key details, requiring additional information or refinement.