How to build an LLM eval set from SEC XBRL company facts

Short answer: pull the facts in bulk, swap the bulk file's month-end dates for the filing's own dates, read segment facts from the filing's inline XBRL, compute each reference in code, re-check every cited fact against the filing, then read each question against the filing's line labels. That last step changed 13 of Tickmark Core's 149 tasks.