Description
Entropy-based adaptive alpha alone misses the failure mode where a retrieval leg has a peaked distribution but absolutely low scores. Add magnitude gating: multiply the entropy-derived weight by clamp(max_raw_score / threshold, 0, 1) so that legs with low absolute scores are downweighted regardless of distribution shape. This approach was validated at the ICML 2025 Workshop on Vector Databases (entropy-based dynamic hybrid retrieval paper).
Evidence: exp-020 showed +2.77% retrieval quality improvement with no speed cost.
Acceptance Criteria
Implementation Notes
- Key files:
src/Connapse.Search/Hybrid/HybridSearchService.cs, src/Connapse.Core/Models/SettingsModels.cs
- Pattern: Extend existing
ComputeEffectiveAlpha method
- Reference:
auto-rag-eval/results/exp-020-query_adaptive_alpha-e0a55f-changespec.json
Size Estimate
S — ~60 lines across 2 files
Related
none
Description
Entropy-based adaptive alpha alone misses the failure mode where a retrieval leg has a peaked distribution but absolutely low scores. Add magnitude gating: multiply the entropy-derived weight by
clamp(max_raw_score / threshold, 0, 1)so that legs with low absolute scores are downweighted regardless of distribution shape. This approach was validated at the ICML 2025 Workshop on Vector Databases (entropy-based dynamic hybrid retrieval paper).Evidence: exp-020 showed +2.77% retrieval quality improvement with no speed cost.
Acceptance Criteria
ComputeEffectiveAlphaincorporates magnitude factor alongside entropyVectorMagnitudeThresholdandKeywordMagnitudeThresholdsettings addedEnableMagnitudeGatingtoggle added (default: true)dotnet test)Implementation Notes
src/Connapse.Search/Hybrid/HybridSearchService.cs,src/Connapse.Core/Models/SettingsModels.csComputeEffectiveAlphamethodauto-rag-eval/results/exp-020-query_adaptive_alpha-e0a55f-changespec.jsonSize Estimate
S — ~60 lines across 2 files
Related
none