Repositories / OpenClaw
Focused tour of agent execution, memory search, and tool orchestration; not a whole-project map.
Merges vector and keyword results with optional diversity and temporal-decay reranking.
Stored evidence from this immutable analysis snapshot
const temporalDecayConfig = { ...DEFAULT_TEMPORAL_DECAY_CONFIG, ...params.temporalDecay };const merged = Array.from(byId.values()).map((entry) => {// Exact specificity already carries path precedence. Keep body scores as// the within-tier signal, and use path BM25 only for partial path-only hits.const keywordScore =entry.textScore > 0? entry.rankingScore
: entry.exactPathSpecificity > 0 ? 0 : entry.pathScore; const contentScore = params.vectorWeight * entry.vectorScore + params.textWeight * keywordScore; const hasWeightedContentRelevance = contentScore > 0;