RAG & Content Extraction
These variables are set on the Hrida.ai container. Variables marked ConfigVar are saved to the database on first start — see how ConfigVar works before changing them later.
RAG Content Extraction Engine
CONTENT_EXTRACTION_ENGINE
- Type:
str - Options:
- Leave empty to use default
external- Use external loadertika- Use a local Apache Tika serverdocling- Use Docling enginedocument_intelligence- Use Document Intelligence enginemistral_ocr- Use Mistral OCR enginedatalab_marker- Use Datalab Marker enginemineru- Use MinerU enginepaddleocr_vl- Use a PaddleOCR-vl server (requiresPADDLEOCR_VL_TOKEN; see below)
- Description: Sets the content extraction engine to use for document ingestion.
- Persistence: This environment variable is a
ConfigVarvariable.
MISTRAL_OCR_API_KEY
- Type:
str - Default:
None - Description: Specifies the Mistral OCR API key to use.
- Persistence: This environment variable is a
ConfigVarvariable.
MISTRAL_OCR_API_BASE_URL
- Type:
str - Default:
https://api.mistral.ai/v1 - Description: Configures custom Mistral OCR API endpoints for flexible deployment options, allowing users to point to self-hosted or alternative Mistral OCR instances.
- Persistence: This environment variable is a
ConfigVarvariable.
EXTERNAL_DOCUMENT_LOADER_URL
- Type:
str - Default:
None - Description: Sets the URL for the external document loader service.
- Persistence: This environment variable is a
ConfigVarvariable.
EXTERNAL_DOCUMENT_LOADER_API_KEY
- Type:
str - Default:
None - Description: Sets the API key for authenticating with the external document loader service.
- Persistence: This environment variable is a
ConfigVarvariable.
TIKA_SERVER_URL
- Type:
str - Default:
http://localhost:9998 - Description: Sets the URL for the Apache Tika server.
- Persistence: This environment variable is a
ConfigVarvariable.
DOCLING_SERVER_URL
- Type:
str - Default:
http://docling:5001 - Description: Specifies the URL for the Docling server. Requires Docling version 2.0.0 or later for full compatibility with the new parameter-based configuration system.
- Persistence: This environment variable is a
ConfigVarvariable.
Docling 2.0.0+ Required
The Docling integration has been refactored to use server-side parameter passing. If you are using Docling:
- Upgrade to Docling server version 2.0.0 or later
- Migrate all individual
DOCLING_*configuration variables to theDOCLING_PARAMSJSON object - Remove all deprecated
DOCLING_*environment variables from your configuration - Add
DOCLING_API_KEYif your server requires authentication
The old individual environment variables (DOCLING_OCR_ENGINE, DOCLING_OCR_LANG, etc.) are no longer supported and will be ignored.
DOCLING_API_KEY
- Type:
str - Default:
None - Description: Sets the API key for authenticating with the Docling server. Required when the Docling server has authentication enabled.
- Persistence: This environment variable is a
ConfigVarvariable.
DOCLING_PARAMS
-
Type:
str(JSON) -
Default:
{} -
Description: Specifies all Docling processing parameters in JSON format. This is the primary configuration method for Docling processing options. All previously individual Docling settings are now configured through this single JSON object.
Supported Parameters:
do_ocr(bool): Enable OCR processing.force_ocr(bool): Force OCR even when text layer exists.ocr_engine(str): OCR engine to use. Options:tesseract,easyocr,ocrmac,rapidocr,tesserocr.ocr_lang(list[str]): OCR language codes. Note: Format depends on engine (e.g.,["eng", "fra"]for Tesseract;["en", "fr"]for EasyOCR).pdf_backend(str): PDF processing backend. Options:dlparse_v1,dlparse_v2,dlparse_v4,pypdfium2.table_mode(str): Table extraction mode. Options:fast,accurate.pipeline(str): Processing pipeline to use. Options:fast,standard.do_picture_description(bool): Enable image description generation.picture_description_mode(str): Mode for picture descriptions. Options:local,api.picture_description_local(str): Local model configuration object for picture descriptions.picture_description_api(str): API endpoint configuration object for picture descriptions.vlm_pipeline_model_api(str): Vision-language model API configuration. (e.g.,openai://gpt-4o).
-
Example:
{
"do_ocr": true,
"ocr_engine": "tesseract",
"ocr_lang": ["eng", "fra", "deu", "spa"],
"force_ocr": false,
"pdf_backend": "dlparse_v4",
"table_mode": "accurate",
"do_picture_description": true,
"picture_description_mode": "api",
"vlm_pipeline_model_api": "openai://gpt-4o"
}dlparse vs dbparse: Note that the backend names use dlparse (Deep Learning Parse), not dbparse. For modern Docling (v2+), dlparse_v4 is generally recommended for the best balance of features.
- Persistence: This environment variable is a
ConfigVarvariable.
Migration from Individual Docling Variables
If you were previously using individual DOCLING_* environment variables (such as DOCLING_OCR_ENGINE, DOCLING_OCR_LANG, etc.), these are now deprecated. You must migrate to using DOCLING_PARAMS as a single JSON configuration object.
Example Migration:
# Old configuration (deprecated)
DOCLING_OCR_ENGINE=tesseract
DOCLING_OCR_LANG=eng,fra
DOCLING_DO_OCR=true
# New configuration (required)
DOCLING_PARAMS='{"do_ocr": true, "ocr_engine": "tesseract", "ocr_lang": "eng,fra"}'When setting this environment variable in a .env file, ensure proper JSON formatting and escape quotes as needed:
DOCLING_PARAMS="{\"do_ocr\": true, \"ocr_engine\": \"tesseract\", \"ocr_lang\": \"eng,fra,deu,spa\"}"