In this article
A parseable JSON string can still violate the structured object contract expected by a DeepEval metric.
Identify what the metric expects back
A local model can answer a judge prompt sensibly and still fail the evaluation integration. The custom-LLM guide distinguishes text-returning generation from schema-aware generation that returns a validated model object. Determine which path the selected metric uses. Returning arbitrary prose, a JSON string and a typed schema instance are different contracts, even when all contain what appears to be the same grade to a human reader.
Use the supplied schema as an input
The documented schema-aware interface receives the schema required for the current measurement. Do not hard-code one output shape and assume every metric requests the same fields. Pass the current schema to an appropriate structured-output mechanism or validate the generated data against it before returning. A broadly valid JSON object can still omit required fields, use incompatible types or contain values that cannot be interpreted according to the metric’s specific measurement procedure.
Exercise the actual metric path
The metric reference describes direct measurement and metric execution behavior. A standalone test that asks the local judge for JSON is insufficient if the real metric constructs another prompt or supplies another schema. Run a bounded integration diagnostic with the intended metric and inspect parsing or validation failures separately from the resulting score. Use deliberately malformed outputs to establish that the adapter reports failure rather than inventing a passing default.
Keep synchronous and asynchronous behavior aligned
The evaluation configuration permits different execution modes. Implement the same schema-handling and validation rules in both generator paths. A correct synchronous method does not establish that asynchronous evaluation returns the same object type or uses the same model configuration. Check both paths after changing the client library. Also verify that the model identity reported by the adapter corresponds to the actual served weights instead of a display name copied from example code.
Record integration success separately from calibration
Passing the schema contract means the metric can consume the judge’s output; it does not prove that the judge is accurate or unbiased. Calibrate on reviewed examples after the adapter works. The guides to asynchronous judge dispatch and G-Eval measurement instructions provide related controls. Report adapter compatibility and judgment quality as separate findings, preserving the difference between a locally deployable measurement instrument and one whose verdicts have been validated for the intended application.
Earn rental income from GPUs
Have idle GPUs or looking to fund AI infrastructure? Retrivium finds a rental platform, sets up the server and helps you assess income and costs with a pilot.