implementing phase 3 pipeline: gemini structured output, validation, sqlite staging
Prompt is now a template (fixes the hardcoded en/es leftovers in rules 2, 3, 15, 16, 26, 31). pipeline.ts replaces the pseudocode: wordlist normalization, skip-already-staged idempotency, batches of 20 against gemini-3.6-flash with responseSchema, raw responses persisted per batch, per-entry validation with rejection log, one transaction per word into db/staging.db. Flags: --langs --pos --max-batches --delay-ms --dry-run. Smoke run: 40/40 words staged (de+es, one batch each), 0 rejections. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
parent
303bb9388c
commit
37c978e230
12 changed files with 1477 additions and 66 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
|
@ -13,4 +13,6 @@ __pycache__/
|
|||
data-pipeline/kaikki-source-files/
|
||||
data-pipeline/db/staging.db
|
||||
data-pipeline/.env
|
||||
data-pipeline/responses/
|
||||
data-pipeline/rejections/
|
||||
.aider*
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue