MistralReader
init
- api_key (Optional[str]): The API key for the Mistral API. (default: :obj:
None
) - model (Optional[str]): The model to use for OCR. (default: :obj:
"mistral-ocr-latest"
)
_encode_file
- file_path (str): Path to the input file.
extract_text
- file_path (str): Path to the input file or a remote URL.
- is_image (bool): Whether the file or URL is an image. If True, uses image_url type instead of document_url. (default: :obj:
False
) - pages (Optional[List[int]]): Specific pages user wants to process in various formats: single number, range, or list of both. Starts from 0. (default: :obj:
None
) - include_image_base64 (Optional[bool]): Whether to include image URLs in response. (default: :obj:
None
)