MCPcopy Create free account
hub / github.com/JordanCoin/codemap / RoutingTopKOrDefault

Method RoutingTopKOrDefault

config/config.go:196–198  ·  view source on GitHub ↗

RoutingTopKOrDefault returns a bounded top-k value for prompt-submit routing.

()

Source from the content-addressed store, hash-verified

194
195// RoutingTopKOrDefault returns a bounded top-k value for prompt-submit routing.
196func (c ProjectConfig) RoutingTopKOrDefault() int {
197 return clampRange(c.Routing.Retrieval.TopK, defaultRoutingTopK, 1, 20)
198}
199
200// ConfigPath returns the path to .codemap/config.json for the given root.
201func ConfigPath(root string) string {

Callers 7

TestMatchSubsystemRoutesFunction · 0.95
hookPromptSubmitFunction · 0.80
classifyIntentFunction · 0.80
configShowFunction · 0.80
buildContextEnvelopeFunction · 0.80
TestLoad_ValidConfigFunction · 0.80

Calls 1

clampRangeFunction · 0.85

Tested by 3

TestMatchSubsystemRoutesFunction · 0.76
TestLoad_ValidConfigFunction · 0.64