Conversation
학생 자료 리드 인식 문제 해결
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
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. Comment |
Summary of ChangesHello, 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! 이 Pull Request는 AI 기반 면접 질문 생성 및 강의 자료 처리와 관련된 여러 개선 사항을 포함합니다. AI가 생성하는 질문의 품질을 높이기 위해 의미론적 중복 질문을 감지하는 기능을 도입했으며, 생성된 요약문에서 전문 용어 보존을 검증하는 로직을 원문 자료의 길이에 따라 유연하게 조정하도록 개선했습니다. 또한, 강의 자료에서 시각 자료를 추출할 때 적용되던 개수 제한을 없애 자료 처리의 완전성을 높였습니다. Highlights
🧠 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 AssistThe 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
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 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. Footnotes
|
| private fun courseExamIntentSignals(text: String): Set<String> { | ||
| val lowered = text.lowercase() | ||
| val intents = linkedSetOf<String>() | ||
| if (listOf("정의", "무엇", "define", "what is", "state").any { lowered.contains(it) }) intents += "DEFINITION" | ||
| if (listOf("설명", "서술", "기술", "explain", "describe").any { lowered.contains(it) }) intents += "EXPLAIN" | ||
| if (listOf("비교", "차이", "compare", "contrast", "difference").any { lowered.contains(it) }) intents += "COMPARE" | ||
| if (listOf("구하", "계산", "calculate", "compute", "find").any { lowered.contains(it) }) intents += "CALC" | ||
| if (listOf("구현", "작성", "코드", "implement", "write", "code").any { lowered.contains(it) }) intents += "BUILD" | ||
| if (listOf("맞으면", "틀리면", "고르", "선택", "choose", "select", "true or false").any { lowered.contains(it) }) intents += "SELECT" | ||
| return intents | ||
| } |
There was a problem hiding this comment.
courseExamIntentSignals 함수는 여러 if 문을 사용하여 반복적인 로직을 가지고 있습니다. Map을 사용하여 의도(intent)와 키워드를 매핑하면 코드를 더 간결하고 유지보수하기 쉽게 만들 수 있습니다. 아래와 같이 리팩토링하는 것을 제안합니다.
private fun courseExamIntentSignals(text: String): Set<String> {
val lowered = text.lowercase()
val intentKeywords = mapOf(
"DEFINITION" to listOf("정의", "무엇", "define", "what is", "state"),
"EXPLAIN" to listOf("설명", "서술", "기술", "explain", "describe"),
"COMPARE" to listOf("비교", "차이", "compare", "contrast", "difference"),
"CALC" to listOf("구하", "계산", "calculate", "compute", "find"),
"BUILD" to listOf("구현", "작성", "코드", "implement", "write", "code"),
"SELECT" to listOf("맞으면", "틀리면", "고르", "선택", "choose", "select", "true or false")
)
return intentKeywords
.filter { (_, keywords) -> keywords.any { lowered.contains(it) } }
.keys
}
📢 기능 설명
필요시 실행결과 스크린샷 첨부
연결된 issue
연결된 issue를 자동으로 닫기 위해 아래 {이슈넘버}를 입력해주세요.
close #{이슈넘버}
🩷 Approve 하기 전 확인해주세요!
✅ 체크리스트