Skip to content

Add eval/: WGU extraction baseline vs 22-field CTDL schema#270

Draft
manueljhc wants to merge 1 commit into
CredentialEngine:mainfrom
manueljhc:eval/wgu-extraction
Draft

Add eval/: WGU extraction baseline vs 22-field CTDL schema#270
manueljhc wants to merge 1 commit into
CredentialEngine:mainfrom
manueljhc:eval/wgu-extraction

Conversation

@manueljhc

Copy link
Copy Markdown

Evaluation of the current Credential extractor against 5 WGU program pages, scored field-by-field against on-page content and WGU's own published Registry records.

Headline: the baseline 4-field schema captures 8.3% of on-page CTDL fields; a 22-field CTDL-aligned schema on the same simplified-markdown input reaches 90.5%. The gap is almost entirely schema/prompt coverage, not model capability.

Start here → eval/REPORT.html (or REPORT.md) — results, method, ranked improvement proposal, and a design for a repeatable eval, all in one doc.

What's in eval/

REPORT.html / .md The write-up
harness/ Standalone Node runner: run.mjs, xtra-prompts.mjs (verbatim baseline from common/catalogueTypes.ts), enhanced-schema.mjs (proposed 22-field), simplify.mjs
wgu/<slug>/ One dir per credential: page.html · page-annotated.md · model-input.md · registry.json · extracted.json
scoring/ 90-cell field matrix + per-page and per-field scorecards
code-review/ Architecture notes + 10 findings with file:line references into server/ and common/
ctdl-reference/field-spec.md 30-row CTDL field checklist against Registry min-data policy

Reproduce

cd eval/harness && npm install
export ANTHROPIC_API_KEY=sk-ant-...   # or set OPENAI_API_KEY and pass --provider openai
node run.mjs bs-computer-science ../wgu/bs-computer-science/page.html

Opening as a draft for discussion — happy to reshape where this lands in the repo, or split the harness from the report if that's a better fit.

Evaluation of the current Credential extractor against 5 WGU program
pages, scored field-by-field against on-page content and WGU's published
Registry records. Baseline 4-field schema reaches 8.3% recall of on-page
CTDL fields; a 22-field schema on the same input reaches 90.5%.

- REPORT.md / REPORT.html: results, method, ranked improvement proposal
- harness/: standalone Node runner reproducing baseline + enhanced runs
- wgu/<slug>/: source HTML, model input, registry ground truth, outputs
- scoring/: 90-cell field matrix + per-page and per-field scorecards
- code-review/: architecture notes + 10 findings with file:line refs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant