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): score /structured-output's amended run, and drop the last display claim (#352)
svonava26c81c2483dd
diff --git a/examples/image-classify/README.md b/examples/image-classify/README.mdindex 0aec425bf..a8d822d01 100644--- a/examples/image-classify/README.md+++ b/examples/image-classify/README.md@@ -79,8 +79,14 @@ SigLIP 2 base sorted 9 of 12 of those: it passed 2 damaged pieces and flagged 1`score.py` also checks all sixteen recorded score pairs, in both directions sothat a recorded pair cannot go unpinned, that the run's one tie is on the-product `TIED_PRODUCT` names, the first run's 4 of 16, and the playground's-ordering. It exits non-zero if any of them is not what it computes.+product `TIED_PRODUCT` names, and the first run's 4 of 16. It exits non-zero if+any of them is not what it computes.++It used to check the order the playground's output panel lists two labels in.+That is a claim about which case a page surface displays, which is the same+thing `PAGE_PAIRS` was and which nothing here can verify, so it is gone with+the rest. The scores of that photograph are still checked, in `RECORDED_PAIRS`+along with the other fifteen.Look at a request without sending it, and check that this runner is the onethat sent them:diff --git a/examples/image-classify/score.py b/examples/image-classify/score.pyindex a885dd732..4e92799da 100644--- a/examples/image-classify/score.py+++ b/examples/image-classify/score.py@@ -95,8 +95,6 @@ RECORDED_PAIRS = {"chewinggum-damaged-005": ("0.531", "0.679"),"chewinggum-damaged-016": ("0.547", "0.651"),}-# The photograph the playground shows, and the order its output panel lists.-PAGE_PLAYGROUND = ("cashew-damaged-014", "broken or damaged cashew", "0.637", "whole undamaged cashew", "0.547")def sha256_bytes(value: bytes) -> str:@@ -504,12 +502,6 @@ def main() -> int:if got != pinned:failures.append(f"{case_id}: got {got}, this example pins whole {pinned[0]}, damaged {pinned[1]}")- case_id, top_label, top_score, next_label, next_score = PAGE_PLAYGROUND- played = reranker_scores(by_slug[f"{PASS_REJECT}__{case_id}__reranker-score"])- ordered = sorted(played.items(), key=lambda row: row[1], reverse=True)- if [(label, f"{score:.3f}") for label, score in ordered] != [(top_label, top_score), (next_label, next_score)]:- failures.append(f"playground {case_id}: got {ordered}, page publishes {top_label} {top_score} first")-if failures:print(f"\nThis does NOT reproduce what {manifest['page']} publishes. "diff --git a/examples/structured-output/README.md b/examples/structured-output/README.mdindex bbd34ef89..4f99ab527 100644--- a/examples/structured-output/README.md+++ b/examples/structured-output/README.md@@ -16,8 +16,7 @@ The page's heading:and the line under its proof grid:-> 91 of 93 checked fields were right, and 11 of the 13 fields that pick from a-> fixed list were right+> 84 of the 85 checked fields came back right`score.py` re-derives every one of those from the recorded responses, offline.@@ -72,22 +71,31 @@ schema validator: built indocuments scored: 10parsed as JSON: 10schema-valid: 10-fields right: 91 of 93+fields right: 84 of 85yes-or-no fields: 21 of 21- picks from a list: 11 of 13- everything else: 59 of 59+ picks from a list: 5 of 5+ everything else: 58 of 59documents saying true or false: 0excluded from every total: 3 CPSC cases, listed with their reason in inputs/excluded.jsonfields the model got wrong:- gsa-377053.condition: expected 'unknown', got 'repairable'- nhtsa-11231274.components: expected ['AIR BAGS'], got ['FIRE RELATED']--Reproduced: all 21 yes-or-no fields right, no document says true or false, 91 of 93 checked fields right.+ nhtsa-11443034.injured_people: expected 1, got 0```-Both fields the model got wrong are picks from a fixed list, which is why that-group scores 11 of 13 while the other two are perfect.+The one field the model got wrong is a count, which is why the other two groups+are perfect. Its narrative says the contact "had chest and neck pains due to+hitting the steering wheel and did go to urgent care but did not seek medical+attention", a sentence that contradicts itself; the registered 1 comes from+NHTSA's own coded record and the pains are stated, so 1 is the better reading+and 0 is a defensible reading of the second clause.++Two fields were dropped from the schemas on 2026-09-24 and the eight documents+carrying them were re-recorded, which is why the totals moved from 91 of 93.+`condition` on the GSA lots asked for a condition grade that lot 377053 does not+state; `components` on the NHTSA complaints asked for NHTSA's own taxonomy,+which the narrative cannot reach. Neither was answerable from the document.+`inputs/cases.json` records both, and the calls they replace are kept in the+`superseded/2026-09-15` set of `calls.json`.`score.py` needs nothing installed. Schema validation runs under the smallvalidator built into `score.py`, which covers the subset of JSON Schema these@@ -124,15 +132,16 @@ byte of any request or response.- **Nothing about accuracy on your documents.** Ten records from threepublishers is a demonstration, not a benchmark.-- **Nothing about the two wrong fields being the only possible errors.** The- 93 checks cover the fields that could be read off each source text. Fields+- **Nothing about the one wrong field being the only possible error.** The+ 85 checks cover the fields that could be read off each source text. Fieldsthe source does not state are schema-validated and not scored.- **Nothing about why a yes-or-no field is right.** `score.py` establishes thatthe answer matches the check and that the words true and false appear in nosource text. It cannot show the model reasoned rather than guessed, and with21 binary answers a run of luck is not ruled out by this set.- **Nothing about reproducibility of a new run.** The figure is re-derived from- responses recorded on 2026-09-15 against server version 0.7.3 and model+ responses recorded on 2026-09-15 and 2026-09-24 against server version 0.7.3+ and modelrevision `8bd714204e67a1c6c81f84b0dc486b6a6e96e943c42ff488f6b3cbf936e07955`.A fresh `--record` run may differ.- **Nothing about the `diagnostics/*` calls.** They were written by earlierdiff --git a/examples/structured-output/fetch.py b/examples/structured-output/fetch.pyindex 3c1b92820..cc7ab7f58 100755--- a/examples/structured-output/fetch.py+++ b/examples/structured-output/fetch.py@@ -41,8 +41,8 @@ from pathlib import PathDATASET = "superlinked/sie-task-evidence"TASK = "structured-output"-REVISION = "eca4ac89206255642cadc9530f8faad562bc2829"-MANIFEST_SHA256 = "10ca0e46fdb80f9ed904584894841c10271fc9020279e2ffb4074893b5c65fa7"+REVISION = "d04453560acaa308032c98feb8fe170d0b3b400e"+MANIFEST_SHA256 = "a86cf444165dd89c65c63b53591b0cdc5e9677295c2a32ee15fb0415abc712e1"BASE = f"https://huggingface.co/datasets/{DATASET}/resolve/{REVISION}/{TASK}"HTTP_OK = 200diff --git a/examples/structured-output/score.py b/examples/structured-output/score.pyindex 9ebaac2cd..009783e3b 100755--- a/examples/structured-output/score.py+++ b/examples/structured-output/score.py@@ -10,8 +10,7 @@ Published on https://superlinked.com/structured-output:and, under the proof grid:- 91 of 93 checked fields were right, and 11 of the 13 fields that pick from- a fixed list were right+ 84 of the 85 checked fields came back rightThis script re-derives all of those offline, with no API key and no inferencespend. It exits nonzero if any of them fails to reproduce.@@ -55,12 +54,12 @@ EXPECTED = {"cases": 10,"parsed": 10,"schema_valid": 10,- "checks_passed": 91,- "checks_total": 93,+ "checks_passed": 84,+ "checks_total": 85,"yes_no_passed": 21,"yes_no_total": 21,- "enum_passed": 11,- "enum_total": 13,+ "enum_passed": 5,+ "enum_total": 5,}# The page heading says no document says true or false. Checked against the