Context Relevance
Evaluates how relevant the retrieved context is to the question specified.
Context relevance score measures if the retrieved context has enough information to answer the question being asked.
This check is important since a bad context reduces the chances of the model giving a relevant response to the question asked, as well as leads to hallucinations.
You can read our blog to learn more about why context relevance is important.
Columns required:
question
: The question asked by the usercontext
: Information retrieved to answer the question
How to use it?
Sample Response:
The question is asking about “the capital city of France”.
The context though contains some information about France, there is no refeence to the capital city of France i.e. Paris.
Which makes the context irrelevant for the given question, ultimately resulting in a low context relevance score.
How it works?
We evaluate context relevance by determining which of the following three cases apply for the given task data:
- The extracted context can answer the given query completely.
- The extracted context can give some relevant answer for the given query, but can’t answer it completely.
- The extracted context doesn’t contain any information to answer the given query.
Was this page helpful?