Skip to guide
Deployment/Configure
Self-hosting reference

Documents, audio & editing

Configure the document parser, conversion services, audio providers, and PDF export used by the workspace.

Document parsing and OCR

OCR is on by default whenever an engine can run: every PDF and image goes to the first one in this order: Azure Document Intelligence when it is configured, then Docling while docling-serve is running (--profile ocr), then Landing AI and Datalab if configured. An engine that fails hands the document to the next one, and the PDF's own text layer is the last resort. A scan, or a PDF with scanned pages, keeps the error and is retried instead of being indexed blank. With no engine configured, PDFs are read from their text layer for free. Set provider credentials on both app and worker.

OCR_DEFAULT_PROVIDER is optional: leave it empty for that automatic order, or name a provider to try it first. NATIVE_PDF makes the text layer the default. OCR_PDF_STRATEGY=text-layer-first opts out of OCR for every PDF: a PDF with its own text layer is read from it, and only scans go to OCR.

AZURE
AZURE_DOC_INTELLIGENCE_ENDPOINT + AZURE_DOC_INTELLIGENCE_KEY. Use a paid S0 resource: the free F0 tier reads only the first two pages of each document. AZURE_DOC_INTELLIGENCE_MODEL=prebuilt-read reads text only for about a seventh of the layout model's price. Longer PDFs go in 2,000-page ranges, and throttling (429) and 5xx answers are retried.
DOCLING
Local Docling service through the document converter; enable the ocr profile. Used only while docling-serve answers its health check.
LANDING_AI
LANDING_AI_API_KEY.
DATALAB
DATALAB_API_KEY.

Use DOCUMENT_CONVERTER_URL for the current conversion service. OCR_WORKER_URL is obsolete; OCR_ROUTER_URL is a deprecated fallback.

Conversion, editing, and PDF export

Compose wires these services and local development credentials. For remote services, share the matching credential with each server and allow only the origins from which that service needs to fetch files.

Document converter
DOCUMENT_CONVERTER_URL + DOCUMENT_CONVERTER_API_KEY on clients. Server uses CONVERTER_API_KEY and ALLOWED_FETCH_ORIGINS; Compose reads CONVERTER_ALLOWED_FETCH_ORIGINS.
ADEU editing
ADEU_SERVICE_URL + ADEU_SERVICE_API_KEY. Configure ADEU_ALLOWED_FETCH_ORIGINS for app and storage origins.
Gotenberg PDF export
GOTENBERG_SERVICE_URL, GOTENBERG_SERVICE_USERNAME, and GOTENBERG_SERVICE_PASSWORD. Uses Basic auth.

Missing conversion services can surface as a typed 503 for the affected action. Health-check the service and its credentials before retrying a failed document.

Audio transcription

Cloud is the default transcription mode. Configure TRANSCRIPTION_API_BASE_URL + TRANSCRIPTION_API_KEY and TRANSCRIPTION_MODEL independently from chat when using a dedicated compatible endpoint.

For local Whisper, set TRANSCRIPTION_PROVIDER=sidecar plus TRANSCRIPTION_SERVICE_URL and TRANSCRIPTION_SERVICE_API_KEY. The service uses TRANSCRIPTION_API_KEY for the matching server credential. The production overlay requires --profile whisper, and TRANSCRIPTION_PROVIDER must be explicitly forwarded into app and worker.

Spoken responses

Text-to-speech uses GOOGLE_AI_API_KEY with Google Cloud Text-to-Speech enabled. GEMINI_TTS_VOICE selects the voice; the current default is en-US-Chirp3-HD-Kore. A chat endpoint key alone does not enable this service.

Deployment Guide — Self-Host Launchstack | Launchstack