Documentation IndexFetch the complete documentation index at: /docs/llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /docs/llms.txt
Use this file to discover all available pages before exploring further.
Document and image OCR
https://
MISTRAL_API_KEY
OCRAgent
from praisonaiagents import OCRAgent agent = OCRAgent() text = agent.read("https://arxiv.org/pdf/2201.04234") print(text)
result = agent.extract( "https://example.com/document.pdf", pages=[0, 1, 2], # 0-indexed include_image_base64=True ) for page in result.pages: print(page.markdown)
mistral/mistral-ocr-latest