pdf-quiz-generator/backend/app
Daniel 2a0dd56f95 Add ai_answer extraction + broader ai_decide sampling + flashcard title edit
ai_decide now samples 4 points across the section (start, 1/3, 2/3, end)
instead of just the first 30 + last 20 pages. This gives accurate strategy
detection on large documents where the answer format might be deeper in.

New ai_answer extraction mode:
- Extracts questions from Q&A-format PDFs that have no answer key
- AI picks the correct option from each question's choices
- Generates explanation using document context + medical knowledge
- Useful for PDFs like practice tests where answers were never included
- Available manually and as an ai_decide strategy

Flashcard decks can now be renamed:
- PATCH /flashcards/{deck_id} updates title
- Inline edit on FlashcardsPage with responsive layout (input full-width,
  buttons wrap under it so Cancel never overflows the card)
- Title truncates with ellipsis when not editing

Note: generate mode (textbook -> MCQs) is unchanged per user request.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-19 20:17:49 +02:00
..
middleware Add comprehensive structured logging with Loki + Grafana 2026-04-11 02:53:54 +02:00
models Suspend pauses timer; hide timer-expired attempts from history 2026-04-19 19:27:46 +02:00
routers Add ai_answer extraction + broader ai_decide sampling + flashcard title edit 2026-04-19 20:17:49 +02:00
schemas Decouple course quizzes, replace passlib, add security hardening 2026-04-06 21:31:05 +02:00
services Add ai_answer extraction + broader ai_decide sampling + flashcard title edit 2026-04-19 20:17:49 +02:00
tasks Add ai_answer extraction + broader ai_decide sampling + flashcard title edit 2026-04-19 20:17:49 +02:00
utils Persist reminders_disabled in Postgres and harden reminder scheduler 2026-04-14 04:31:03 +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 Add comprehensive structured logging with Loki + Grafana 2026-04-11 02:53:54 +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 Suspend pauses timer; hide timer-expired attempts from history 2026-04-19 19:27:46 +02:00