fix: detect unavailable authoritative knowledge answers

This commit is contained in:
姚章浩
2026-07-22 13:21:59 +08:00
parent 774ccd9454
commit d29b28be13
3 changed files with 43 additions and 14 deletions
+3 -2
View File
@@ -14,18 +14,19 @@ var noAnswerPhrases = []string{
"没有找到",
"无法确定",
"暂无相关",
"暂无已发布的权威知识",
"知识库中没有",
}
// Evaluator classifies a successful turn into a coverage verdict.
type Evaluator struct{}
// NewEvaluator creates a v1 Evaluator.
// NewEvaluator creates the current Evaluator.
func NewEvaluator() *Evaluator {
return &Evaluator{}
}
// Version returns the evaluator version, always "v1".
// Version returns the current evaluator version.
func (e *Evaluator) Version() string {
return EvaluatorVersion
}