Evaluations
Custom Evaluator Integration
If you have a custom evaluator built in-house which run on your own code, either during the LLM pipeline or after, you can still capture the evaluation results and connect it back to the trace to visualize it together with the other LangWatch evaluators.
You can capture the evaluation results of your custom evaluator on the current trace or span by using the .add_evaluation
method:
The evaluation name
is required and must be a string. The other fields are optional, but at least one of passed
, score
or label
must be provided.