Intro
LangWatch offers an extensive library of evaluators to help you evaluate the quality and guarantee the safety of your LLM apps.
While here you can find a reference list, to get the execution code you can use the Experiments via UI on LangWatch platform.
Authentication
To make a call to the Evaluators API, you will need to pass through your LangWatch API key in the header as X-Auth-Token. Your API key can be found on the setup page under settings.
Allowed Methods
POST /api/evaluations/{evaluator}/evaluate - Run an evaluation using a specific evaluator
Evaluators List
Expected Answer Evaluation
For when you have the golden answer and want to measure how correct the LLM gets it
LLM-as-Judge
For when you don’t have a golden answer, but have a set of rules for another LLM to evaluate quality
RAG Quality
For measuring the quality of your RAG, check for hallucinations with faithfulness and precision/recall
Quality Aspects Evaluation
For when you want to check the language, structure, style and other general quality metrics
Safety
Check for PII, prompt injection attempts and toxic content
Other
Miscellaneous evaluators
Running Evaluations
Set up your first experiment using the Experiments via UI:
Using Evaluators
The name Parameter
Important for Analytics: When calling evaluators from code (Real-Time Evaluations), always provide a descriptive name parameter to distinguish between different evaluation checks in Analytics.
When running the same evaluator type multiple times for different purposes, you must use unique name values to:
- Track results separately in the Analytics dashboard
- Filter and group evaluation results by purpose
- Avoid confusion when multiple evaluations use the same evaluator type
Example: Running multiple category checks
If you’re using the LLM Category evaluator to check different aspects of your output:
Without unique names, all results would be grouped under the same auto-generated identifier (e.g., custom_eval_langevalsllm_category), making it impossible to analyze them separately.
All evaluator endpoints follow a similar pattern:
Each evaluator accepts specific input parameters and settings. Refer to the individual evaluator documentation pages for detailed request/response schemas and examples.
Successful evaluations return an array of evaluation results with scores, details, and metadata specific to each evaluator type.