ctx_adherence
metric. This metric checks if the output of a model adheres to the given contexts, ensuring that the generated content is accurate and contextually appropriate.
ctx_adherence
Worksctx_adherence
metric in Murnitur Shield allows you to define contexts against which the generated output is evaluated. If the output deviates from these contexts or introduces information not supported by them, it is flagged as a hallucination.
ctx_adherence
metric with Murnitur Shield, you need to provide the contexts and the actual output you want to evaluate. The shield will then determine if the output adheres to the contexts.
Here is an example of how to use the ctx_adherence
metric:
ctx_adherence
metric provides a robust solution for ensuring outputs adhere to given contexts, making it an invaluable tool for developers and data scientists working with language models. By leveraging this feature, you can improve the trustworthiness of your AI applications and deliver more reliable results.