Conversation
VocabExtractRequest (sentences 입력), VocabExtractResponse (word/meaning 출력). 어려운 단어 없을 시 word/meaning 모두 빈 문자열 응답.
3문장에서 유아가 어려워할 단어 1개를 선별하고 유아 눈높이로 풀이. - gpt-4o-mini, temperature 0.3 (재현성 ↑) - 활용형 그대로 처리, 풀이 50자 이내 - 어려운 단어 없으면 word/meaning 모두 빈 문자열
3문장 입력 → 어려운 단어 1개 + 유아 풀이 응답. 실패 시 500 + VOCAB_EXTRACT_FAILED 에러 코드.
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.
🔎 관련 이슈
📋 작업 내용
app/schemas/vocab.py추가 —VocabExtractRequest/VocabExtractResponsellm_service.extract_vocab()추가 — gpt-4o-mini로 3문장에서 어려운 단어 1개 + 유아 풀이 추출app/routers/vocab.py추가 —POST /vocab/extract라우터main.py에 vocab 라우터 등록💡 알림
VocabExtractClient가 이 엔드포인트를 호출합니다 (feat: 동화 페이지 단어장 추출 도메인 구현 Back#32 참고).docker compose pull fastapi && docker compose up -d --force-recreate fastapi로 적용.✅ 체크리스트