50 lines
1.2 KiB
Markdown
50 lines
1.2 KiB
Markdown
# 감정 분류기 Router 통합 계획
|
|
|
|
**날짜**: 2025-10-16
|
|
**목표**: 감정 분석을 대화 흐름에 통합
|
|
|
|
---
|
|
|
|
## 구현 완료
|
|
|
|
**상세**: `troubleshooting/251016_emotion_router_integration.md` 참조
|
|
- EmotionClassifier → skill-embedding 연동
|
|
- Router에 감정 분석 추가
|
|
- LLM 프롬프트에 감정 정보 전달
|
|
|
|
---
|
|
|
|
## 미구현: 감정 기반 응답 톤 자동 조정
|
|
|
|
### 현재 한계
|
|
- 감정 분석 → LLM 프롬프트 전달만
|
|
- 톤 조정은 LLM 자율 판단 (불안정)
|
|
- 명시적 규칙 없음
|
|
|
|
### 필요 작업
|
|
|
|
**감정-톤 매핑**:
|
|
```python
|
|
EMOTION_TONE_MAP = {
|
|
"fear": {"style": "reassuring", "emoji": False, "length": "short"},
|
|
"anger": {"style": "calm", "emoji": False, "length": "medium"},
|
|
"sadness": {"style": "empathetic", "emoji": True, "length": "medium"}
|
|
}
|
|
```
|
|
|
|
**LLM 시스템 프롬프트 동적 생성**:
|
|
- `services/llm/gemini_handler.py` 수정
|
|
- 감정별 톤 지시 자동 삽입
|
|
- 예: "사용자가 불안(fear)을 느낍니다. 안심시키는 톤으로 짧게 답변하세요."
|
|
|
|
**A/B 테스트**:
|
|
- ON/OFF 비교
|
|
- 사용자 만족도 측정
|
|
|
|
---
|
|
|
|
## 참고
|
|
|
|
- `troubleshooting/251016_emotion_router_integration.md`
|
|
- `311_FastAPI_구조_원칙.md`
|