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

Method Score

pkg/evals/evals.go:32–32  ·  view source on GitHub ↗
(ctx context.Context, input *TextEvalInput)

Source from the content-addressed store, hash-verified

30// 设计参考: @mastra/evals, 但本实现仅提供本地启发式 scorer,不依赖 LLM。
31type Scorer interface {
32 Score(ctx context.Context, input *TextEvalInput) (*ScoreResult, error)
33}
34
35// =========================

Callers 7

TestFaithfulnessScorerFunction · 0.65
TestHallucinationScorerFunction · 0.65
TestToxicityScorerFunction · 0.65
TestCoherenceScorerFunction · 0.65
TestCompletenessScorerFunction · 0.65
runSingleTestCaseFunction · 0.65

Implementers 4

failingTestScorerpkg/evals/batch_test.go
LLMScorerpkg/evals/llm_scorer.go
KeywordCoverageScorerpkg/evals/evals.go
LexicalSimilarityScorerpkg/evals/evals.go

Calls

no outgoing calls

Tested by 6

TestFaithfulnessScorerFunction · 0.52
TestHallucinationScorerFunction · 0.52
TestToxicityScorerFunction · 0.52
TestCoherenceScorerFunction · 0.52
TestCompletenessScorerFunction · 0.52