What problem does it solve?
This Skill streamlines the process of creating and deploying custom evaluation metrics for your AI models within the LangSmith platform, ensuring robust performance measurement.
Core Features & Use Cases
- Custom Metric Creation: Define unique evaluation logic using Python functions.
- LLM as Judge: Implement sophisticated evaluations where an LLM grades model outputs based on defined criteria.
- Code-Based Evaluators: Develop deterministic checks for specific output formats or sequences.
- LangSmith Integration: Seamlessly upload and manage your evaluators for use with LangSmith datasets and experiments.
- Use Case: You've trained a chatbot and want to ensure its responses are not only factually correct but also adhere to a specific professional tone. You can create an LLM-as-Judge evaluator to assess tone and a custom code evaluator for factual accuracy, then upload both to LangSmith.
Quick Start
Use the langsmith-evaluator skill to upload your custom evaluator script 'my_evals.py' with the function 'exact_match' to the dataset 'Skills: Final Response'.