From 68ebb413dd24e60de88e3fc15a420026dda55ff6 Mon Sep 17 00:00:00 2001 From: yao pengfei Date: Tue, 8 Sep 2026 12:33:59 +0000 Subject: [PATCH] fix(plugin-raven): track SearchConfig's top_k default of 2 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The multi-source release (#7) narrowed the default from 5 to 2 across the engine, Hermes and both TypeScript hosts. This schema was the one place left behind, and the line has not been touched since the file was created. Raven's plugin registry fills a declared default for every key the operator leaves out, so a zero-config Raven was the only host injecting five full skill bodies per search instead of two — and on the default path there is no gate, so those five are each source's top hit however weakly it matched. Co-Authored-By: Claude Opus 5 (1M context) --- .../plugin-raven/skillsearch_raven/raven-plugin.toml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/skillcorpus_plugin/plugin-raven/skillsearch_raven/raven-plugin.toml b/skillcorpus_plugin/plugin-raven/skillsearch_raven/raven-plugin.toml index 136475d..a881795 100644 --- a/skillcorpus_plugin/plugin-raven/skillsearch_raven/raven-plugin.toml +++ b/skillcorpus_plugin/plugin-raven/skillsearch_raven/raven-plugin.toml @@ -46,7 +46,10 @@ weight_local = { type = "number", default = 1.0 } weight_hub = { type = "number", default = 0.85 } over_fetch = { type = "integer", default = 2 } dedup_by = { type = "string", enum = ["name", "qualified_id"], default = "qualified_id" } -top_k = { type = "integer", default = 5 } +# Matches SearchConfig.top_k. Every other host defaults to 2; a 5 here made +# Raven the one host that injected five bodies a turn, because the plugin +# registry fills a declared default for every key the operator leaves out. +top_k = { type = "integer", default = 2 } # Narrowing. Both the rewriter and the gate need a model; leaving `model` # empty runs retrieval raw.