Skip to content

Conversation

@Ochangmin524
Copy link
Contributor

PR 제목

[Feat/Fix/Refactor/Docs/Chore 등]: 간결하게 변경 내용을 요약해주세요. (예: Feat: 사용자 로그인 기능 구현)

✨ 변경 유형 (하나 이상 선택)

  • Feat: 새로운 기능 추가
  • Fix: 버그 수정
  • Refactor: 코드 리팩토링 (기능 변경 없음)
  • Docs: 문서 업데이트 (주석, README 등)
  • Chore: 기타 변경 (빌드 설정, 라이브러리 업데이트 등)
  • Test: 테스트 코드 추가/수정

📚 변경 내용

구체적으로 어떤 변경 사항이 있는지, 왜 이러한 변경이 필요한지 설명해주세요.
(예: 사용자 회원가입 시 이메일 중복 확인 로직 추가. 기존 로직에서 누락된 부분 발견하여 수정.)

⚙️ 주요 작업 (선택 사항)

  • 새로운 API 추가 (API 명세서 링크 또는 간단한 정보)
  • 데이터베이스 스키마 변경 (변경 내용 명시)
  • 외부 라이브러리 추가/제거 (라이브러리 명시)

✅ 체크리스트

  • 코드 컨벤션을 준수했습니다.
  • 변경 사항에 대한 문서 업데이트가 필요한 경우 반영했습니다.

🔗 관련 이슈 (선택 사항)

해당 PR이 해결하는 이슈 또는 관련 있는 이슈가 있다면 링크를 걸어주세요.
(예: #123, ABC-456)

💬 기타 (선택 사항)

리뷰어에게 전달하고 싶은 추가 정보나 궁금한 점이 있다면 작성해주세요.

@Ochangmin524 Ochangmin524 self-assigned this Jan 8, 2026
@Ochangmin524 Ochangmin524 added the 🐛 버그 버그 발생 label Jan 8, 2026
@Ochangmin524 Ochangmin524 linked an issue Jan 8, 2026 that may be closed by this pull request
@gemini-code-assist
Copy link

Summary of Changes

Hello @Ochangmin524, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

이 PR은 아이디어 생성 과정에서 사용되는 source_id 필드의 데이터 타입 불일치 문제를 해결합니다. 기존에 int로 처리되던 source_idstr로 통일함으로써, 데이터 처리의 안정성과 일관성을 향상시키는 것이 주된 목적입니다.

Highlights

  • source_id 데이터 타입 변경: 아이디어 생성 로직에서 source_id 필드의 데이터 타입을 int에서 str으로 변경하여 데이터 처리의 일관성을 확보했습니다.

🧠 New Feature in Public Preview: You can now enable Memory to help Gemini Code Assist learn from your team's feedback. This makes future code reviews more consistent and personalized to your project's style. Click here to enable Memory in your admin console.

Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

Copy link

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

이 PR은 아이디어 생성 시 유사 콘텐츠를 검색할 때 source_id의 타입을 문자열로 변경합니다. source_id를 문자열로 사용하는 것은 일관성을 위해 좋은 방향이지만, 관련된 데이터가 여전히 정수형 source_id로 저장되는 심각한 불일치 문제를 발견했습니다. 이로 인해 아이디어 추천 기능이 올바르게 동작하지 않을 수 있습니다. 자세한 내용은 아래 리뷰 의견을 참고하여 수정이 필요합니다.


video_embedding = await self.content_chunk_repository.generate_embedding(query_text)
meta_data = {"query_embedding": str(video_embedding), "source_id": int(channel.channel_hash_tag.value)}
meta_data = {"query_embedding": str(video_embedding), "source_id": str(channel.channel_hash_tag.value)}

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

critical

source_id를 문자열로 변환하는 것은 올바른 방향입니다. 하지만 get_popular_videos 메서드(129행)에서는 content_chunk를 저장할 때 source_idint로 저장하고 있습니다:

# external/rag/rag_service_impl.py:129
source_id=int(category.value)

데이터를 저장할 때는 정수형으로, 검색할 때는 문자열로 source_id를 사용하면 search_similar_by_embedding이 의도한 대로 동작하지 않고 유사한 청크를 찾지 못할 가능성이 매우 높습니다. 데이터 저장과 검색 시 source_id의 타입을 일관되게 문자열로 사용하도록 get_popular_videos 메서드도 함께 수정해야 합니다.

@github-actions
Copy link

github-actions bot commented Jan 8, 2026

🤖 Gemini AI 코드 리뷰

❌ Gemini API 호출 실패: 최대 재시도 횟수 초과


이 리뷰는 Gemini AI가 자동으로 생성했습니다. 참고용으로만 활용해주세요.

@github-actions
Copy link

github-actions bot commented Jan 8, 2026

🤖 Gemini AI 코드 리뷰

❌ Gemini API 호출 실패: 최대 재시도 횟수 초과


이 리뷰는 Gemini AI가 자동으로 생성했습니다. 참고용으로만 활용해주세요.

@yujin9907 yujin9907 changed the title [CHORE] 아이디어 생성 시, source_id str으로 수정 [CHORE] 아이디어 생성 시, source_id str으로 수정 => source_id str에서 int 타입 변경 Jan 9, 2026
@yujin9907 yujin9907 merged commit 304ebf2 into develop Jan 9, 2026
1 check 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.

[BUG]: 아이디어 생성 시 source_id string 값으로 수정

3 participants