Repository navigation
feat(8-material-cards): 강의 자료 · 카드 · 개념 사전 · 학습 완료 · 강의 화면 - #36
Merged
Merged
Conversation
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…· 하네스 회고 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars.
|
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



요약
TASK 8
8-material-cards— 강의를 처음 열 때 강의 자료와 카드를 LLM 호출 한 번으로 만들고, 카드 개념의 정의를 임베딩해 사용자의 개념 사전에 넣고, 학습 완료로 카드를 오늘 복습에 들이는 한 바퀴를 만든다(M1 의 「강의 → 카드」 칸). 복습(FSRS) 자체는 다음 TASK 다.build --rerun-tasks· 화면 lint · test 통과(수정 step 7~9 는 각 step 리뷰가 AC 를 다시 돌림)정한 것 (사용자 결정 — 2026-11-23)
gpt-5.6-terra, 임시 값 출력 10,000 토큰 · 시간 제한 140초 · 이어 쓰기 1번. 「종료 대기 > 모든 채팅 호출 시간 제한」을 지키려고 워커 종료 대기 150초 · Spring 종료 단계 180초 · 컨테이너stop_grace_period220초로 늘리고, 시한은 임베딩을 넣은 식으로 16분text-embedding-3-large(입력 $0.13 / 1M). 같은 개념 기준값은 0.72 — 실측(아래)6장 · 카드당 개념 13개를 프롬프트로만 지시하고, 서버는 「카드 1장 이상 · 카드마다 개념 1개 이상」만 검사(ADR-033)무엇이 바뀌었나
llm-timingapp.llm.chats.material·app.llm.embedding설정 · 임베딩 단가 · 종료 대기 사슬(150 < 170 < 180 < 220) · 시한 식에 임베딩 · 16분embedding-callEmbeddingProvider·OpenAiEmbeddingProvider(SDK 는generation.llm안) ·EmbeddingCall(호출 기록EMBEDDING· 다시 시도 없음) · 실패 분류를 채팅과 공유(OpenAiFailures) · 가짜 서버 임베딩 검사 ·TestEmbeddingProvider· 기준값 실측 시험(llmTest에만)concept-dictionaryLessonCardWriter— 카드 · 개념의 유일한 쓰기 경로(MANDATORY) · 사용자 행FOR UPDATE로 같은 사람의 동시 저장을 줄 세움 · 같은 저장의 새 개념도 판정(flush) · 한 카드의 겹친 개념 연결 하나 · pgvector 코사인 거리로 가장 가까운 하나material-generatorMaterialIntakeHandler·MaterialReader·MaterialFormat(본문 마크다운 →<!-- MOGUM_CARDS -->→ 카드 JSON) ·MaterialGenerator· 프롬프트prompts/material/· 새 codeLESSON_NOT_OPENlesson-apiGET /api/lessons/{id}(본문 / 작업 / 둘 다 없음 · 마지막으로 연 때 적기 · 작업을 걸지 않음) ·POST /api/lessons/{id}/complete(카드due_at· 코스 · 로드맵 다 마침 · 한 번만 반영 · 코스 행 잠금) ·LESSON_MATERIAL_REQUIREDmarkdown-rendererMaterialBody— react-markdown · GFM · KaTeX(trust끔) · Mermaid(필요할 때만 import ·strict) · rehype-highlight · 원본 HTML 없음 · 블록 안 가로 스크롤lesson-screenROADMAP_REPLAN_IN_PROGRESS정리crypto.randomUUID대신 카운터로(HTTP 개발 서버에서 그림이 모두 오류가 되던 것) · 학습 완료 뒤 로드맵 캐시도 비움문서 — ADR-185~187(ADR-123 · ADR-033 · ADR-181 갱신) ·
02§6 · §8.6 · §9 ·03§3 · §7 ·04§2.3 · §10 ·05§1.2 · §2 · §3 · §4 ·06§15.1 ·07§2 ·UI_GUIDE§12 · §13 ·AGENTS.md(스택 ·llmTest) ·deploy/README.md·docs/README.md.같은 개념 기준값 실측 (2026-11-23 ·
./backend/gradlew -p backend llmTest)겹쳐서 어떤 값도 한쪽이 틀린다. 잘못 묶으면 되돌릴 수 없고(ADR-050) 숙련도가 섞이므로, 다른 쌍 최댓값보다 위인 0.72 로 정했다. 대가 — 표본의 같은 쌍 15개 중 2개만 묶여 지금은 같은 개념이 사전에 따로 들어가기 쉽다. 숙련도 고리 TASK 전에 실제 흐름(같은 개념의 정의를 LLM 이 다른 강의에서 두 번 쓴 쌍)으로 다시 잰다.
배포할 때 볼 것
deploy/compose.yaml). 워커가 먼저 멈추고 Tomcat 은 그 뒤에 닫히므로 기다리는 동안 API 는 응답한다고 Spring 소스로 확인했다(실제 배포로는 확인 전)OPENAI_API_KEY가 있어야 한다(기존과 같음). 강의를 열면 강의 자료 1건마다 채팅 + 임베딩 비용이 든다브랜치 리뷰에서 고치지 않고 둔 것
LessonCardWriterIntegrationTest의 「기준값 이상이면 붙인다」 시험이 유사도 0.8 벡터에 기댄다 — 기준값을 0.8 위로 다시 잡을 때 함께 고친다LessonCardWriter가 워커 경로에서ApiException(NOT_FOUND)를 던진다 —guard가 먼저 막아 거의 닿지 않음DeployFilesTest가 시간 값 자체(150 · 180 · 220)도 단언한다🤖 Generated with Claude Code