feat(frontend): visualize document parsing pipeline with span timeline
Renders a five-segment timeline (DocReader → Chunking → Embedding →
Multimodal → PostProcess) above each document so users can see exactly
which stage a document is in and which one failed, instead of a flat
"Parsing..." spinner.
- New KnowledgeProcessingTimeline component (full + compact mode):
full mode lives at the top of doc-content for any document not yet
in `completed`; compact mode replaces the parsing/failed lines in
the card hover popover with a five-dot mini-progress.
- Polls GET /api/v1/knowledge/:id/spans every 2s while
parse_status in {pending, processing}; stops on terminal status or
unmount. Hover popover instances opt out of polling to avoid
amplifying requests on grid hover.
- Failed / cancelled steps expand into an error card with the raw
error_message, an error_code -> localized title + suggestion mapping
for the twelve canonical codes (DOCREADER_TIMEOUT, EMBEDDING_RATE_LIMIT,
...), and a "Copy details" button that pastes the failed span JSON
for support tickets.
- Attempt selector renders only when latest_attempt > 1 so reparse
history is browsable; the latest attempt is selected by default.
- Last-error block under the timeline includes a Retry button that
calls reparseKnowledge() and immediately re-fetches.
- i18n strings added under knowledgeStages for en-US, zh-CN, ko-KR,
ru-RU. ja-JP locale file does not exist in this repository.
This commit is contained in:
@@ -394,6 +394,56 @@ export default {
|
||||
deleteSuccess: "지식이 성공적으로 삭제되었습니다!",
|
||||
chunkLoadFailed: "청크 로드 실패",
|
||||
},
|
||||
knowledgeStages: {
|
||||
title: "처리 파이프라인",
|
||||
attempt: "{n}번째 시도",
|
||||
attemptLatest: "{n}번째 시도 (최신)",
|
||||
retry: "다시 파싱",
|
||||
copyDetails: "세부정보 복사",
|
||||
copied: "클립보드에 복사됨",
|
||||
noActivity: "파싱 활동 없음",
|
||||
stage: {
|
||||
docreader: "문서 파싱",
|
||||
chunking: "청킹",
|
||||
embedding: "벡터화",
|
||||
multimodal: "멀티모달 인식",
|
||||
postprocess: "후처리",
|
||||
},
|
||||
status: {
|
||||
pending: "대기 중",
|
||||
running: "진행 중",
|
||||
done: "완료",
|
||||
failed: "실패",
|
||||
skipped: "건너뜀",
|
||||
cancelled: "취소됨",
|
||||
},
|
||||
errorCode: {
|
||||
DOCREADER_TIMEOUT: "문서 파서 시간 초과",
|
||||
DOCREADER_TIMEOUT_SUGGESTION: "파일이 너무 크거나 파서 서비스가 바쁠 수 있습니다. 나중에 다시 시도하거나 문서를 분할하세요.",
|
||||
DOCREADER_UNAVAILABLE: "문서 파서 사용 불가",
|
||||
DOCREADER_UNAVAILABLE_SUGGESTION: "파싱 서비스가 오프라인입니다. 관리자에게 문의하세요.",
|
||||
DOCREADER_PARSE_FAILED: "문서 파싱 실패",
|
||||
DOCREADER_PARSE_FAILED_SUGGESTION: "파일을 파싱할 수 없습니다. 손상되지 않았는지 확인하세요.",
|
||||
CHUNKING_FAILED: "청킹 실패",
|
||||
CHUNKING_FAILED_SUGGESTION: "지식 베이스의 청킹 구성을 조정해 보세요.",
|
||||
EMBEDDING_RATE_LIMIT: "임베딩 서비스 속도 제한",
|
||||
EMBEDDING_RATE_LIMIT_SUGGESTION: "임베딩 공급자가 요청을 제한하고 있습니다. 잠시 후 다시 시도하세요.",
|
||||
EMBEDDING_PROVIDER_FAIL: "임베딩 공급자 오류",
|
||||
EMBEDDING_PROVIDER_FAIL_SUGGESTION: "임베딩 공급자가 오류를 반환했습니다. 공급자 구성을 확인하세요.",
|
||||
VECTORSTORE_WRITE_FAILED: "벡터 저장소 쓰기 실패",
|
||||
VECTORSTORE_WRITE_FAILED_SUGGESTION: "벡터 저장소가 쓰기를 거부했습니다. 저장소 가용성을 확인하세요.",
|
||||
MULTIMODAL_VLM_FAILED: "이미지 이해 실패",
|
||||
MULTIMODAL_VLM_FAILED_SUGGESTION: "일부 이미지를 처리할 수 없습니다. 문서는 여전히 사용할 수 있습니다.",
|
||||
MULTIMODAL_ALL_FAILED: "모든 이미지의 멀티모달 처리 실패",
|
||||
MULTIMODAL_ALL_FAILED_SUGGESTION: "멀티모달 모델 구성을 확인하세요.",
|
||||
TASK_TIMEOUT: "작업이 최대 실행 시간을 초과함",
|
||||
TASK_TIMEOUT_SUGGESTION: "작업이 허용된 시간보다 오래 실행되었습니다. 재시도하거나 지원팀에 문의하세요.",
|
||||
UPSTREAM_FAILED: "상위 단계 실패로 중단됨",
|
||||
UPSTREAM_FAILED_SUGGESTION: "이전 단계가 실패하여 이 단계가 실행되지 않았습니다.",
|
||||
UNKNOWN: "알 수 없는 오류",
|
||||
UNKNOWN_SUGGESTION: "자세한 내용은 애플리케이션 로그를 확인하세요.",
|
||||
},
|
||||
},
|
||||
chat: {
|
||||
title: "대화",
|
||||
newChat: "새 대화",
|
||||
|
||||
Reference in New Issue
Block a user