CoherenceMetric
utilizes the evaluateCoherence
function to calculate this metric.
evaluateCoherence
Functionoutput
: The text generated by the model.CoherenceMetric
ClassCoherenceMetric
leverages the evaluateCoherence
function to determine the logical flow and consistency of the paragraph in the generated text.
output
: The text generated by the model.evaluateSteps
method calls evaluateCoherence
and returns a result that includes the coherence score and a reason for the evaluation. The method focuses on the clarity of transitions and the logical structuring of content.