Skip to content

[Feat] corpus import/embedding batch script 추가 및 분류 조회 안정화 (#38)#101

Merged
shinae1023 merged 3 commits into
mainfrom
feat/#38-mock-jobposting-with-data
Jun 18, 2026
Merged

[Feat] corpus import/embedding batch script 추가 및 분류 조회 안정화 (#38)#101
shinae1023 merged 3 commits into
mainfrom
feat/#38-mock-jobposting-with-data

Conversation

@shinae1023

Copy link
Copy Markdown
Member

✨ 어떤 이유로 PR를 하셨나요?

  • feature 병합
  • 버그 수정(아래에 issue #를 남겨주세요)
  • 코드 개선
  • 코드 수정
  • 배포
  • 기타(아래에 자세한 내용 기입해주세요)

📋 세부 내용 - 왜 해당 PR이 필요한지 작업 내용을 자세하게 설명해주세요

  • corpus 임베딩 일괄 동기화를 위한 Python 배치 스크립트 scripts/sync_corpus_embeddings.py를 추가했습니다.

  • COHERE_API_KEY 기반으로 Cohere 임베딩을 생성하고 pgvector 테이블에 upsert 하도록 구현했습니다.

  • Cohere rate limit 대응을 위해 재시도 및 backoff 로직을 추가했습니다.

  • Cohere /v2/embed 응답 파싱을 DTO 바인딩 대신 JSON 직접 파싱 방식으로 보완했습니다.

  • DetailClassification 조회 시 계층 분류를 함께 fetch 하도록 변경해 LazyInitializationException 발생 가능성을 줄였습니다.

📸 작업 화면 스크린샷

⚠️ PR하기 전에 확인해주세요

  • 로컬테스트를 진행하셨나요?
  • 머지할 브랜치를 확인하셨나요?
  • 관련 label을 선택하셨나요?

🚨 관련 이슈 번호 [#38]

@shinae1023 shinae1023 self-assigned this Jun 18, 2026
@shinae1023 shinae1023 added ✨ feat New feature or request 🐛 fix labels Jun 18, 2026
@coderabbitai

coderabbitai Bot commented Jun 18, 2026

Copy link
Copy Markdown

Warning

Review limit reached

@shinae1023, we couldn't start this review because you've reached your PR review rate limit.

More reviews will be available in 5 minutes and 44 seconds. Learn how PR review limits work.

Your organization has used up its prepaid credits, and credit purchases are no longer available. Enable the review add-on in the billing tab to keep reviews running — you're only billed for reviews past your plan's rate limits ($0.25/file).

⌛ How to resolve this issue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based credits.

🚦 How do rate limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan refill rate.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, the refill rate gradually slows as usage increases. The highest same-day bursts are limited more strictly.

Please see our Fair Usage Limits Policy for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: 7efa4b38-b4cb-43d3-bf0a-ef36e741f36f

📥 Commits

Reviewing files that changed from the base of the PR and between 3e9fb48 and 6ec4315.

📒 Files selected for processing (9)
  • README.md
  • scripts/requirements-corpus-import.txt
  • scripts/sync_corpus_embeddings.py
  • src/main/java/com/jobdri/jobdri_api/domain/classification/repository/DetailClassificationRepository.java
  • src/main/java/com/jobdri/jobdri_api/domain/jobposting/controller/ActualJobPostingController.java
  • src/main/java/com/jobdri/jobdri_api/domain/jobposting/controller/JobPostingController.java
  • src/main/java/com/jobdri/jobdri_api/domain/jobposting/controller/MockJobPostingController.java
  • src/main/java/com/jobdri/jobdri_api/domain/jobposting/service/JobPostingAiService.java
  • src/test/java/com/jobdri/jobdri_api/domain/jobposting/service/JobPostingAiServiceTest.java
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feat/#38-mock-jobposting-with-data

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@shinae1023 shinae1023 merged commit 8253a70 into main Jun 18, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

✨ feat New feature or request 🐛 fix

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant