Skip to content

[Fix] Few-shot 유사도 임계값과 선택 품질 로그 추가 - #289

Merged
whc9999 merged 1 commit into
devfrom
fix/fewshot-selection-safety-cache
Sep 8, 2026
Merged

[Fix] Few-shot 유사도 임계값과 선택 품질 로그 추가#289
whc9999 merged 1 commit into
devfrom
fix/fewshot-selection-safety-cache

Conversation

@whc9999

@whc9999 whc9999 commented Sep 8, 2026

Copy link
Copy Markdown
Collaborator

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

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

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

  • min-similarity 설정을 추가하고 기존 min-rerank-score 설정과 호환
  • minimum-selected-count 설정을 통한 최소 선택 개수 보장
  • 임베딩 후보가 최소 개수에 미달하면 로컬 fallback 수행
  • 후보별 유사도 분포의 최고점, 최저점, 평균점 로그 추가
  • 임계값 통과 후보 개수와 적용 임계값 로그 기록
  • 유사도 정책을 Few-shot 선택 캐시 키에 반영
  • 유사도 정책을 분석 입력 fingerprint에 반영
  • 개발, 운영, 평가 환경 설정에 신규 옵션 추가
  • 임계값 필터링과 최소 개수 fallback 회귀 테스트 추가

📸 작업 화면 스크린샷

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

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

🚨 관련 이슈 번호 [#286 ]

- min-similarity 설정을 추가하고 기존 min-rerank-score 설정과 호환
- minimum-selected-count 설정을 통한 최소 선택 개수 보장
- 임베딩 후보가 최소 개수에 미달하면 로컬 fallback 수행
- 후보별 유사도 분포의 최고점, 최저점, 평균점 로그 추가
- 임계값 통과 후보 개수와 적용 임계값 로그 기록
- 유사도 정책을 Few-shot 선택 캐시 키에 반영
- 유사도 정책을 분석 입력 fingerprint에 반영
- 개발, 운영, 평가 환경 설정에 신규 옵션 추가
- 임계값 필터링과 최소 개수 fallback 회귀 테스트 추가
@whc9999 whc9999 self-assigned this Sep 8, 2026
@coderabbitai

coderabbitai Bot commented Sep 8, 2026

Copy link
Copy Markdown

Warning

Review limit reached

Next included review available in 8 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Learn how review limits work.

Review configuration:

⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Advanced

Run ID: a1943827-a750-4539-b5d4-56fe518a991f

📥 Commits

Reviewing files that changed from the base of the PR and between 6e5af85 and 8fa1e0a.

📒 Files selected for processing (8)
  • src/main/java/com/jobdri/jobdri_api/domain/analysis/service/ai/fewshot/DefaultFewShotSearchService.java
  • src/main/java/com/jobdri/jobdri_api/domain/analysis/service/ai/fewshot/FewShotProperties.java
  • src/main/java/com/jobdri/jobdri_api/domain/analysis/service/core/AnalysisInputFingerprintProvider.java
  • src/main/resources/application-analysis-eval.yaml
  • src/main/resources/application-dev.yaml
  • src/main/resources/application-prod.yaml
  • src/test/java/com/jobdri/jobdri_api/domain/analysis/service/ai/fewshot/DefaultFewShotSearchServiceTest.java
  • src/test/java/com/jobdri/jobdri_api/domain/analysis/service/core/AnalysisInputFingerprintProviderTest.java

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.

@whc9999
whc9999 merged commit 8100601 into dev Sep 8, 2026
3 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