{
  "id": "871308e2-9e8c-4ab5-9edf-41057775a0b4",
  "revision": 0,
  "last_node_id": 32,
  "last_link_id": 29,
  "nodes": [
    {
      "id": 1,
      "type": "MarkdownNote",
      "pos": [
        -740,
        1090
      ],
      "size": [
        680,
        825
      ],
      "flags": {},
      "order": 0,
      "mode": 0,
      "inputs": [],
      "outputs": [],
      "properties": {},
      "widgets_values": [
        "# TypeSafe Jev — four decisions in one graph\n\nJev answers a question about text, images or both and hands the answer back as a value the graph can branch on.\nThe same model is exposed four ways; every case below is wired end to end, so copy the one you need.\n\n**Input assets (demo):**\n- [cyclist_in_rain_night_street.png](https://raw.githubusercontent.com/Comfy-Org/workflow_templates/refs/heads/main/input/cyclist_in_rain_night_street.png)\n- [ramen_bowl_top_view.png](https://raw.githubusercontent.com/Comfy-Org/workflow_templates/refs/heads/main/input/ramen_bowl_top_view.png)\n- [girl_red_umbrella_station.png](https://raw.githubusercontent.com/Comfy-Org/workflow_templates/refs/heads/main/input/girl_red_umbrella_station.png)\n\n- **Case 1 · one image, one verdict** — a yes/no question plus the probability behind it. The cheapest gate you can put in front of an expensive node.\n- **Case 2 · two candidates, one winner** — score both, compare the numbers with a math rule, let a switch pass the winner downstream.\n- **Case 3 · your own options** — classify into a list you write, one option per line.\n- **Case 4 · pick from a batch** — pick the image that matches the prompt, then keep it with `index`.\n\nAll four cases run in one queue. These are API (partner) nodes: sign in with a Comfy account, or set an API key\n(Settings → API Keys → My API Key).\n\n## What the nodes return\n\n| Node | Outputs |\n| --- | --- |\n| **TypeSafe Jev (Yes/No)** | `result` (BOOLEAN), `answer` (\"yes\"/\"no\"), `probability` (0–1) — flips at the threshold widget, 0.01–0.99 |\n| **TypeSafe Jev (Choice)** | `choice` (STRING), `option_index` (INT, from 0), `confidence` (0–1) |\n| **TypeSafe Jev (Pick Image)** | `index` (INT, from 0), `confidence` (0–1) |\n| **TypeSafe Jev (Score)** | `result` (BOOLEAN), `score` (1–10) — true when score ≥ threshold, 1–10 |\n\nConnect text (`text`), up to **32 images** (`image_1…image_32`), or both. Name the sockets in the question,\ne.g. *\"Does image_2 show the same person as image_1?\"* — the model sees those names.\n\n## How to use\n\n1. Sign in, or paste an API key.\n2. Swap the demo images in the `Load Image` nodes.\n3. Ask one thing per node, and phrase it so **\"yes\"** — or the first option — is the case you act on.\n4. Tune the threshold (0.01–0.99 for yes/no, 1–10 for score) until false positives stop hurting.\n5. Route `result` into `If/Else Switch`, or `index` / `option_index` into a dispatch rule.\n\n**Cost** is per token, so a short question and one image cost a fraction of a cent. Put the decision *before*\nthe expensive step and put that step on the accepted branch — the rejected branch then costs nothing.\n"
      ],
      "widgets_values_named": {
        "text": "# TypeSafe Jev — four decisions in one graph\n\nJev answers a question about text, images or both and hands the answer back as a value the graph can branch on.\nThe same model is exposed four ways; every case below is wired end to end, so copy the one you need.\n\n**Input assets (demo):**\n- [cyclist_in_rain_night_street.png](https://raw.githubusercontent.com/Comfy-Org/workflow_templates/refs/heads/main/input/cyclist_in_rain_night_street.png)\n- [ramen_bowl_top_view.png](https://raw.githubusercontent.com/Comfy-Org/workflow_templates/refs/heads/main/input/ramen_bowl_top_view.png)\n- [girl_red_umbrella_station.png](https://raw.githubusercontent.com/Comfy-Org/workflow_templates/refs/heads/main/input/girl_red_umbrella_station.png)\n\n- **Case 1 · one image, one verdict** — a yes/no question plus the probability behind it. The cheapest gate you can put in front of an expensive node.\n- **Case 2 · two candidates, one winner** — score both, compare the numbers with a math rule, let a switch pass the winner downstream.\n- **Case 3 · your own options** — classify into a list you write, one option per line.\n- **Case 4 · pick from a batch** — pick the image that matches the prompt, then keep it with `index`.\n\nAll four cases run in one queue. These are API (partner) nodes: sign in with a Comfy account, or set an API key\n(Settings → API Keys → My API Key).\n\n## What the nodes return\n\n| Node | Outputs |\n| --- | --- |\n| **TypeSafe Jev (Yes/No)** | `result` (BOOLEAN), `answer` (\"yes\"/\"no\"), `probability` (0–1) — flips at the threshold widget, 0.01–0.99 |\n| **TypeSafe Jev (Choice)** | `choice` (STRING), `option_index` (INT, from 0), `confidence` (0–1) |\n| **TypeSafe Jev (Pick Image)** | `index` (INT, from 0), `confidence` (0–1) |\n| **TypeSafe Jev (Score)** | `result` (BOOLEAN), `score` (1–10) — true when score ≥ threshold, 1–10 |\n\nConnect text (`text`), up to **32 images** (`image_1…image_32`), or both. Name the sockets in the question,\ne.g. *\"Does image_2 show the same person as image_1?\"* — the model sees those names.\n\n## How to use\n\n1. Sign in, or paste an API key.\n2. Swap the demo images in the `Load Image` nodes.\n3. Ask one thing per node, and phrase it so **\"yes\"** — or the first option — is the case you act on.\n4. Tune the threshold (0.01–0.99 for yes/no, 1–10 for score) until false positives stop hurting.\n5. Route `result` into `If/Else Switch`, or `index` / `option_index` into a dispatch rule.\n\n**Cost** is per token, so a short question and one image cost a fraction of a cent. Put the decision *before*\nthe expensive step and put that step on the accepted branch — the rejected branch then costs nothing.\n"
      },
      "color": "#222",
      "bgcolor": "#000"
    },
    {
      "id": 7,
      "type": "MarkdownNote",
      "pos": [
        0,
        810
      ],
      "size": [
        560,
        200
      ],
      "flags": {},
      "order": 1,
      "mode": 0,
      "inputs": [],
      "outputs": [],
      "properties": {},
      "widgets_values": [
        "### Case 1 · one image, one verdict\n\n`Load Image → Jev (Yes/No) → Preview as Text`\n\n*\"Is there a person in the image?\"* — `probability` is the confidence in \"yes\", `result` turns true once it\nclears the threshold (0.5 here). Good for publish gates: subject facing the camera, clean background, watermark or\nlogo detection, content checks. Change the question, run it, watch `probability` move — then wire `result` into\na switch.\n"
      ],
      "widgets_values_named": {
        "text": "### Case 1 · one image, one verdict\n\n`Load Image → Jev (Yes/No) → Preview as Text`\n\n*\"Is there a person in the image?\"* — `probability` is the confidence in \"yes\", `result` turns true once it\nclears the threshold (0.5 here). Good for publish gates: subject facing the camera, clean background, watermark or\nlogo detection, content checks. Change the question, run it, watch `probability` move — then wire `result` into\na switch.\n"
      },
      "color": "#222",
      "bgcolor": "#000"
    },
    {
      "id": 15,
      "type": "MarkdownNote",
      "pos": [
        1390,
        810
      ],
      "size": [
        560,
        200
      ],
      "flags": {},
      "order": 2,
      "mode": 0,
      "inputs": [],
      "outputs": [],
      "properties": {},
      "widgets_values": [
        "### Case 2 · two candidates, one winner\n\nEach image gets its own 1–10 score against the same question; `Math Expression` compares the two floats and\n`If/Else Switch` passes the winner to `Preview Image`.\n\nRules you can drop into the expression: `a > b` (current) · `a < b` · `a - b > 1` (only when clearly\nbetter) · `a > 6 and a > b` (good in absolute terms *and* better). Both calls are billed — this is \"best of two\",\nworth it when the next step is far more expensive.\n"
      ],
      "widgets_values_named": {
        "text": "### Case 2 · two candidates, one winner\n\nEach image gets its own 1–10 score against the same question; `Math Expression` compares the two floats and\n`If/Else Switch` passes the winner to `Preview Image`.\n\nRules you can drop into the expression: `a > b` (current) · `a < b` · `a - b > 1` (only when clearly\nbetter) · `a > 6 and a > b` (good in absolute terms *and* better). Both calls are billed — this is \"best of two\",\nworth it when the next step is far more expensive.\n"
      },
      "color": "#222",
      "bgcolor": "#000"
    },
    {
      "id": 21,
      "type": "MarkdownNote",
      "pos": [
        0,
        2120
      ],
      "size": [
        560,
        220
      ],
      "flags": {},
      "order": 3,
      "mode": 0,
      "inputs": [],
      "outputs": [],
      "properties": {},
      "widgets_values": [
        "### Case 3 · classify into your own options\n\n`options` is one option per line (2 to 50 options, max 40 characters each); blank lines are skipped\nand outer whitespace is trimmed, so `option_index` counts the parsed options, not the raw input lines. Add a catch-all such as `other` so an\ninput that fits nothing still lands somewhere. `choice` is the text, `option_index` its position from 0 — feed\nthat into a switch or a prompt selector.\n\nSwap the list for your own taxonomy: camera angle, shot size, product category, tone of voice, moderation label.\n"
      ],
      "widgets_values_named": {
        "text": "### Case 3 · classify into your own options\n\n`options` is one option per line (2 to 50 options, max 40 characters each); blank lines are skipped\nand outer whitespace is trimmed, so `option_index` counts the parsed options, not the raw input lines. Add a catch-all such as `other` so an\ninput that fits nothing still lands somewhere. `choice` is the text, `option_index` its position from 0 — feed\nthat into a switch or a prompt selector.\n\nSwap the list for your own taxonomy: camera angle, shot size, product category, tone of voice, moderation label.\n"
      },
      "color": "#222",
      "bgcolor": "#000"
    },
    {
      "id": 30,
      "type": "MarkdownNote",
      "pos": [
        1390,
        2120
      ],
      "size": [
        560,
        200
      ],
      "flags": {},
      "order": 4,
      "mode": 0,
      "inputs": [],
      "outputs": [],
      "properties": {},
      "widgets_values": [
        "### Case 4 · pick the winner from a batch\n\n`Load Image ×2 → Batch Images → Jev (Pick Image)` — the node sees the batch, `text` carries what you asked for,\nand `index` says which image won (from 0). `Get Image from Batch` takes the same batch plus that `index` (`length` 1) and\nreturns the picked image, so the rest of the graph works on one image instead of a batch.\n\n2 to 32 images. Leave `text` empty to ask \"which is best\" instead of \"which matches\".\n"
      ],
      "widgets_values_named": {
        "text": "### Case 4 · pick the winner from a batch\n\n`Load Image ×2 → Batch Images → Jev (Pick Image)` — the node sees the batch, `text` carries what you asked for,\nand `index` says which image won (from 0). `Get Image from Batch` takes the same batch plus that `index` (`length` 1) and\nreturns the picked image, so the rest of the graph works on one image instead of a batch.\n\n2 to 32 images. Leave `text` empty to ask \"which is best\" instead of \"which matches\".\n"
      },
      "color": "#222",
      "bgcolor": "#000"
    },
    {
      "id": 2,
      "type": "LoadImage",
      "pos": [
        70,
        1310
      ],
      "size": [
        320,
        340
      ],
      "flags": {},
      "order": 5,
      "mode": 0,
      "inputs": [],
      "outputs": [
        {
          "name": "IMAGE",
          "type": "IMAGE",
          "links": [
            1
          ]
        },
        {
          "name": "MASK",
          "type": "MASK",
          "links": null
        }
      ],
      "properties": {
        "Node name for S&R": "LoadImage"
      },
      "widgets_values": [
        "girl_red_umbrella_station.png",
        "image"
      ],
      "widgets_values_named": {
        "image": "girl_red_umbrella_station.png",
        "upload": "image"
      }
    },
    {
      "id": 3,
      "type": "TypeSafeJevYesNo",
      "pos": [
        470,
        1370
      ],
      "size": [
        400,
        240
      ],
      "flags": {},
      "order": 12,
      "mode": 0,
      "inputs": [
        {
          "name": "images.image_1",
          "shape": 7,
          "type": "IMAGE",
          "link": 1
        },
        {
          "name": "images.image_2",
          "shape": 7,
          "type": "IMAGE",
          "link": null
        },
        {
          "name": "text",
          "shape": 7,
          "type": "STRING",
          "link": null
        }
      ],
      "outputs": [
        {
          "name": "result",
          "type": "BOOLEAN",
          "links": [
            2
          ]
        },
        {
          "name": "answer",
          "type": "STRING",
          "links": [
            3
          ]
        },
        {
          "name": "probability",
          "type": "FLOAT",
          "links": [
            4
          ]
        }
      ],
      "properties": {
        "Node name for S&R": "TypeSafeJevYesNo"
      },
      "widgets_values": [
        "jev-1.14.0",
        "Is there a person in the image?",
        0.5
      ],
      "widgets_values_named": {
        "model": "jev-1.14.0",
        "question": "Is there a person in the image?",
        "threshold": 0.5
      },
      "color": "#432",
      "bgcolor": "#653"
    },
    {
      "id": 4,
      "type": "PreviewAny",
      "pos": [
        950,
        1150
      ],
      "size": [
        210,
        130
      ],
      "flags": {},
      "order": 17,
      "mode": 0,
      "inputs": [
        {
          "name": "source",
          "type": "*",
          "link": 2
        }
      ],
      "outputs": [
        {
          "name": "STRING",
          "type": "STRING",
          "links": null
        }
      ],
      "properties": {
        "Node name for S&R": "PreviewAny"
      },
      "widgets_values": [],
      "widgets_values_named": {}
    },
    {
      "id": 5,
      "type": "PreviewAny",
      "pos": [
        950,
        1410
      ],
      "size": [
        210,
        130
      ],
      "flags": {},
      "order": 18,
      "mode": 0,
      "inputs": [
        {
          "name": "source",
          "type": "*",
          "link": 3
        }
      ],
      "outputs": [
        {
          "name": "STRING",
          "type": "STRING",
          "links": null
        }
      ],
      "properties": {
        "Node name for S&R": "PreviewAny"
      },
      "widgets_values": [],
      "widgets_values_named": {}
    },
    {
      "id": 6,
      "type": "PreviewAny",
      "pos": [
        950,
        1670
      ],
      "size": [
        210,
        130
      ],
      "flags": {},
      "order": 19,
      "mode": 0,
      "inputs": [
        {
          "name": "source",
          "type": "*",
          "link": 4
        }
      ],
      "outputs": [
        {
          "name": "STRING",
          "type": "STRING",
          "links": null
        }
      ],
      "properties": {
        "Node name for S&R": "PreviewAny"
      },
      "widgets_values": [],
      "widgets_values_named": {}
    },
    {
      "id": 8,
      "type": "LoadImage",
      "pos": [
        1460,
        1150
      ],
      "size": [
        320,
        340
      ],
      "flags": {},
      "order": 6,
      "mode": 0,
      "inputs": [],
      "outputs": [
        {
          "name": "IMAGE",
          "type": "IMAGE",
          "links": [
            5,
            10
          ]
        },
        {
          "name": "MASK",
          "type": "MASK",
          "links": null
        }
      ],
      "properties": {
        "Node name for S&R": "LoadImage"
      },
      "widgets_values": [
        "girl_red_umbrella_station.png",
        "image"
      ],
      "widgets_values_named": {
        "image": "girl_red_umbrella_station.png",
        "upload": "image"
      }
    },
    {
      "id": 9,
      "type": "LoadImage",
      "pos": [
        1460,
        1620
      ],
      "size": [
        320,
        340
      ],
      "flags": {},
      "order": 7,
      "mode": 0,
      "inputs": [],
      "outputs": [
        {
          "name": "IMAGE",
          "type": "IMAGE",
          "links": [
            6,
            11
          ]
        },
        {
          "name": "MASK",
          "type": "MASK",
          "links": null
        }
      ],
      "properties": {
        "Node name for S&R": "LoadImage"
      },
      "widgets_values": [
        "cyclist_in_rain_night_street.png",
        "image"
      ],
      "widgets_values_named": {
        "image": "cyclist_in_rain_night_street.png",
        "upload": "image"
      }
    },
    {
      "id": 10,
      "type": "TypeSafeJevScore",
      "pos": [
        1860,
        1250
      ],
      "size": [
        400,
        220
      ],
      "flags": {},
      "order": 13,
      "mode": 0,
      "inputs": [
        {
          "name": "images.image_1",
          "shape": 7,
          "type": "IMAGE",
          "link": 5
        },
        {
          "name": "images.image_2",
          "shape": 7,
          "type": "IMAGE",
          "link": null
        },
        {
          "name": "text",
          "shape": 7,
          "type": "STRING",
          "link": null
        }
      ],
      "outputs": [
        {
          "name": "result",
          "type": "BOOLEAN",
          "links": null
        },
        {
          "name": "score",
          "type": "FLOAT",
          "links": [
            7
          ]
        }
      ],
      "properties": {
        "Node name for S&R": "TypeSafeJevScore"
      },
      "widgets_values": [
        "jev-1.14.0",
        "Rate the technical quality of the image from 1 (worst) to 10 (best).",
        5
      ],
      "widgets_values_named": {
        "model": "jev-1.14.0",
        "question": "Rate the technical quality of the image from 1 (worst) to 10 (best).",
        "threshold": 5
      },
      "color": "#432",
      "bgcolor": "#653"
    },
    {
      "id": 11,
      "type": "TypeSafeJevScore",
      "pos": [
        1860,
        1610
      ],
      "size": [
        400,
        220
      ],
      "flags": {},
      "order": 14,
      "mode": 0,
      "inputs": [
        {
          "name": "images.image_1",
          "shape": 7,
          "type": "IMAGE",
          "link": 6
        },
        {
          "name": "images.image_2",
          "shape": 7,
          "type": "IMAGE",
          "link": null
        },
        {
          "name": "text",
          "shape": 7,
          "type": "STRING",
          "link": null
        }
      ],
      "outputs": [
        {
          "name": "result",
          "type": "BOOLEAN",
          "links": null
        },
        {
          "name": "score",
          "type": "FLOAT",
          "links": [
            8
          ]
        }
      ],
      "properties": {
        "Node name for S&R": "TypeSafeJevScore"
      },
      "widgets_values": [
        "jev-1.14.0",
        "Rate the technical quality of the image from 1 (worst) to 10 (best).",
        5
      ],
      "widgets_values_named": {
        "model": "jev-1.14.0",
        "question": "Rate the technical quality of the image from 1 (worst) to 10 (best).",
        "threshold": 5
      },
      "color": "#432",
      "bgcolor": "#653"
    },
    {
      "id": 12,
      "type": "ComfyMathExpression",
      "pos": [
        2340,
        1370
      ],
      "size": [
        400,
        150
      ],
      "flags": {},
      "order": 20,
      "mode": 0,
      "inputs": [
        {
          "name": "values.a",
          "type": "FLOAT,INT,BOOLEAN",
          "link": 7
        },
        {
          "name": "values.b",
          "shape": 7,
          "type": "FLOAT,INT,BOOLEAN",
          "link": 8
        },
        {
          "name": "values.c",
          "shape": 7,
          "type": "FLOAT,INT,BOOLEAN",
          "link": null
        }
      ],
      "outputs": [
        {
          "name": "FLOAT",
          "type": "FLOAT",
          "links": null
        },
        {
          "name": "INT",
          "type": "INT",
          "links": null
        },
        {
          "name": "BOOL",
          "type": "BOOLEAN",
          "links": [
            9
          ]
        }
      ],
      "properties": {
        "Node name for S&R": "ComfyMathExpression"
      },
      "widgets_values": [
        "a > b"
      ],
      "widgets_values_named": {
        "expression": "a > b"
      }
    },
    {
      "id": 13,
      "type": "ComfySwitchNode",
      "pos": [
        2410,
        1640
      ],
      "size": [
        250,
        80
      ],
      "flags": {},
      "order": 25,
      "mode": 0,
      "inputs": [
        {
          "name": "on_false",
          "shape": 7,
          "type": "IMAGE",
          "link": 11
        },
        {
          "name": "on_true",
          "shape": 7,
          "type": "IMAGE",
          "link": 10
        },
        {
          "name": "switch",
          "type": "BOOLEAN",
          "widget": {
            "name": "switch"
          },
          "link": 9
        }
      ],
      "outputs": [
        {
          "name": "output",
          "type": "IMAGE",
          "links": [
            12
          ]
        }
      ],
      "properties": {
        "Node name for S&R": "ComfySwitchNode"
      },
      "widgets_values": [
        false
      ],
      "widgets_values_named": {
        "switch": false
      },
      "color": "#322",
      "bgcolor": "#533"
    },
    {
      "id": 14,
      "type": "PreviewImage",
      "pos": [
        2820,
        1310
      ],
      "size": [
        380,
        500
      ],
      "flags": {},
      "order": 27,
      "mode": 0,
      "inputs": [
        {
          "name": "images",
          "type": "IMAGE",
          "link": 12
        }
      ],
      "outputs": [
        {
          "name": "images",
          "type": "IMAGE",
          "links": null
        }
      ],
      "properties": {
        "Node name for S&R": "PreviewImage"
      }
    },
    {
      "id": 16,
      "type": "LoadImage",
      "pos": [
        70,
        2660
      ],
      "size": [
        320,
        340
      ],
      "flags": {},
      "order": 8,
      "mode": 0,
      "inputs": [],
      "outputs": [
        {
          "name": "IMAGE",
          "type": "IMAGE",
          "links": [
            13
          ]
        },
        {
          "name": "MASK",
          "type": "MASK",
          "links": null
        }
      ],
      "properties": {
        "Node name for S&R": "LoadImage"
      },
      "widgets_values": [
        "ramen_bowl_top_view.png",
        "image"
      ],
      "widgets_values_named": {
        "image": "ramen_bowl_top_view.png",
        "upload": "image"
      }
    },
    {
      "id": 17,
      "type": "TypeSafeJevChoice",
      "pos": [
        470,
        2680
      ],
      "size": [
        400,
        240
      ],
      "flags": {},
      "order": 15,
      "mode": 0,
      "inputs": [
        {
          "name": "images.image_1",
          "shape": 7,
          "type": "IMAGE",
          "link": 13
        },
        {
          "name": "images.image_2",
          "shape": 7,
          "type": "IMAGE",
          "link": null
        },
        {
          "name": "text",
          "shape": 7,
          "type": "STRING",
          "link": null
        }
      ],
      "outputs": [
        {
          "name": "choice",
          "type": "STRING",
          "links": [
            14
          ]
        },
        {
          "name": "option_index",
          "type": "INT",
          "links": [
            15
          ]
        },
        {
          "name": "confidence",
          "type": "FLOAT",
          "links": [
            16
          ]
        }
      ],
      "properties": {
        "Node name for S&R": "TypeSafeJevChoice"
      },
      "widgets_values": [
        "jev-1.14.0",
        "What style is the image?",
        "photo\nillustration\n3d render\nanime\nsketch\nother"
      ],
      "widgets_values_named": {
        "model": "jev-1.14.0",
        "question": "What style is the image?",
        "options": "photo\nillustration\n3d render\nanime\nsketch\nother"
      },
      "color": "#432",
      "bgcolor": "#653"
    },
    {
      "id": 18,
      "type": "PreviewAny",
      "pos": [
        950,
        2480
      ],
      "size": [
        210,
        130
      ],
      "flags": {},
      "order": 21,
      "mode": 0,
      "inputs": [
        {
          "name": "source",
          "type": "*",
          "link": 14
        }
      ],
      "outputs": [
        {
          "name": "STRING",
          "type": "STRING",
          "links": null
        }
      ],
      "properties": {
        "Node name for S&R": "PreviewAny"
      },
      "widgets_values": [],
      "widgets_values_named": {}
    },
    {
      "id": 19,
      "type": "PreviewAny",
      "pos": [
        950,
        2750
      ],
      "size": [
        210,
        130
      ],
      "flags": {},
      "order": 22,
      "mode": 0,
      "inputs": [
        {
          "name": "source",
          "type": "*",
          "link": 15
        }
      ],
      "outputs": [
        {
          "name": "STRING",
          "type": "STRING",
          "links": null
        }
      ],
      "properties": {
        "Node name for S&R": "PreviewAny"
      },
      "widgets_values": [],
      "widgets_values_named": {}
    },
    {
      "id": 20,
      "type": "PreviewAny",
      "pos": [
        950,
        3010
      ],
      "size": [
        210,
        130
      ],
      "flags": {},
      "order": 23,
      "mode": 0,
      "inputs": [
        {
          "name": "source",
          "type": "*",
          "link": 16
        }
      ],
      "outputs": [
        {
          "name": "STRING",
          "type": "STRING",
          "links": null
        }
      ],
      "properties": {
        "Node name for S&R": "PreviewAny"
      },
      "widgets_values": [],
      "widgets_values_named": {}
    },
    {
      "id": 22,
      "type": "LoadImage",
      "pos": [
        1460,
        2480
      ],
      "size": [
        320,
        340
      ],
      "flags": {},
      "order": 9,
      "mode": 0,
      "inputs": [],
      "outputs": [
        {
          "name": "IMAGE",
          "type": "IMAGE",
          "links": [
            17
          ]
        },
        {
          "name": "MASK",
          "type": "MASK",
          "links": null
        }
      ],
      "properties": {
        "Node name for S&R": "LoadImage"
      },
      "widgets_values": [
        "ramen_bowl_top_view.png",
        "image"
      ],
      "widgets_values_named": {
        "image": "ramen_bowl_top_view.png",
        "upload": "image"
      }
    },
    {
      "id": 23,
      "type": "LoadImage",
      "pos": [
        1460,
        2920
      ],
      "size": [
        320,
        340
      ],
      "flags": {},
      "order": 10,
      "mode": 0,
      "inputs": [],
      "outputs": [
        {
          "name": "IMAGE",
          "type": "IMAGE",
          "links": [
            18
          ]
        },
        {
          "name": "MASK",
          "type": "MASK",
          "links": null
        }
      ],
      "properties": {
        "Node name for S&R": "LoadImage"
      },
      "widgets_values": [
        "cyclist_in_rain_night_street.png",
        "image"
      ],
      "widgets_values_named": {
        "image": "cyclist_in_rain_night_street.png",
        "upload": "image"
      }
    },
    {
      "id": 24,
      "type": "BatchImagesNode",
      "pos": [
        1930,
        2730
      ],
      "size": [
        180,
        100
      ],
      "flags": {},
      "order": 16,
      "mode": 0,
      "inputs": [
        {
          "name": "images.image0",
          "type": "IMAGE",
          "link": 17
        },
        {
          "name": "images.image1",
          "shape": 7,
          "type": "IMAGE",
          "link": 18
        },
        {
          "name": "images.image2",
          "shape": 7,
          "type": "IMAGE",
          "link": null
        }
      ],
      "outputs": [
        {
          "name": "IMAGE",
          "type": "IMAGE",
          "links": [
            19,
            27
          ]
        }
      ],
      "properties": {
        "Node name for S&R": "BatchImagesNode"
      }
    },
    {
      "id": 25,
      "type": "TypeSafeJevPickImage",
      "pos": [
        2340,
        2530
      ],
      "size": [
        400,
        220
      ],
      "flags": {},
      "order": 24,
      "mode": 0,
      "inputs": [
        {
          "name": "images",
          "type": "IMAGE",
          "link": 19
        },
        {
          "name": "text",
          "shape": 7,
          "type": "STRING",
          "link": 26
        }
      ],
      "outputs": [
        {
          "name": "index",
          "type": "INT",
          "links": [
            28
          ]
        },
        {
          "name": "confidence",
          "type": "FLOAT",
          "links": null
        }
      ],
      "properties": {
        "Node name for S&R": "TypeSafeJevPickImage"
      },
      "widgets_values": [
        "jev-1.14.0",
        "Which image best matches the prompt in text? If there is no text, which image has the best quality?"
      ],
      "widgets_values_named": {
        "model": "jev-1.14.0",
        "question": "Which image best matches the prompt in text? If there is no text, which image has the best quality?"
      },
      "color": "#432",
      "bgcolor": "#653"
    },
    {
      "id": 29,
      "type": "PreviewImage",
      "pos": [
        2820,
        2620
      ],
      "size": [
        380,
        500
      ],
      "flags": {},
      "order": 29,
      "mode": 0,
      "inputs": [
        {
          "name": "images",
          "type": "IMAGE",
          "link": 29
        }
      ],
      "outputs": [
        {
          "name": "images",
          "type": "IMAGE",
          "links": null
        }
      ],
      "properties": {
        "Node name for S&R": "PreviewImage"
      }
    },
    {
      "id": 31,
      "type": "PrimitiveStringMultiline",
      "pos": [
        1870,
        2930
      ],
      "size": [
        400,
        200
      ],
      "flags": {},
      "order": 11,
      "mode": 0,
      "inputs": [],
      "outputs": [
        {
          "name": "STRING",
          "type": "STRING",
          "links": [
            26
          ]
        }
      ],
      "properties": {
        "Node name for S&R": "PrimitiveStringMultiline"
      },
      "widgets_values": [
        "a bowl of ramen with a soft-boiled egg, shot from above"
      ],
      "widgets_values_named": {
        "value": "a bowl of ramen with a soft-boiled egg, shot from above"
      }
    },
    {
      "id": 32,
      "type": "ImageFromBatch",
      "pos": [
        2340,
        2860
      ],
      "size": [
        400,
        110
      ],
      "flags": {},
      "order": 26,
      "mode": 0,
      "inputs": [
        {
          "name": "image",
          "type": "IMAGE",
          "link": 27
        },
        {
          "name": "batch_index",
          "type": "INT",
          "widget": {
            "name": "batch_index"
          },
          "link": 28
        }
      ],
      "outputs": [
        {
          "name": "IMAGE",
          "type": "IMAGE",
          "links": [
            29
          ]
        }
      ],
      "properties": {
        "Node name for S&R": "ImageFromBatch"
      },
      "widgets_values": [
        0,
        1
      ]
    }
  ],
  "links": [
    [
      2,
      3,
      0,
      4,
      0,
      "BOOLEAN"
    ],
    [
      3,
      3,
      1,
      5,
      0,
      "STRING"
    ],
    [
      4,
      3,
      2,
      6,
      0,
      "FLOAT"
    ],
    [
      9,
      12,
      2,
      13,
      2,
      "BOOLEAN"
    ],
    [
      10,
      8,
      0,
      13,
      1,
      "IMAGE"
    ],
    [
      11,
      9,
      0,
      13,
      0,
      "IMAGE"
    ],
    [
      12,
      13,
      0,
      14,
      0,
      "IMAGE"
    ],
    [
      14,
      17,
      0,
      18,
      0,
      "STRING"
    ],
    [
      15,
      17,
      1,
      19,
      0,
      "INT"
    ],
    [
      16,
      17,
      2,
      20,
      0,
      "FLOAT"
    ],
    [
      17,
      22,
      0,
      24,
      0,
      "IMAGE"
    ],
    [
      18,
      23,
      0,
      24,
      1,
      "IMAGE"
    ],
    [
      19,
      24,
      0,
      25,
      0,
      "IMAGE"
    ],
    [
      26,
      31,
      0,
      25,
      1,
      "STRING"
    ],
    [
      1,
      2,
      0,
      3,
      0,
      "IMAGE"
    ],
    [
      5,
      8,
      0,
      10,
      0,
      "IMAGE"
    ],
    [
      6,
      9,
      0,
      11,
      0,
      "IMAGE"
    ],
    [
      7,
      10,
      1,
      12,
      0,
      "FLOAT"
    ],
    [
      8,
      11,
      1,
      12,
      1,
      "FLOAT"
    ],
    [
      13,
      16,
      0,
      17,
      0,
      "IMAGE"
    ],
    [
      27,
      24,
      0,
      32,
      0,
      "IMAGE"
    ],
    [
      28,
      25,
      0,
      32,
      1,
      "INT"
    ],
    [
      29,
      32,
      0,
      29,
      0,
      "IMAGE"
    ]
  ],
  "groups": [
    {
      "id": 1,
      "title": "Case 1 · One image, one verdict",
      "bounding": [
        0,
        1060,
        1250,
        980
      ],
      "color": "#3f789e",
      "flags": {}
    },
    {
      "id": 2,
      "title": "Case 2 · Two candidates, scored and compared",
      "bounding": [
        1390,
        1060,
        1880,
        974
      ],
      "color": "#3f789e",
      "flags": {}
    },
    {
      "id": 3,
      "title": "Case 3 · Classify into your own options",
      "bounding": [
        0,
        2390,
        1250,
        940
      ],
      "color": "#3f789e",
      "flags": {}
    },
    {
      "id": 4,
      "title": "Case 4 · Pick the winner from a batch",
      "bounding": [
        1390,
        2390,
        1880,
        940
      ],
      "color": "#3f789e",
      "flags": {}
    }
  ],
  "config": {},
  "extra": {
    "ds": {
      "scale": 0.14864362802414358,
      "offset": [
        4695.714324350079,
        884.6566164450516
      ]
    },
    "frontendVersion": "1.59.10"
  },
  "version": 0.4
}
