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 questionSample 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.
We evaluate context relevance by determining which of the following three cases apply for the given task data:
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 questionSample 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.
We evaluate context relevance by determining which of the following three cases apply for the given task data: