MCPcopy Create free account
hub / github.com/astercloud/aster / RunBatchSimple

Function RunBatchSimple

pkg/evals/batch.go:218–225  ·  view source on GitHub ↗

RunBatchSimple 简化版批量评估(顺序执行)

(ctx context.Context, testCases []*BatchTestCase, scorers []Scorer)

Source from the content-addressed store, hash-verified

216
217// RunBatchSimple 简化版批量评估(顺序执行)
218func 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 并发批量评估
228func RunBatchConcurrent(ctx context.Context, testCases []*BatchTestCase, scorers []Scorer, concurrency int) (*BatchEvalResult, error) {

Callers 2

TestRunBatchSimpleFunction · 0.85

Calls 1

RunBatchFunction · 0.85

Tested by 2

TestRunBatchSimpleFunction · 0.68