mirror of
https://github.com/hwanny1128/HGZero.git
synced 2025-12-06 18:26:23 +00:00
✅ 구현 완료 - AI Python Service (FastAPI, Claude API, 8087 포트) - POST /api/v1/transcripts/consolidate - 참석자별 회의록 → AI 통합 분석 - 키워드/안건별 요약/Todo 추출 - Meeting Service AI 통합 - EndMeetingService (@Primary) - AIServiceClient (RestTemplate, 30초 timeout) - AI 분석 결과 저장 (meeting_analysis, todos) - 회의 상태 COMPLETED 처리 - DTO 구조 (간소화) - ConsolidateRequest/Response - MeetingEndDTO - Todo 제목만 포함 (담당자/마감일 제거) 📝 기술스택 - Python: FastAPI, anthropic 0.71.0, psycopg2 - Java: Spring Boot, RestTemplate - Claude: claude-3-5-sonnet-20241022 🔧 주요 이슈 해결 - 포트 충돌: 8086(feature/stt-ai) → 8087(feat/meeting-ai) - Bean 충돌: @Primary 추가 - YAML 문법: ai.service.url 구조 수정 - anthropic 라이브러리 업그레이드 📚 테스트 가이드 및 스크립트 작성 - claude/MEETING-AI-TEST-GUIDE.md - test-meeting-ai.sh 🤖 Generated with Claude Code Co-Authored-By: Claude <noreply@anthropic.com>
70 lines
2.5 KiB
Python
70 lines
2.5 KiB
Python
"""Keyword Models"""
|
|
from pydantic import BaseModel, Field
|
|
from typing import List
|
|
from datetime import datetime
|
|
|
|
|
|
class KeywordExtractRequest(BaseModel):
|
|
"""주요 키워드 추출 요청"""
|
|
meeting_id: str = Field(..., description="회의 ID")
|
|
transcript_text: str = Field(..., description="전체 회의록 텍스트")
|
|
max_keywords: int = Field(default=10, ge=1, le=20, description="최대 키워드 개수")
|
|
|
|
class Config:
|
|
json_schema_extra = {
|
|
"example": {
|
|
"meeting_id": "550e8400-e29b-41d4-a716-446655440000",
|
|
"transcript_text": "안건 1: 신제품 기획...\n타겟 고객을 20-30대로 설정...",
|
|
"max_keywords": 10
|
|
}
|
|
}
|
|
|
|
|
|
class ExtractedKeyword(BaseModel):
|
|
"""추출된 키워드"""
|
|
keyword: str = Field(..., description="키워드")
|
|
relevance_score: float = Field(..., ge=0.0, le=1.0, description="관련성 점수")
|
|
frequency: int = Field(..., description="출현 빈도")
|
|
category: str = Field(..., description="카테고리 (예: 기술, 전략, 일정 등)")
|
|
|
|
class Config:
|
|
json_schema_extra = {
|
|
"example": {
|
|
"keyword": "신제품기획",
|
|
"relevance_score": 0.95,
|
|
"frequency": 15,
|
|
"category": "전략"
|
|
}
|
|
}
|
|
|
|
|
|
class KeywordExtractResponse(BaseModel):
|
|
"""주요 키워드 추출 응답"""
|
|
meeting_id: str = Field(..., description="회의 ID")
|
|
keywords: List[ExtractedKeyword] = Field(..., description="추출된 키워드 목록")
|
|
total_count: int = Field(..., description="전체 키워드 개수")
|
|
extracted_at: datetime = Field(default_factory=datetime.utcnow, description="추출 시각")
|
|
|
|
class Config:
|
|
json_schema_extra = {
|
|
"example": {
|
|
"meeting_id": "550e8400-e29b-41d4-a716-446655440000",
|
|
"keywords": [
|
|
{
|
|
"keyword": "신제품기획",
|
|
"relevance_score": 0.95,
|
|
"frequency": 15,
|
|
"category": "전략"
|
|
},
|
|
{
|
|
"keyword": "예산편성",
|
|
"relevance_score": 0.88,
|
|
"frequency": 12,
|
|
"category": "재무"
|
|
}
|
|
],
|
|
"total_count": 10,
|
|
"extracted_at": "2025-01-23T10:30:00Z"
|
|
}
|
|
}
|