From 1b2430bb7a3922a196b359a8f927d1491d1363ec Mon Sep 17 00:00:00 2001 From: Hyoseong Jo Date: Fri, 12 Dec 2025 03:30:14 +0900 Subject: [PATCH] =?UTF-8?q?=EB=B3=80=EA=B2=BD3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/index.js | 6 +- src/views/AdminView.vue | 221 +++++++++++++++++++------- src/views/ChatView.vue | 343 +++++++++++++++++++++++++--------------- 3 files changed, 386 insertions(+), 184 deletions(-) diff --git a/src/api/index.js b/src/api/index.js index 9a38610..e5a8227 100644 --- a/src/api/index.js +++ b/src/api/index.js @@ -20,11 +20,13 @@ export const topicApi = { // 문서 API export const docApi = { getList: (topicId) => api.get(`/topics/${topicId}/documents`), - // 업로드는 Vision 처리로 오래 걸릴 수 있으므로 10분 타임아웃 + // 업로드는 즉시 응답 (비동기 처리) upload: (topicId, formData) => api.post(`/topics/${topicId}/documents/upload`, formData, { headers: { 'Content-Type': 'multipart/form-data' }, - timeout: 600000 // 10분 (600초) + timeout: 60000 // 1분 (파일 업로드만) }), + // 문서 처리 상태 조회 (폴링용) + getStatus: (docId) => api.get(`/documents/${docId}/status`), delete: (docId) => api.delete(`/documents/${docId}`), deleteAll: (topicId) => api.delete(`/topics/${topicId}/documents`), getChunks: (docId) => api.get(`/documents/${docId}/chunks`) diff --git a/src/views/AdminView.vue b/src/views/AdminView.vue index 450092a..e3564d9 100644 --- a/src/views/AdminView.vue +++ b/src/views/AdminView.vue @@ -82,30 +82,39 @@
{{ formatFileSize(doc.fileSize) }} - 청크 {{ doc.chunkCount }}개 + 청크 {{ doc.chunkCount || 0 }}개 {{ formatDate(doc.createdAt) }}
+ + +
+
+
+
+ + {{ doc.processMessage || '처리 대기중' }} ({{ doc.processProgress || 0 }}%) + +
-
+
{{ getStatusLabel(doc.docStatus) }}
- +
- -
-
-
-

문서 업로드 중...

-

문서 파싱 및 임베딩 생성에 시간이 소요됩니다.

-
-
-