p3: map Brave LLM Context; RRF merge; per-source no_rerank

Live llm/context hits live in grounding.generic plus a URL-keyed
sources map, not a sources array. Fan-in uses reciprocal-rank fusion
instead of cosine. no_rerank keeps that source's own order as a prefix.
This commit is contained in:
2026-09-23 16:02:21 -07:00
parent eb4e46d036
commit b6e1cdf825
10 changed files with 264 additions and 58 deletions
+10
View File
@@ -35,6 +35,16 @@ func Build(cfg config.Search, cache *dcache.DB, emb Embedder, log *slog.Logger)
Embedder: emb,
Log: log,
TavilyCap: cfg.Tavily.DailyCreditCap,
NoRerank: map[string]bool{},
}
if cfg.SearxNG.NoRerank {
e.NoRerank[NameSearxNG] = true
}
if cfg.BraveLLM.NoRerank {
e.NoRerank[NameBraveLLM] = true
}
if cfg.Tavily.NoRerank {
e.NoRerank[NameTavily] = true
}
if cfg.SearxNG.Enabled {
u := cfg.SearxNG.URL