Document Type Management
Document Types
{{ docType.name }}
{{ docType.field_count }} fields
Fields for {{ selectedDocType.name }}
{{ field.name }}
Type: {{ field.type }} {{ field.required ? '(Required)' : '' }}
Select a document type to manage its fields
Create document type
Source documents
Add documents to identify their type, then review and extract the fields.
{{ isDragging ? 'Drop to add documents' : 'Drag documents here' }}
PDF, JPEG, PNG or TIFF · Up to 50 MB per file
Documents to read
{{ selectedFiles.length }}
{{ file.name }}
{{ formatFileSize(file.size) }}
•{{ getFileType(file.name) }}
{{ file.progress || 0 }}%
Select a document type to extract standardized UN/CEFACT fields. Leave blank for auto-detection.
Field Requirements
{{ (tradeDocumentFields.statistics && tradeDocumentFields.statistics.total) || 0 }} total fieldsTechnical activity {{ captureRequests.length }} calls
Browser-to-server calls for this capture session. Credentials are excluded; file uploads show metadata only. Server-internal service calls are not included.
No requests recorded yet.
{{ entry.method }} {{ entry.path }}{{ entry.status }} · {{ entry.duration == null ? 'Running' : entry.duration + ' ms' }}
Started {{ entry.time }}
Request
{{ JSON.stringify(entry.request,null,2) }}Response
{{ JSON.stringify(entry.response,null,2) }}Processing updates
- {{ event.message }}
Processing cancelled here. Server work may continue; no returned results will be applied. Your documents remain available.
Reading your documents
Review document types before extracting fields.
Profile: {{ captureReviewProfile }}
{{ processingStatus || 'Preparing your upload...' }}
-
{{ index + 1 }}
{{ captureStageLabel(step) }}{{ currentStep > index ? 'Complete' : currentStep === index ? 'In progress' : 'Waiting' }}
{{ captureStageExplanation(step) }}
- {{ getFileType(file.name).slice(0, 4).toUpperCase() }}{{ file.name }}{{ formatFileSize(file.size) }} · {{ captureStageLabel(steps[currentStep] || '') }}
Technical activity {{ captureRequests.length }} calls
Browser-to-server calls for this capture session. Credentials are excluded; file uploads show metadata only. Server-internal service calls are not included.
No requests recorded yet.
{{ entry.method }} {{ entry.path }}{{ entry.status }} · {{ entry.duration == null ? 'Running' : entry.duration + ' ms' }}
Started {{ entry.time }}
Request
{{ JSON.stringify(entry.request,null,2) }}Response
{{ JSON.stringify(entry.response,null,2) }}Processing updates
- {{ event.message }}
This is taking longer than usual. Processing is still pending; you can cancel waiting and try again.
Confirm document types
Check the detected type for each document. This determines which fields are extracted.
Profile: {{ captureReviewProfile }}
Low confidence: please check the type
Detected: {{ reviewDetectedType(doc) }}
Check document type before extracting.
Document type changed for extraction.
View detection details
Detected type: {{ reviewDetectedType(doc) }}
Classification confidence: {{ doc.confidence }}%. This describes type detection, not extraction accuracy.
{{ doc.classification_reason }}
Select a configured document type for every document before continuing. Unclassified documents cannot provide the required fields.
No documents selected for extraction. Undo a removal or go back to add documents.
Technical activity {{ captureRequests.length }} calls
Browser-to-server calls for this capture session. Credentials are excluded; file uploads show metadata only. Server-internal service calls are not included.
No requests recorded yet.
{{ entry.method }} {{ entry.path }}{{ entry.status }} · {{ entry.duration == null ? 'Running' : entry.duration + ' ms' }}
Started {{ entry.time }}
Request
{{ JSON.stringify(entry.request,null,2) }}Response
{{ JSON.stringify(entry.response,null,2) }}Processing updates
- {{ event.message }}
Smart Document Review & Matching
Review detected documents and verify required documents
Detected Documents
Found Required Documents ({{ foundDocuments.length }})
{{ item.required ? item.required.name : 'Unknown Required Doc' }}
Missing Required Documents ({{ notFoundDocuments.length }})
{{ item.required.name }}
{{ selectedPreviewDoc?.document_type || 'Document Preview' }}
{{ selectedPreviewDoc?.fileName || 'Source document' }}
Help
Use + and − to zoom, or Ctrl / ⌘ + mouse wheel. Scroll or drag to move around. Fit page shows the whole page; Fit width makes text easier to read.
Technical details
Source: {{ selectedPreviewDoc?.fileName }}
Preview resolution: {{ previewNaturalWidth }} × {{ previewNaturalHeight }} pixels
{{ previewSourceStatus || 'Classification preview image' }}
PDF page: {{ Math.round(selectedPreviewDoc.pageWidthPoints) }} × {{ Math.round(selectedPreviewDoc.pageHeightPoints) }} points
No preview available
Extraction complete
Extraction results
Check the values and their source before populating your application.
{{ result.documentType }}
{{ result.fileName }} · {{ result.pageRange || 'Source document' }}
| Extracted field | Value | Source |
|---|---|---|
| {{ (field && field.desc) || key }} | {{ getReportFieldValue(field) ?? 'No value detected' }} |
No fields were extracted for this document. Check its document type and the selected profile’s mappings.
Document details
Document type confidence: {{ result.complianceScore }}%. This describes classification, not extracted value accuracy.
Processing time: {{ result.processingTime }} seconds.
Additional tools & technical statistics
Total processing time: {{ totalTime }} seconds.
{{ result.documentType }}
{{ result.fileName }}
{{ result.pageRange }}
Insights expanded - view full details
| File name | Pages | Document Category | Original / copy | Stamps | Endorsements | Fields | Confidence | Time | Actions |
|---|---|---|---|---|---|---|---|---|---|
|
{{ result.fileName }} |
{{ result.pageRange }} - | {{ result.documentType }} |
O: {{ getOriginalCount(result) }}
C: {{ getCopyCount(result) }}
|
{{ getStampsCount(result) }} | {{ getEndorsementsCount(result) }} | {{ result.fieldsExtracted }} | {{ normalizeConfidence(result.confidence) }}% | {{ result.processingTime }}s |
|
{{ result.documentType }}
{{ result.fileName }}
{{ result.pageRange }}
Document Intelligence Dashboard
✓ Processed
AI Enhanced
Image Quality Analysis
Processing Performance
Quality Check
{{ result.qualityTime || '0.0' }}s
OCR Processing
{{ result.ocrTime || '0.0' }}s
AI Classification
{{ result.classificationTime || '0.0' }}s
Entity Extraction
{{ result.llmTime || '0.0' }}s
Compliance Check
{{ result.complianceTime || '0.0' }}s
Processing Timeline
Upload & Quality Check
{{ result.qualityTime || '0.0' }}s
OCR Processing
{{ result.ocrTime || '0.0' }}s
AI Classification
{{ result.classificationTime || '0.0' }}s
Field Extraction
{{ result.llmTime || '0.0' }}s
Compliance Check
{{ result.complianceTime || '0.0' }}s
Document Profile
Document type
Classified with AI
Confidence
AI Certainty Level
Fields Extracted
Data Points Found
Performance Analytics
Processing Efficiency
AI Recommendations
{{ (result._rawResult?.quality_analysis?.average_metrics?.brightness_score?.percentage || 85) >= 90 ? 'Document scan quality is excellent. Continue using current scanning settings for optimal results.' : (result._rawResult?.quality_analysis?.average_metrics?.brightness_score?.percentage || 85) >= 80 ? 'Good image quality detected. Consider adjusting brightness or contrast for enhanced accuracy.' : 'Image quality could be improved. Try rescanning with better lighting or higher resolution.' }}
{{ parseFloat(result.processingTime || 0) <= 3 ? 'Excellent processing speed achieved. Your system is well-optimized for document analysis.' : parseFloat(result.processingTime || 0) <= 8 ? 'Processing time is acceptable. Consider compressing images or upgrading hardware for faster results.' : 'Processing is slower than expected. Check image size, system resources, or network connectivity.' }}
{{ normalizeConfidence(result.confidence) >= 95 ? 'Outstanding classification accuracy! The AI has identified the document type with high confidence.' : normalizeConfidence(result.confidence) >= 85 ? 'Good classification results. The document structure and content are clearly recognized.' : normalizeConfidence(result.confidence) >= 75 ? 'Moderate classification confidence. Consider manual review to verify document type accuracy.' : 'Low classification confidence detected. Manual verification is strongly recommended before processing.' }}
