pdf-quiz-generator/backend/app
Daniel d834ac830a fix: the drafter writes all three views, and says its errors out loud
Two things, both about the AI draft nobody could tell was working.

The prompt never mentioned that a section belongs to one of three readings, so
every generated article was one long view and the other two tabs stayed empty
— on 300-odd articles. It now describes what each view is for, asks for the
high-yield one as tight lists with `==key points==` marked, says to omit the
clinical view for a topic with no bedside, and says explicitly not to
categorise or link the article, because those are an educator's judgements.

And an unknown or missing variant is read as "long", which is what every
section written before this already is.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01TqXevQJhxFrM7jJg82cgZN
2026-09-12 19:31:28 +02:00
..
middleware Add comprehensive structured logging with Loki + Grafana 2026-04-11 02:53:54 +02:00
models feat: delete an article, and a trash for the ones that were published 2026-09-12 19:31:28 +02:00
routers feat: link a whole topic to an article in one action 2026-09-12 19:31:28 +02:00
schemas feat: an account may have no password, and may set one later 2026-09-12 17:39:29 +02:00
services feat: delete an article, and a trash for the ones that were published 2026-09-12 19:31:28 +02:00
tasks fix: the drafter writes all three views, and says its errors out loud 2026-09-12 19:31:28 +02:00
utils feat: question folders, per-section notes, and two feedback paths 2026-09-12 18:37:43 +02:00
__init__.py Initial commit: PDF Quiz Generator app 2026-03-30 20:04:53 +00:00
cli.py Fix CLI argument handling for all commands 2026-04-08 20:57:58 +02:00
config.py feat: rerank what a learner is shown, with Cohere through the proxy 2026-09-12 18:23:06 +02:00
database.py Tag filtering, multi-category, bug fixes, image validation, docs 2026-04-04 22:48:26 +02:00
logging_config.py Add comprehensive structured logging with Loki + Grafana 2026-04-11 02:53:54 +02:00
main.py feat: question folders, per-section notes, and two feedback paths 2026-09-12 18:37:43 +02:00