class RubyLLM::OCR

An OCR is the text a document AI model extracted from a file. RubyLLM.ocr returns one. Each page carries the extracted markdown along with any images and tables the provider reports.

ocr = RubyLLM.ocr("contract.pdf")
ocr.markdown             # => "# Contract\n\n..."
ocr.pages.first.markdown # => "# Contract\n..."