compass.services.cpu.read_docling_local_file#
- async read_docling_local_file(fp, **kwargs)[source]#
Read a web file using Docling in a Process Pool
- Parameters:
fp (path-like) – Path to local file to read.
**kwargs – Additional keyword arguments passed to Docling’s
export_to_markdown()method.
- Returns:
elm.web.document.MDDocument– Parsed document.bytes– Raw bytes of the PDF file.