Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add JUnit 5
ScorerExtension
for AI model evaluation and associated …
…library - Implement `ScorerExtension` to inject and manage Scorer instances in tests. - Support field and parameter injection for Scorer using `@ScorerConfiguration`. - Add support for parameter injection of samples via `@SampleLocation` annotation. - Provide built-in evaluation strategies: - `SemanticSimilarityStrategy` (cosine similarity-based evaluation). - `AiJudgeStrategy` (AI-powered evaluation with customizable prompts). - Add tests for ScorerExtension: - Validate field and parameter injection of Scorer. - Test sample injection from YAML files. - Verify evaluation strategies and reporting. - Document ScorerExtension: - Explain concepts: Scorer, Samples, Evaluation Strategies, Reports. - Usage examples for field/parameter injection and evaluation. - Guide for using built-in strategies and creating custom strategies.
- Loading branch information