DoclingRemoteConverter
Base classes¶
| Name | Children | Inherits |
|---|---|---|
| DocumentConverter docler.converters.base Abstract base class for document converters. |
â‹” Inheritance diagram¶
graph TD
2042741407["provider.DoclingRemoteConverter"]
3612078605["base.DocumentConverter"]
1753584424["provider.BaseProvider"]
3481597255["typing.Generic"]
2751680898["builtins.object"]
925645236["abc.ABC"]
3612078605 --> 2042741407
1753584424 --> 3612078605
3481597255 --> 1753584424
2751680898 --> 3481597255
925645236 --> 3612078605
2751680898 --> 925645236
3481597255 --> 3612078605
🛈 DocStrings¶
Bases: DocumentConverter[DoclingRemoteConfig]
Document converter using remote Docling service.
Source code in src/docler/converters/docling_remote_provider/provider.py
45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 | |
__init__
¶
__init__(
languages: list[SupportedLanguage] | None = None,
*,
page_range: PageRangeString | None = None,
api_key: str | None = None,
endpoint: str = DEFAULT_API_ENDPOINT,
ocr_engine: DoclingEngine = "easy_ocr",
pdf_backend: PDFBackend = "dlparse_v4",
table_mode: TableMode = "fast",
force_ocr: bool = False,
image_scale: float = 2.0,
do_table_structure: bool = True,
do_code_enrichment: bool = False,
do_formula_enrichment: bool = False,
do_picture_classification: bool = False,
do_picture_description: bool = False,
timeout: float = 300.0
) -> None
Initialize the remote Docling converter.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
languages
|
list[SupportedLanguage] | None
|
List of supported languages. |
None
|
page_range
|
PageRangeString | None
|
Page range(s) to extract, like "1-5,7-10" (1-based; PDFs only) |
None
|
api_key
|
str | None
|
Optional API key for auth. |
None
|
endpoint
|
str
|
Base URL of the Docling service. |
DEFAULT_API_ENDPOINT
|
ocr_engine
|
DoclingEngine
|
OCR engine to use (sent as docling-serve's |
'easy_ocr'
|
pdf_backend
|
PDFBackend
|
PDF backend to use. |
'dlparse_v4'
|
table_mode
|
TableMode
|
Table mode to use. |
'fast'
|
force_ocr
|
bool
|
Whether to force OCR even on digital documents. |
False
|
image_scale
|
float
|
Scale factor for image resolution. |
2.0
|
do_table_structure
|
bool
|
Extract table structure. |
True
|
do_code_enrichment
|
bool
|
Enable code extraction. |
False
|
do_formula_enrichment
|
bool
|
Enable formula extraction. |
False
|
do_picture_classification
|
bool
|
Enable picture classification. |
False
|
do_picture_description
|
bool
|
Enable picture description. |
False
|
timeout
|
float
|
HTTP timeout in seconds for the conversion request. |
300.0
|
Raises:
| Type | Description |
|---|---|
MissingConfigurationError
|
If endpoint cannot be used. |