- troubleshooting: LLM 호출 최적화(경로별·할당량), 의도 프롬프트 313 정리 - 251023 전체 완료 → plans/archive 이동, README 갱신 Co-authored-by: Cursor <cursoragent@cursor.com>
23 lines
1.1 KiB
Markdown
23 lines
1.1 KiB
Markdown
# 의도 분류 프롬프트 313 정리 (251023 계획 5번)
|
|
|
|
**날짜**: 2026-02-03
|
|
**작성자**: happybell80
|
|
**관련 파일**: `rb8001/app/services/llm/intent_parser.py`, `rb8001/app/services/brain/intent/intent_analyzer.py`
|
|
|
|
---
|
|
|
|
## 313 체크리스트 반영
|
|
|
|
| 항목 | intent_parser | intent_analyzer |
|
|
|------|---------------|-----------------|
|
|
| **출력 형식 명시** | `<output_format>` 스키마 JSON 한 줄 | `<output_format>` JSON only |
|
|
| **퓨샷 예시** | `<examples>` 2건 (일정 등록, 취소) | `<examples>` 2건 (등록, "그래" 승인) |
|
|
| **구조화** | XML role/output_format/examples/constraints | XML role/categories/output_format/examples |
|
|
|
|
- 의도 분류 LLM 호출 두 곳(IntentParserLLM, IntentAnalyzer) 모두 313 원칙에 맞게 출력 형식·긍정 퓨샷·XML 구조 적용.
|
|
- 검증: 응답에서 JSON 추출 및 필드 검증은 기존 `extract_json_from_text`·IntentGoal 파싱 유지.
|
|
|
|
## 교훈
|
|
|
|
- 313: 명확한 출력 형식과 긍정적 퓨샷이 분류 품질에 유리. XML 태그로 구역 분리 시 파싱·유지보수 용이.
|