Skip to content

[Feat/#220] 이미지 매칭 이름 기반 사전처리 도입 - #221

Merged
tnals0924 merged 1 commit into
mainfrom
feat/#220-image-match-exact-preprocess
Jul 17, 2026
Merged

[Feat/#220] 이미지 매칭 이름 기반 사전처리 도입#221
tnals0924 merged 1 commit into
mainfrom
feat/#220-image-match-exact-preprocess

Conversation

@tnals0924

Copy link
Copy Markdown
Contributor

#️⃣연관된 이슈

📝작업 내용

엑셀 분석 파이프라인의 이미지 매칭 단계에서, 상품명이 후보 썸네일 이름과 정확히 일치하는 경우까지 전량 AI에 태우던 것을 개선했다.

  • ExactThumbnailMatcher 추가 — 상품명·후보 이름을 정규화(공백 축약·소문자화) 후, 같은 category 내에서 유일한 후보에만 확정 매칭. 동일 이름 후보가 여럿이면 모호한 것으로 보아 AI로 위임한다.
  • ImportJobProcessor.matchAll에서 후보를 1회 로드해 exact 매칭을 선행하고, 잔여 항목만 기존 AI 매칭기(ProductImageMatcher)로 배치 호출한다. 잔여가 없으면 AI 호출 자체가 생략된다.
  • GeminiProductImageMatcher 프롬프트의 후보 목록을 자유 텍스트(id 1=애호박)에서 JSON 구조({"candidateId": 1, "name": "애호박"})로 변경해 AI가 식별하기 쉽게 하고, 응답 스키마의 candidateId 필드명과 통일했다.

💬리뷰 요구사항(선택)

  • exact 매칭 사전처리(core)와 잔여 항목에 대한 Gemini 매칭기 양쪽에서 각각 후보를 조회해 이중 조회가 발생한다. exact 매칭으로 AI 쪽 청크가 줄어드는 효과가 있어 우선 이대로 두었는데, 후보 주입 구조로 리팩터링할지 의견 부탁드립니다.

@coderabbitai

coderabbitai Bot commented Jul 17, 2026

Copy link
Copy Markdown

Warning

Review limit reached

@tnals0924, you've reached your PR review limit, so we couldn't start this review.

Next review available in: 31 minutes

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

How can I continue?

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 reviews.

How do review limits work?

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

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, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Pro

Run ID: 70684ba6-3f81-4627-a9c1-1a27525e7cbc

📥 Commits

Reviewing files that changed from the base of the PR and between 17f2ea5 and 6ac7469.

📒 Files selected for processing (3)
  • core/src/main/kotlin/kr/dongchimi/core/product/importjob/ExactThumbnailMatcher.kt
  • core/src/main/kotlin/kr/dongchimi/core/product/importjob/worker/ImportJobProcessor.kt
  • infrastructure/client/src/main/kotlin/kr/dongchimi/client/ai/GeminiProductImageMatcher.kt

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.

@tnals0924
tnals0924 merged commit 4b69c1f into main Jul 17, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

이미지 매칭 이름 기반 사전처리 도입

1 participant