mirror of
https://github.com/teamchong/pxpipe.git
synced 2026-07-22 02:02:51 +02:00
c6a0d61f00
- 3 tiers: facts-at-depth w/ distractors (50), hard near-miss distractors on 45k-char sessions (30), 3x-mutated state tracking (18); 16 unanswerable confabulation guards. claude-fable-5, real production renderer, exact-match grading, no LLM grader. - text 98/98, image 98/98, 0 wrong, 0 confabulated UNKNOWNs in either arm - README benchmark table + FINDINGS dated update; PNGs gitignored, probes/results.jsonl committed as receipts
10 lines
536 B
JavaScript
10 lines
536 B
JavaScript
import { renderTextToPngsWithCharLimit, DENSE_CONTENT_COLS, DENSE_CONTENT_CHARS_PER_IMAGE, DENSE_RENDER_STYLE } from '../../dist/core/render.js';
|
|
import { readFileSync, writeFileSync } from 'node:fs';
|
|
let pages=0;
|
|
for (let s=0; s<6; s++){
|
|
const t=readFileSync(`work3/s${s}.txt`,'utf8');
|
|
const imgs=await renderTextToPngsWithCharLimit(t, DENSE_CONTENT_COLS, DENSE_CONTENT_CHARS_PER_IMAGE, DENSE_RENDER_STYLE);
|
|
imgs.forEach((im,i)=>writeFileSync(`work3/s${s}_p${i}.png`, im.png)); pages+=imgs.length;
|
|
}
|
|
console.log('pages', pages);
|