"""LegacyHUB adapter for the shared Docling recognition engine.""" from __future__ import annotations from pathlib import Path from teamhub_document_recognition_engine import ( ExtractedBlock, ExtractedFigure, ExtractedPage, ExtractedTable, ExtractionResult, ) from teamhub_document_recognition_engine import extract as _engine_extract from app.config import settings def extract(pdf_path: Path) -> ExtractionResult: return _engine_extract(pdf_path, docling_ocr_enabled=settings.docling_ocr_enabled)