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
+4 -2
View File
@@ -53,14 +53,16 @@ type Search struct {
}
type SearchSource struct {
Enabled bool `toml:"enabled"`
URL string `toml:"url"`
Enabled bool `toml:"enabled"`
URL string `toml:"url"`
NoRerank bool `toml:"no_rerank"`
}
type TavilySource struct {
Enabled bool `toml:"enabled"`
URL string `toml:"url"`
DailyCreditCap int `toml:"daily_credit_cap"`
NoRerank bool `toml:"no_rerank"`
}
func (s Search) RerankOn() bool {