26 lines
1.2 KiB
Plaintext
26 lines
1.2 KiB
Plaintext
flowchart TD
|
|
A[Admin upload + Idempotency-Key] --> B[Authorization / size / MIME / structural validation]
|
|
B --> C[Store immutable original + SHA256]
|
|
C --> D[Create new document + frozen profile + queued job]
|
|
D --> E[Worker claim + lease token + heartbeat]
|
|
E --> F[Read original + verify digest / claim]
|
|
F --> G{Format / retained artifact?}
|
|
G -->|Valid retained extraction| J[Extraction artifact / faithful blocks]
|
|
G -->|DOCX / readable text| H[Direct extraction]
|
|
G -->|PDF| P[Direct text; vision for affected pages]
|
|
G -->|JPEG / PNG| V[Vision transcription]
|
|
H --> Q[Quality / provenance / bounds checks]
|
|
P --> Q
|
|
V --> Q
|
|
Q -->|Strict policy needs review| R[Retain review candidate; failed / review pending]
|
|
R -->|Approved + explicit same-job retry| E
|
|
Q -->|Accept; partial mode keeps warnings| J
|
|
Q -->|Unusable / invalid output| X[Failed; classified reason]
|
|
X -->|Eligible explicit same-job retry| E
|
|
J --> K[Group-aware chunking + search normalization]
|
|
K --> L[Bounded batched embeddings: local bge-m3]
|
|
L --> M[Atomic fenced publication: chunks + vectors]
|
|
M --> N[Document ready; inactive]
|
|
N --> O[Admin activates selected knowledge]
|
|
O --> S[Searchable: ready + active + authorized + undeleted]
|