diff --git a/300_architecture/database/tables.md b/300_architecture/database/tables.md index e380edf..b41d457 100644 --- a/300_architecture/database/tables.md +++ b/300_architecture/database/tables.md @@ -159,6 +159,16 @@ | timestamp | TIMESTAMPTZ | YES | | | | channel_type | VARCHAR(32) | YES | | | +### intent_* (동적 의도 레지스트리) +- **용도**: 제로샷 의도 분류 설정을 DB에서 관리 +- **관련 테이블** + - `intents`: 의도 메타데이터 (id, name, description, active, created_at, updated_at) + - `intent_prototypes`: 의도별 임베딩(pgvector) 버전/출처 기록 + - `intent_thresholds`: semantic/LLM 경로별 임계값 관리 + - `intent_path_stats`: fastpath/semantic/llm/clarify 경로 별 베타분포 파라미터(alpha, beta) 저장 + +SemanticIntentClassifier는 위 테이블에서 활성화된 의도를 불러오고, 프로토타입/임계값이 없을 경우 YAML 레지스트리로 폴백합니다. 이 구조 덕분에 신규 의도를 추가할 때 DB 레코드만 업데이트하면 서비스가 재시작 없이 최신 의도 설명을 사용할 수 있습니다. + ### news - **용도**: 뉴스 데이터 - **Primary Key**: id (UUID)