[feat] Persist extraction result in job results#5
Merged
1000hyehyang merged 3 commits intodevfrom Apr 29, 2026
Merged
Conversation
1000hyehyang
approved these changes
Apr 29, 2026
Member
1000hyehyang
left a comment
There was a problem hiding this comment.
@KyungminPark-steck 좋습니다~ 고생 많으셨습니다!! 경민님 혹시 카카오 로컬 API로 장소 리스트 확정까지 processing-server에서 진행해주실 수 있으신가요??
Worker
-> crawl
-> HF extraction_result
-> Kakao Local 검색
-> 후보 리스트/최종 후보 저장
-> Spring Boot가 최종 결과 조회
즉, 메인 애플리케이션 서버는 최종 결과만 조회 가능하도록 역할을 분담하는 겁니다!
Contributor
Author
|
넵넵. 한 번 해보겠습니다. 그런데 후보 리스트/최종 후보 저장이란 건 검색한 결과에서 (검색이 잘 되었다고 할 때) 장소명?만 가져오는 걸까요, 아니면 저희가 논의했던 category_group_code 포함해서 정보들을 가져오는 것일까요? |
Member
|
@KyungminPark-steck 넵 category_group(존재한다면) + category_name(이 친구는 매 요청마다 존재하는 것으로 확인) 이 두 개도 포함해서 불러와주시면 애플리케이션 서버에서 최종 조회 시 저희가 지정한 최종 카테고리로 매핑을 해주면 될 것 같아요! |
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.
✨ 무엇을 바꿨나요?
worker extraction 단계에서 생성한
extraction_result를job_results저장/조회 흐름에 연결🔗 관련 이슈
Closes #4
📝 주요 변경 사항
job_results.extraction_resultJSONB 컬럼 추가 migration SQL 추가JobRepository.upsert_job_result()에서extraction_result저장JobRepository.get_job_result()에서extraction_result조회 및JobResultRecord매핑/jobs/{jobId}/result응답에extraction_result가 포함되는지 endpoint 테스트 추가DATABASE_URL이localhost:5432PostgreSQL을 바라보고 있으나, 현재 로컬 PostgreSQL/Docker 환경이 준비되어 있지 않아 DB/Redis worker end-to-end 확인은 진행하지 못했습니다.🧪 테스트
.\\.venv\\Scripts\\python.exe -m pytest42 passed추가로 실제 caption 9개에 대해 HF extraction smoke script를 실행해 로컬 artifact를 생성했습니다.
scripts/run_hf_extraction_samples.pyartifacts/hf_extraction_samples.json.\\.venv\\Scripts\\python.exe -m pytest→43 passed정량 평가는 아니지만, 수동 검토 결과 일부 샘플에서 가게명 추출 오류가 있어 prompt/model 개선 후보로 확인했습니다.