Skip to content
GitHub

Configuration

Loaded from the ai_workers: section of application.yaml. Environment variable prefix: LEX_AI_WORKERS__.

ai_workers:
enabled: true
batch_embedding_concurrency: 3
document_ingestion_concurrency: 3
enable_maintenance: true
dlq_check_interval: 60
KeyTypeDefaultEnv VarDescription
enabledbooltrueLEX_AI_WORKERS__ENABLEDMaster on/off switch for all background workers
batch_embedding_concurrencyint3LEX_AI_WORKERS__BATCH_EMBEDDING_CONCURRENCYConcurrency level for batch embedding execution
document_ingestion_concurrencyint3LEX_AI_WORKERS__DOCUMENT_INGESTION_CONCURRENCYConcurrency level for document parsing and chunking
enable_maintenancebooltrueLEX_AI_WORKERS__ENABLE_MAINTENANCEEnable vector store and cache maintenance tasks
dlq_check_intervalint60LEX_AI_WORKERS__DLQ_CHECK_INTERVALInterval in seconds for DLQ recovery sweeps
Terminal window
LEX_AI_WORKERS__ENABLED=true \
LEX_AI_WORKERS__BATCH_EMBEDDING_CONCURRENCY=5 \
LEX_AI_WORKERS__DLQ_CHECK_INTERVAL=120 \
python -m my_app
ai_workers:
enabled: true
batch_embedding_concurrency: 5
document_ingestion_concurrency: 5
enable_maintenance: true
dlq_check_interval: 120