Re:Show HN: Calculate confidence score for OpenAI JSON output
by rboobesh on Thursday April 10, 2025 @11:48AM
(#43645111)
Can this work with nested JSON objects or arrays?
[ Parent
| on HN ]
Re:Show HN: Calculate confidence score for OpenAI JSON output
by QueensGambit on Thursday April 10, 2025 @11:52AM
(#43645145)
Yes, it does. It recursively walks through the JSON structure, calculating a confidence score for each individual field — whether it’s a top-level key, nested inside objects, or part of an array of objects. Each leaf field gets a {value, score} pair, and parent objects get an aggregated score based on the confidence of their children.