Fabio Polito 2 месяцев назад
Родитель
Сommit
9d6743824e
1 измененных файлов с 0 добавлено и 25 удалено
  1. 0 25
      backend/open_webui/retrieval/loaders/main.py

+ 0 - 25
backend/open_webui/retrieval/loaders/main.py

@@ -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"