Skip to content

armgit / sie

Public Imported from GitHub
0

Open-source inference server and production cluster for all the models your agent needs.

docs(examples): correct the page compositions these READMEs describe (#345)

svonavaee7ca75d733f
diff --git a/examples/caption-vqa/README.md b/examples/caption-vqa/README.md
index 2e05b47c1..0e1466714 100644
--- a/examples/caption-vqa/README.md
+++ b/examples/caption-vqa/README.md
@@ -130,5 +130,12 @@ record as the starting point for that, not as a clearance.
through a different served revision and unfixed sampling, so it will differ.
- Two of the twelve answers are wrong, both analogue needle gauges. That is the
finding the page reports, not a caveat to it.
-- The page shows five of the twelve cases in its proof grid, plus one in the
- hero and one in the playground. All twelve are here.
+- The page shows three of the twelve cases in its proof grid, plus one in the
+ hero and one in the playground, and all five of those are matches. The two
+ wrong answers are printed under the grid with the value each question
+ expected, so neither miss is hidden. All twelve are here.
+
+ This said "five of the twelve cases in its proof grid" until
+ superlinked/sie-web#468. The grid held those two wrong answers as its last two
+ cards, so the section ended on failure; they moved under it and the grid was
+ cut to three. No figure moved, and both misses are still on the page.
diff --git a/examples/knowledge-graph/README.md b/examples/knowledge-graph/README.md
index d0d85a350..4e1c4bd21 100644
--- a/examples/knowledge-graph/README.md
+++ b/examples/knowledge-graph/README.md
@@ -28,7 +28,7 @@ dataset gives you the evidence. Fetching it needs no account and no token.
- SIE server version 0.7.3, recorded 2026-09-15
- No threshold or other option is sent, so the server default applies
-Three of the eleven edges in the proof paragraphs are wrong in a way no score
+Three of the eleven edges outside the hero graph are wrong in a way no score
exposes. `inputs/review.json` records them, with the reason each was marked. They
are human judgements from reading the source paragraph, not anything the model
returned, and the example treats them as data you can disagree with.
@@ -66,10 +66,24 @@ SIE_API_KEY=sk-sie-... uv run python run.py --output run-output
a hand review flagged 3 of the 11
```
-Those are the figures the task page publishes. The five paragraphs the page
-leaves out are printed too, each with the edge count and the reason it was not
-displayed. Four of the five returned two edges or fewer, and the fifth comes
-from a filing another task page already uses.
+The page publishes the same 10 recorded, 5 shown, 16 drawn and 3 flagged. It
+splits the 16 differently, because `score.py` reads `page_role` out of
+`inputs/candidates.json` at the pinned revision, where the Fresenius drug
+recall is still recorded as "proof and playground", and the scorer counts every
+displayed paragraph after the hero as a proof paragraph. superlinked/sie-web#468
+took that paragraph off the proof grid, since the playground below it runs that
+exact text and a card repeated it. So the page's split is 8 edges across 3 proof
+paragraphs, 5 in the hero graph and 3 in the playground's paragraph, and the 3
+flagged edges fall 2 on the proof cards and 1 in the playground.
+
+This section said "Those are the figures the task page publishes" until that PR.
+Every total above still is; the sentence was wrong only about the split, and
+correcting `page_role` in the recorded candidates would mean a new dataset
+revision for a field that describes the page rather than the run.
+
+The five paragraphs the page leaves out are printed too, each with the edge
+count and the reason it was not displayed. Four of the five returned two edges
+or fewer, and the fifth comes from a filing another task page already uses.
`score.py` fails rather than skipping. It refuses a paragraph whose text no
longer matches its digest, a candidate with a missing call, a response that
@@ -79,15 +93,15 @@ and a flagged edge the model never returned.
## What this does NOT establish
-- **Not that the graph is correct.** Three of eleven proof edges are flagged
- here, and nothing mechanical found them. Every relation the model returns
- carries a confidence score, and all three flagged edges score high. A graph
- built from this output without a person reading the source will contain
- claims the source does not make.
-- **Not an accuracy rate.** Eleven edges over four paragraphs is far too small
- to support a percentage, and the ten paragraphs were chosen to be readable
- rather than sampled from anything. Read the three flagged edges as three
- failure modes worth knowing about, not as a rate.
+- **Not that the graph is correct.** Three of the eleven edges outside the hero
+ graph are flagged here, and nothing mechanical found them. Every relation the
+ model returns carries a confidence score, and all three flagged edges score
+ high. A graph built from this output without a person reading the source will
+ contain claims the source does not make.
+- **Not an accuracy rate.** Eleven edges over the four paragraphs outside the
+ hero is far too small to support a percentage, and the ten paragraphs were
+ chosen to be readable rather than sampled from anything. Read the three
+ flagged edges as three failure modes worth knowing about, not as a rate.
- **Not that offsets pin a relation.** GLiNER2 names each end of a relation by
its text, not by an offset. Where a paragraph mentions the same text twice,
the relation does not say which mention it means. That is exactly what the
diff --git a/examples/screenshot-mining/README.md b/examples/screenshot-mining/README.md
index b41cda690..0a793fc89 100644
--- a/examples/screenshot-mining/README.md
+++ b/examples/screenshot-mining/README.md
@@ -59,7 +59,7 @@ Across all 12 recorded screens, 328 of 335 values matched the screen and 7 did n
The playground call adds 4 of 4, for 332 of 339 over every recorded call
```
-`score.py` also checks the four per-screen figures the page prints beside its
+`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.
@@ -162,8 +162,18 @@ 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 goes
through a different served revision and unfixed sampling, so it will differ.
-- The page's proof grid shows four of the twelve screens, chosen because those
- four include every screen that missed anything. The hero shows a fifth, the
- Argo CD Grafana dashboard, and the playground a sixth, 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.
+- 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.
diff --git a/examples/screenshot-mining/score.py b/examples/screenshot-mining/score.py
index 9212963c8..872927785 100755
--- a/examples/screenshot-mining/score.py
+++ b/examples/screenshot-mining/score.py
@@ -6,7 +6,7 @@ no network, no inference spend.
python3 score.py
Prints "328 of 335 values matched the screen", the figure the page publishes,
-and the per-screen lines it shows beside four of the screenshots.
+and the per-screen lines it shows beside three of the screenshots.
`expected` in inputs.json was read off each screenshot at full resolution and
committed before any model run. This compares each recorded reply with it using
@@ -47,12 +47,20 @@ PINNED_OIDS = {
PAGE_FIGURE = (328, 335)
PAGE_SCREENS = 12
-# The per-screen lines the page prints beside four of the screenshots.
+# The per-screen lines the page prints beside three of the screenshots, in the
+# order its proof grid shows them.
+#
+# 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.
PAGE_PER_SCREEN = {
- "superset-slack-dashboard": (28, 32),
"kubernetes-dashboard-node": (26, 26),
- "gitlab-pipeline-list": (17, 19),
"gitlab-ci-grafana-dashboard": (51, 52),
+ "airflow-dag-list": (31, 31),
}
@@ -415,7 +423,10 @@ def main() -> int:
for line in failures:
print(f" {line}", file=sys.stderr)
return 1
- print(f"Matches the {want_passed} of {want_total}, and the four per-screen lines, published on {manifest['page']}.")
+ print(
+ f"Matches the {want_passed} of {want_total}, and the {len(PAGE_PER_SCREEN)} "
+ f"per-screen lines, published on {manifest['page']}."
+ )
return 0