d968b2d901
- 라벨 "복습 시작" → "문제풀이" - attempts.outcome 컬럼 + selected_choice nullable (correct/wrong/unsure) - 풀이 중 정답·해설·AI·비슷한 문제 모두 비노출, 답 클릭 시 자동 진행 - "모르겠음" 5번째 옵션 추가 - 결과 화면 = 정답/틀린/모르겠음 3 카테고리 탭, 카드 클릭 expand - 틀린 → PR-3 AI 해설 (RAG) - 모르겠음 → 분야(subject+scope) 설명 AI 즉석 생성 + 캐시 (PR-9 신규) - 분야 설명 RAG: 매핑 documents 청크 + 같은 분야 다른 문제·해설 → bge-reranker - 마이그레이션 200~205 (single-statement, asyncpg 호환) Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
8 lines
323 B
SQL
8 lines
323 B
SQL
-- 201_attempts_outcome_backfill.sql (2/6)
|
|
-- 기존 attempts 의 is_correct → outcome 매핑 백필.
|
|
-- correct: is_correct=true / wrong: is_correct=false. unsure 는 신규 입력에서만 발생.
|
|
|
|
UPDATE study_question_attempts
|
|
SET outcome = CASE WHEN is_correct THEN 'correct' ELSE 'wrong' END
|
|
WHERE outcome IS NULL;
|