Repository navigation
fix(answers,pipeline,judge,gate): Stack P fixes, step 2 of #228 #274
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
napetrov
wants to merge
50
commits into
intel:main
Choose a base branch
from
napetrov:fix/answers-stack-p-step2
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+1,209
−187
Open
Changes from all commits
Commits
Show all changes
50 commits
Select commit
Hold shift + click to select a range
968f297
fix(answers): Stack P asks the doc source for top_k docs (#228 step 2)
napetrov 1c97ebc
fix(benchmark): benchmark run takes and passes --judge-temperature (#…
napetrov cbb7350
fix(pipeline): resolve the doc library id through the registry (#228)
napetrov b68b0ef
fix(judge): do not score the no-retrieval placeholder by default (#228)
napetrov 5469f7a
refactor(answerer): delete dead code in the context arm (#228)
napetrov f4c2ade
feat(artifacts): stamp method_version in the answers and judge output…
napetrov 65f6995
test(parity): import List for the paired-delta helper (#228)
napetrov 6a29f10
test(answerer): one provider allow-list smoke test replaces the init …
napetrov 8a775b2
test(answerer): pin the top_k value at the Answerer call site (#228)
napetrov 0fe7452
docs(gate): say which trust-gate checks run on both-arm-scored questi…
napetrov c517c72
fix(gate): count unjudged retrieval misses as unusable in zero_score_…
napetrov 6bec891
docs(gate): zero-score bullet counts retrieval misses; parse evaluati…
napetrov 5e940f0
Merge branch 'main' of https://github.com/intel/dokimi into fix/answe…
napetrov 715b6e5
fix(judge): a judge-error row keeps the retrieval outcome of its answer
napetrov 2f5cc95
fix(diagnoser): an unjudged retrieval miss is an empty retrieval
napetrov d0b383c
fix(pipeline): say how many questions the run summary left out
napetrov f549950
fix(benchmark): resolve the library id through the --registry that wa…
napetrov 9e14106
test(pipeline): pin the explicit id and the registry-key lookup of _l…
napetrov 0f0aaa4
fix(judge): stamp whether the placeholder was judged in the eval output
napetrov ea052d8
fix(gate): show the retrieval rate when no question is scored in both…
napetrov 6bda456
test(gate): pin the three conditions of the unjudged-miss term
napetrov 3021224
test(cli): drive the real handlers for --judge-temperature and --judg…
napetrov 3ef4eae
docs(changelog): name the flags and commands that exist; say old scor…
napetrov 87a1a0a
test(answerer): drop the ChatOpenAI patch the module no longer uses
napetrov 24a75ca
chore(pipeline): drop the records imports that the merge with main le…
napetrov 284b240
test(pipeline): pin the library id the question step hands the topic …
napetrov 82d8f93
test: pin the branches the #274 review nits left untested
napetrov 0cf25ef
docs(changelog): say benchmark run --judge-temperature is a new flag
napetrov fb4519a
Merge remote-tracking branch 'intel/main' into pr274-1029
napetrov 40308f6
docs(changelog): say a judge-error row on a retrieval miss counts in …
napetrov 6731a11
docs: keep the comment blocks this PR adds to two lines
napetrov 2e85321
fix(gate): a judge error on a retrieval miss counts as unusable
napetrov a9a320b
fix(answerer): a missing top_k asks the doc source for the default
napetrov 5fae382
docs(pipeline): document registry and judge_placeholder in Args
antonwolfy 6dc1f42
docs(changelog): limit what --judge-placeholder restores
antonwolfy 805aa58
docs(methodology): zero-score bullet counts judge-error misses
antonwolfy 9284f52
style(answerer): one import from dokimi.defaults
napetrov caaa3da
test(trust-gate): pin the scored-miss clause of the unjudged-miss filter
napetrov 291dee0
test(answerer): pin a non-default top_k so an override cannot be ignored
napetrov 633065f
docs(methodology): name the both-arm subset in the three metric bullets
napetrov ff77b98
Merge intel/main into fix/answers-stack-p-step2
napetrov d84bb56
test(cli): allowlist --judge-placeholder, which this stack adds
napetrov ff68073
Merge remote-tracking branch 'intel/main' into pr274-1029
napetrov aabe058
docs(cli): regenerate the CLI snapshot after the merge of main and th…
napetrov a3cb4b3
fix(eval): eval score stamps the method version of the answers it judges
napetrov ffd6247
fix(pipeline): an mcp source's ;id= outranks the registry's context7_id
napetrov b92f6c2
docs(changelog,methodology): say what the stamp and the zero-score bu…
napetrov d03c98a
Merge branch 'main' of https://github.com/intel/dokimi into tidy274
napetrov 21b3054
fix(pipeline): eval judges answers with the method version of their a…
napetrov f1854ee
test(trust-gate): expect the zero-score wording the gate now uses
napetrov File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
48 changes: 48 additions & 0 deletions
48
dokimi/changelog.d/20261028_120000_napetrov_stack-p-step2.md
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,48 @@ | ||
| ### Added | ||
|
|
||
| - **`benchmark run --judge-temperature`** — a new flag: it sets the judge's sampling | ||
| temperature and is recorded as `judge_temperature` in the eval output. Before this change the | ||
| flag did not exist, and `benchmark run` rejected it as an unknown argument. | ||
|
|
||
| ### Changed | ||
|
|
||
| - **Stack P scores move (#228 step 2)** — the context arm now asks the doc source for the | ||
| `top_k` docs the command was given: `benchmark run` asks for 3 (`DEFAULT_RETRIEVAL_TOP_K`; it | ||
| has no `--top-k`), `dokimi evaluate` and `answers generate` for their `--top-k` (default 3). | ||
| Before, they left `max_results` at the client default of 5. The doc library id resolves | ||
| through the registry's `context7_id` before the client's own resolver, in the `--registry` | ||
| that was loaded. A question with no document (no hit, or the reranker raised) is no longer judged on | ||
| its `[FALLBACK: ...]` placeholder by default, so it drops out of the paired statistics; the | ||
| record and its `retrieval_hit` stay, its diagnosis stays `empty_retrieval`, and the run | ||
| summary says how many questions it left out. Pass `--judge-placeholder` to judge the | ||
| placeholder again (this restores only that part of the old method). `benchmark run`, | ||
| `evaluate` and `eval score` take the same flag; `benchmark batch` has none and never judges | ||
| the placeholder. Scores from before this change are not comparable with new ones. | ||
| - **Trust gate** — `retrieval_hit_rate` counts every evaluation's recorded retrieval outcome, | ||
| not only the ones scored in both arms, so unjudged misses still count against the rate, and a | ||
| judge-error row keeps the outcome of its answer. The rate is shown even when no question is | ||
| scored in both arms. The thresholds are unchanged. | ||
| - **Zero-score check** — a judge-error row on a retrieval miss now counts as unusable in | ||
| `zero_score_fraction` (a judge error on a retrieval hit is still left out), so a run can fail | ||
| that fail-severity check where intel/main passed it. | ||
| - **Stamped artifacts** — the answers and eval artifacts carry `method_version` (2). Artifacts | ||
| from before this change have no stamp and represent the legacy method (version 1); readers do | ||
| not yet normalize or enforce the version, so it does not yet stop a comparison of mixed methods. | ||
| `eval score` stamps its eval with the version of the answers file it judges, so legacy answers | ||
| re-judged today stay version 1. An eval artifact also carries `judge_placeholder`, so two files | ||
| of one version that differ in it are told apart. | ||
|
|
||
| ### Fixed | ||
|
|
||
| - **Stack P no longer ignores `top_k`** — `Answerer` passes `max_results=top_k` to the doc | ||
| source; the context arm's retrieval request is now the one the arms stack makes. | ||
| - **Library id from the registry** — `EvaluationPipeline` resolves the library id through | ||
| `resolve_library_id_for_product` (explicit id, then an `mcp:` source's `;id=`, then `context7_id`, | ||
| then the client), in the | ||
| registry that `benchmark run` and `benchmark batch` loaded from `--registry`. A registered | ||
| product without `context7_id` now fails for a client that needs a declared id. | ||
|
|
||
| ### Removed | ||
|
|
||
| - Dead code in the answering path: the unused `Answerer.llm` client and the unreachable | ||
| "no documents" branch of `_generate_with_docs`. |
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
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
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
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
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
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.