mirror of
https://github.com/open-webui/open-webui
synced 2025-06-04 03:37:35 +00:00
fix: fix params DoclingLoader
This commit is contained in:
parent
0aa42615f9
commit
9d6743824e
@ -134,33 +134,8 @@ class DoclingLoader:
|
|||||||
}
|
}
|
||||||
|
|
||||||
params = {
|
params = {
|
||||||
"from_formats": [
|
|
||||||
"docx",
|
|
||||||
"pptx",
|
|
||||||
"html",
|
|
||||||
"image",
|
|
||||||
"pdf",
|
|
||||||
"asciidoc",
|
|
||||||
"md",
|
|
||||||
"csv",
|
|
||||||
"xlsx",
|
|
||||||
"xml_uspto",
|
|
||||||
"xml_jats",
|
|
||||||
"json_docling",
|
|
||||||
],
|
|
||||||
"to_formats": ["md"],
|
|
||||||
"image_export_mode": "placeholder",
|
"image_export_mode": "placeholder",
|
||||||
"do_ocr": True,
|
|
||||||
"force_ocr": False,
|
|
||||||
"ocr_engine": "easyocr",
|
|
||||||
"ocr_lang": None,
|
|
||||||
"pdf_backend": "dlparse_v2",
|
|
||||||
"table_mode": "accurate",
|
"table_mode": "accurate",
|
||||||
"abort_on_error": False,
|
|
||||||
"return_as_file": False,
|
|
||||||
"do_table_structure": True,
|
|
||||||
"include_images": True,
|
|
||||||
"images_scale": 2.0,
|
|
||||||
}
|
}
|
||||||
|
|
||||||
endpoint = f"{self.url}/v1alpha/convert/file"
|
endpoint = f"{self.url}/v1alpha/convert/file"
|
||||||
|
Loading…
Reference in New Issue
Block a user