Guardrails API Documentation
Adherence
Analyses the adherence of a generated answer to a given context, ensuring that the response aligns with the provided information. The detector returns an adherence score indicating how well the answer adheres to the context which will be between 0 and 1. 0 if it adheres and 1 if it does not adhere at all. The detector also provides a list of atomic facts and their adherence scores, along with the response latency.