Repository navigation
feat(benchmarks): add retriever.k and reranker.top_n knobs to pysweep - #208
Draft
kkurzacz-intel wants to merge 1 commit into
Draft
kkurzacz-intel wants to merge 1 commit into
kkurzacz-intel wants to merge 1 commit into
Conversation
kkurzacz-intel
marked this pull request as draft
November 25, 2026 14:10
kkurzacz-intel
force-pushed
the
kkurzacz/pysweep-retriever-reranker
branch
3 times, most recently
from
November 25, 2026 18:35
240a330 to
d6f54b7
Compare
kkurzacz-intel
force-pushed
the
kkurzacz/pysweep-core
branch
from
November 26, 2026 09:45
81e7b61 to
c454d75
Compare
kkurzacz-intel
force-pushed
the
kkurzacz/pysweep-retriever-reranker
branch
5 times, most recently
from
November 27, 2026 16:47
2d7d1dc to
680b105
Compare
Two more Runtime-API plane knobs, set and read back through the system_fingerprint API like llms.max_new_tokens: - retriever.k (RetrieverK): documents fetched per query, ported from prepare_change_retriever.sh. - reranker.top_n (RerankerTopN): how many of them survive reranking and reach the prompt, i.e. the LLM's input length; ported from prepare_change_reranker.sh. Both are PositiveInt, matching the app's own schema (k=0 retrieves nothing, top_n=0 leaves the LLM with no context). They are not cross-validated: a top_n above the live k is a wasted run, not an invalid one. Unit tests per property and for the config bindings, plus live e2e tests that read, apply and verify each knob. Signed-off-by: Kurzacz, Kamil <kamil.kurzacz@intel.com>
kkurzacz-intel
force-pushed
the
kkurzacz/pysweep-retriever-reranker
branch
from
November 27, 2026 17:13
680b105 to
3b95218
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Two more Runtime-API plane knobs for pysweep, set and read back through the
system_fingerprintAPI likellms.max_new_tokens:retriever.k(RetrieverK), ported fromprepare_change_retriever.sh.reranker.top_n(RerankerTopN), ported fromprepare_change_reranker.sh.Both are
PositiveInt, matching the app's own schema:k=0retrieves nothing andtop_n=0leaves the LLM with no context. They aren't cross-validated, because atop_nabove the livekis a wasted run rather than an invalid one.configs/sweep.yamlandconfigs/README.mdlist both, and DESIGN.md marks them implemented.Testing
tox -e pysweep_unit_tests: 279 passed (236 from feat(benchmarks): add pysweep, a declarative sweep runner for the ChatQnA benchmark #207, plus 43 for the two properties and their config bindings).test_retriever_k.pyandtest_reranker_top_n.pyread, apply and verify each knob on a deployment. They weren't run against the current dev cluster in this round.