RunBatchSimple 简化版批量评估(顺序执行)
(ctx context.Context, testCases []*BatchTestCase, scorers []Scorer)
| 216 | |
| 217 | // RunBatchSimple 简化版批量评估(顺序执行) |
| 218 | func RunBatchSimple(ctx context.Context, testCases []*BatchTestCase, scorers []Scorer) (*BatchEvalResult, error) { |
| 219 | return RunBatch(ctx, &BatchConfig{ |
| 220 | TestCases: testCases, |
| 221 | Scorers: scorers, |
| 222 | Concurrency: 1, |
| 223 | StopOnError: false, |
| 224 | }) |
| 225 | } |
| 226 | |
| 227 | // RunBatchConcurrent 并发批量评估 |
| 228 | func RunBatchConcurrent(ctx context.Context, testCases []*BatchTestCase, scorers []Scorer, concurrency int) (*BatchEvalResult, error) { |