Intake: an upload API or connectors (Drive, S3, wiki) put events on a queue, so processing is asynchronous and retryable.
Stages: file type detection, parsing and OCR for scans, cleaning, structure-aware chunking, optional metadata extraction with an LLM, and batched embedding.
Storage: raw files in object storage, chunks and metadata in a database, vectors in a vector store; keep a version and content hash per document.
Updates: detect changes by hash and re-embed only changed chunks; handle deletes so removed content stops being retrievable.
Reliability: idempotent steps, a dead-letter queue, per-stage metrics, and quality checks (empty text, garbled OCR).
Scale: workers autoscale on queue depth, and batched embedding calls cut cost.
Loading…