RunBatchConcurrent 并发批量评估
(ctx context.Context, testCases []*BatchTestCase, scorers []Scorer, concurrency int)
| 226 | |
| 227 | // RunBatchConcurrent 并发批量评估 |
| 228 | func RunBatchConcurrent(ctx context.Context, testCases []*BatchTestCase, scorers []Scorer, concurrency int) (*BatchEvalResult, error) { |
| 229 | return RunBatch(ctx, &BatchConfig{ |
| 230 | TestCases: testCases, |
| 231 | Scorers: scorers, |
| 232 | Concurrency: concurrency, |
| 233 | StopOnError: false, |
| 234 | }) |
| 235 | } |