compass.services.cpu#

COMPASS Ordinance CPU-bound services

Functions

read_docling_local_file(fp, **kwargs)

Read a web file using Docling in a Process Pool

read_docling_web_file(doc_bytes, url[, ...])

Read a web file using Docling in a Process Pool

read_pdf_doc(pdf_bytes, **kwargs)

Read PDF file from bytes in a Process Pool

read_pdf_doc_ocr(pdf_bytes, **kwargs)

Read PDF file using OCR (pytesseract)

read_pdf_file(pdf_fp, **kwargs)

Read local PDF file in a Process Pool

read_pdf_file_ocr(pdf_fp, **kwargs)

Read local PDF file using OCR (pytesseract)

Classes

FileLoader(**kwargs)

Class to load files in a ProcessPoolExecutor

OCRPDFLoader(**kwargs)

Loader service for OCR

ProcessPoolService(**kwargs)

Service that contains a ProcessPoolExecutor instance