Phase 12~13 전체 구현: Pro+ 피처 6종 + 음성 대화 + RAG + OS 자동화
Phase 12: - FileTranscriptionService: ffmpeg PCM 변환 + 30초 청크 순차 STT - MeetingSummaryService: 자막 세션 → LLM 자동 요약 + DB summaryText - DictationTemplateService: 필드별 음성 입력 상태 머신 + 프리셋 3개 Phase 13.1: - VoiceConversationService: STT→Ollama /api/chat→TTS 대화 루프 (10턴) - TTSPlaybackService: Windows SAPI 문장 단위 큐 재생 - LocalLLMService.chatStream: Ollama /api/chat 스트리밍 Phase 13.2: - RAGService: Ollama 임베딩 + SQLite 벡터 + 코사인 유사도 검색 - KnowledgeBasePage: 문서 관리 + 질문/답변 UI - PDF 파서: zlib FlateDecode 해제 + BT/ET 텍스트 추출 Phase 13.3: - VoiceActionService: LLM JSON 액션 플랜 생성 + 실행 - 프리셋 6개 (크롬/메모장/탐색기/볼륨), 위험 명령 차단 공통: IPC ~70채널, 에러코드 780-878, i18n 100+키 버그픽스: 라이선스 로컬 키 우선, i18n featureLabel, DOM 중첩
This commit is contained in:
parent
a31f96bbb8
commit
eb83682269
38 changed files with 5678 additions and 19 deletions
|
|
@ -13,7 +13,7 @@ export const history = sqliteTable(
|
|||
focusedApp: text('focused_app'),
|
||||
focusedAppName: text('focused_app_name'),
|
||||
focusedAppWindowTitle: text('focused_app_window_title'),
|
||||
mode: text('mode', { enum: ['dictation', 'translate', 'command', 'caption'] })
|
||||
mode: text('mode', { enum: ['dictation', 'translate', 'command', 'caption', 'file-transcription'] })
|
||||
.notNull()
|
||||
.default('dictation'),
|
||||
status: text('status', { enum: ['completed', 'cancelled', 'error'] })
|
||||
|
|
@ -31,7 +31,9 @@ export const history = sqliteTable(
|
|||
llmLatencyMs: integer('llm_latency_ms'),
|
||||
createdAt: integer('created_at').notNull(),
|
||||
updatedAt: integer('updated_at').notNull(),
|
||||
appVersion: text('app_version').notNull().default('1.0.0')
|
||||
appVersion: text('app_version').notNull().default('1.0.0'),
|
||||
/** Phase 12.2: 회의록 자동 요약 텍스트 (마크다운) */
|
||||
summaryText: text('summary_text'),
|
||||
},
|
||||
(table) => [
|
||||
index('idx_history_created_at').on(table.createdAt),
|
||||
|
|
@ -112,6 +114,44 @@ export const dailyUsage = sqliteTable(
|
|||
export type DailyUsageRow = typeof dailyUsage.$inferSelect
|
||||
export type NewDailyUsageRow = typeof dailyUsage.$inferInsert
|
||||
|
||||
// ── rag_documents (Phase 13.2) ──────────────────────────
|
||||
export const ragDocuments = sqliteTable(
|
||||
'rag_documents',
|
||||
{
|
||||
id: text('id').primaryKey(),
|
||||
fileName: text('file_name').notNull(),
|
||||
filePath: text('file_path').notNull(),
|
||||
fileType: text('file_type', { enum: ['txt', 'md', 'pdf', 'docx'] }).notNull(),
|
||||
chunkCount: integer('chunk_count').notNull().default(0),
|
||||
indexed: integer('indexed', { mode: 'boolean' }).notNull().default(false),
|
||||
indexedAt: integer('indexed_at'),
|
||||
addedAt: integer('added_at').notNull(),
|
||||
},
|
||||
(table) => [
|
||||
index('idx_rag_documents_added_at').on(table.addedAt),
|
||||
]
|
||||
)
|
||||
|
||||
export const ragChunks = sqliteTable(
|
||||
'rag_chunks',
|
||||
{
|
||||
id: text('id').primaryKey(),
|
||||
documentId: text('document_id').notNull(),
|
||||
content: text('content').notNull(),
|
||||
/** 임베딩 벡터 (JSON 직렬화 float[]) */
|
||||
embedding: text('embedding').notNull(),
|
||||
chunkIndex: integer('chunk_index').notNull(),
|
||||
},
|
||||
(table) => [
|
||||
index('idx_rag_chunks_document_id').on(table.documentId),
|
||||
]
|
||||
)
|
||||
|
||||
export type RAGDocumentRow = typeof ragDocuments.$inferSelect
|
||||
export type NewRAGDocumentRow = typeof ragDocuments.$inferInsert
|
||||
export type RAGChunkRow = typeof ragChunks.$inferSelect
|
||||
export type NewRAGChunkRow = typeof ragChunks.$inferInsert
|
||||
|
||||
// ── 타입 추출 ────────────────────────────────────────────
|
||||
export type History = typeof history.$inferSelect
|
||||
export type NewHistory = typeof history.$inferInsert
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue