Skip to content

Conversation

@daydream-03
Copy link
Collaborator

개요

사용자가 기술 면접 질문에 대한 답변을 제출하면, OpenAI API를 활용하여 자동으로 답변을 평가하고 피드백을 제공하는 기능을 구현했습니다. 사용자 경험 향상을 위해 평가 작업은 비동기로 처리했습니다.

주요 변경사항

1. AI 답변 평가 기능 구현

  • OpenAI API를 활용한 자동 답변 평가 시스템 구축
  • 구조화된 피드백 제공 (잘한 점, 아쉬운 점, 보완 포인트, 학습 추천, 후속 질문 등)
  • 카테고리별 맞춤 평가 지원

2. 비동기 처리 도입

  • 답변 제출 시 즉시 응답 반환
  • 백그라운드에서 AI 평가 수행
  • 스레드 풀을 통한 리소스 관리

3. 도메인 모델 확장

  • Answer 엔티티에 evaluation 필드 추가
  • 평가 결과를 DB에 영구 저장

Copy link
Collaborator

@f-lab-moony f-lab-moony left a comment

Choose a reason for hiding this comment

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

고생 많으셨습니다 ~ 피드백 확인 부탁드려요 ~


return answerRepository.save(answer);
answer = answerRepository.save(answer);
answerRepository.flush();
Copy link
Collaborator

Choose a reason for hiding this comment

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

이건 무슨 역할을 하는걸까요 ?

private static final double TEMPERATURE = 0.3;
private static final int MAX_TOKENS = 1000;

public String evaluateAnswer(Question question, String answerContent) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

이 메서드 하나에서 하는 일이 너무 많은데 메서드 분리를 통해 정리를 해보면 어떨까요 ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants