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

Function DefaultConfidenceConfig

pkg/memory/confidence.go:30–38  ·  view source on GitHub ↗

DefaultConfidenceConfig 返回默认置信度配置。

()

Source from the content-addressed store, hash-verified

28
29// DefaultConfidenceConfig 返回默认置信度配置。
30func DefaultConfidenceConfig() ConfidenceConfig {
31 return ConfidenceConfig{
32 DecayHalfLife: 30 * 24 * time.Hour, // 30天
33 MinConfidence: 0.20,
34 CorroborationBoost: 0.05,
35 MaxCorroborationBoost: 0.20,
36 RecencyWeight: 0.3,
37 }
38}
39
40// ConfidenceCalculator 置信度计算器。
41type ConfidenceCalculator struct {

Calls

no outgoing calls