Open-source inference server and production cluster for all the models your agent needs.
Python bgecolbertdata-pipelinedeep-learningembeddingsinferenceinference-serverinformation-retrievalllmmlmlopsnatural-language-processingnlppythonrerankingretrievalretrieval-augmented-generationsemantic-searchspladevector-search
fix(examples): follow the screenshot-mining and multi-vector page selections (#349)
svonava72c74bb2135b
diff --git a/examples/multi-vector/README.md b/examples/multi-vector/README.mdindex 9e4b2498b..50c57dcdd 100644--- a/examples/multi-vector/README.md+++ b/examples/multi-vector/README.md@@ -3,7 +3,7 @@## What this showsEight questions, each with four candidate passages taken from the same-documentation page, go to SIE Cloud as token vectors. A ColBERT model returns+documentation page, are encoded as token vectors. A ColBERT model returnsone vector per token rather than one per text, so the comparison happensclient-side: every query token takes its best match in a passage and thematches sum. That is MaxSim, and `score.py` is mostly those four lines.@@ -72,9 +72,14 @@ it lost in: mdn-cache-no-storeThat is the figure the task page publishes. The loss is narrow and it isprinted with the rest: 11.718 for the `no-store` passage against 11.746 for the`private` passage, a gap of 0.028 on a scale where the whole sum runs past 11.-The page displays three of the eight searches plus one more in its hero, and-the search the answer lost is one of the three, so the miss is visible there-too.+All eight searches are scored here. Which of them the page features is the+page's decision and is recorded in its own `SOURCES.md`.++This paragraph used to say which searches the page draws, and that the search+the answer lost was one of them. That went stale as soon as the page was+reselected, and nothing here can check it, so the claim is removed rather than+restated the other way round. The number the page and this script share is+7 of 8, and that has not moved.`score.py` fails rather than skipping. A response that does not match its`response_sha256`, a request the pinned inputs do not rebuild, a missing call,diff --git a/examples/screenshot-mining/README.md b/examples/screenshot-mining/README.mdindex 0a793fc89..bbbf2c1ef 100644--- a/examples/screenshot-mining/README.md+++ b/examples/screenshot-mining/README.md@@ -1,8 +1,8 @@# Read the numbers off a dashboard that has no APITwelve screenshots of Superset, Argo CD, Airflow, the Kubernetes Dashboard,-GitLab and Jaeger, one call each to `Qwen/Qwen3.8-27B-FP8` on SIE Cloud with a-strict JSON-schema grammar, and a thirteenth call for the playground snippet.+GitLab and Jaeger, one call each to `Qwen/Qwen3.8-27B-FP8` with a strict+JSON-schema grammar, and a thirteenth call for the playground snippet.The extractions behind[superlinked.com/screenshot-mining](https://superlinked.com/screenshot-mining).@@ -59,9 +59,15 @@ Across all 12 recorded screens, 328 of 335 values matched the screen and 7 did nThe playground call adds 4 of 4, for 332 of 339 over every recorded call```-`score.py` also checks the three per-screen figures the page prints beside its-screenshots, and exits non-zero if any of them, or the headline, is not what it-computes.+`score.py` also checks three per-screen figures the page publishes, pinned in+`PAGE_PER_SCREEN`, and exits non-zero if any of them, or the headline, is not+what it computes. That catches a rescore moving a published number quietly.++It does not check which screens the page draws, and it cannot: nothing here+reads the page. Tampering shows the gap. Change a figure and the run fails;+swap the slug for another screen with its correct figures and the run stays+green. That is why this file no longer says what the page's grid contains. The+page's `SOURCES.md` is where the selection is recorded.Look at a request without sending it:@@ -162,18 +168,13 @@ starting point for that, not as a clearance.run tests a screenshot at a resolution where the text is genuinely unreadable.- Not reproducible against the live API. These are recordings. A rerun goesthrough a different served revision and unfixed sampling, so it will differ.-- The page's proof grid shows three of the twelve screens: the Kubernetes- Dashboard node page at 26 of 26, the GitLab CI Grafana dashboard at 51 of 52- with its one miss marked, and the Airflow Dags list at 31 of 31. The hero- shows a fourth, the Argo CD Grafana dashboard, and the playground a fifth, the- GitLab DORA dashboard. All twelve are here, and so is the playground call,- which is scored separately and is not part of the 335.-- This said "shows four of the twelve screens, chosen because those four include- every screen that missed anything" until superlinked/sie-web#468. That- selection was the defect the PR fixed: a page that leads with 328 of 335 and- then shows only the screens that missed illustrates its own claim with the- counterexamples. The grid now opens and closes on a screen that matched- everything. No figure moved. The Superset Slack Dashboard at 28 of 32 and the- GitLab pipeline list at 17 of 19 are still scored here, and the page's totals- line now names them as the screens carrying six of the seven misses.+- Not a description of what the page shows. All twelve screens are scored here,+ and so is the playground call, which is scored separately and is not part of+ the 335. Which of them the page draws, and where, is the page's decision and+ is recorded in its own `SOURCES.md`.++ This bullet used to name the grid, the hero and the playground screens, and it+ was wrong twice inside two days: once naming four screens, then naming three+ from a page change that had not shipped. Every run stayed green through both,+ because nothing here can read the page. The claim is removed rather than+ corrected a third time. No figure moved and no call was rescored in any of it.diff --git a/examples/screenshot-mining/score.py b/examples/screenshot-mining/score.pyindex 872927785..000494940 100755--- a/examples/screenshot-mining/score.py+++ b/examples/screenshot-mining/score.py@@ -6,7 +6,7 @@ no network, no inference spend.python3 score.pyPrints "328 of 335 values matched the screen", the figure the page publishes,-and the per-screen lines it shows beside three of the screenshots.+and the three per-screen figures pinned in PAGE_PER_SCREEN.`expected` in inputs.json was read off each screenshot at full resolution andcommitted before any model run. This compares each recorded reply with it using@@ -47,19 +47,23 @@ PINNED_OIDS = {PAGE_FIGURE = (328, 335)PAGE_SCREENS = 12-# The per-screen lines the page prints beside three of the screenshots, in the-# order its proof grid shows them.+# Three per-screen figures the page publishes, checked against the recording so+# that a rescore cannot move a published number quietly.#-# This named four screens until superlinked/sie-web#468: superset-slack-dashboard-# at 28 of 32, kubernetes-dashboard-node, gitlab-pipeline-list at 17 of 19 and-# gitlab-ci-grafana-dashboard. Those four were the three screens that missed-# anything plus one clean one, so the page led with 328 of 335 and then-# illustrated it with its own counterexamples. The grid was reselected to carry-# the capability, and the two screens that came off it are still scored below;-# they are simply no longer among the lines the page prints.+# This block used to say which screens the proof grid draws, and in what order.+# That claim was wrong twice inside two days: once naming four screens, then+# naming three from a page change that had not shipped. Both times every run+# stayed green, because this script cannot see the page and never could. It is+# gone rather than corrected a third time. Which screens the page draws is the+# page's decision and the page's SOURCES.md records it.+#+# What survives is what the recording can settle: these figures, PAGE_FIGURE+# and PAGE_SCREENS. Nothing here was rescored in any of it, and every one of+# the twelve screens is scored and printed below whether the page draws it or+# not.PAGE_PER_SCREEN = {+ "argocd-applicationsets": (32, 32),"kubernetes-dashboard-node": (26, 26),- "gitlab-ci-grafana-dashboard": (51, 52),"airflow-dag-list": (31, 31),}@@ -423,10 +427,19 @@ def main() -> int:for line in failures:print(f" {line}", file=sys.stderr)return 1+ # What this line may claim, found by tampering with it rather than by+ # reading it. Swapping one entry of PAGE_PER_SCREEN for a screen the page+ # does not draw, with its correct figures, leaves the run green: the loop+ # above checks the numbers of whatever slugs it is handed, not that those+ # slugs are the page's. That is the hole that let this file describe a grid+ # from an unmerged PR while every run passed. Nothing here can reach the+ # page, so the wording says what was checked instead of implying more.print(- f"Matches the {want_passed} of {want_total}, and the {len(PAGE_PER_SCREEN)} "- f"per-screen lines, published on {manifest['page']}."+ f"The {len(PAGE_PER_SCREEN)} per-screen figures below PAGE_PER_SCREEN match "+ f"the recording, as does the {want_passed} of {want_total} published on "+ f"{manifest['page']}.")+ print("Not checked here: that those are the screens the page currently draws. Its SOURCES.md lists them.")return 0