ChunkrReaderConfig
- chunk_processing (int, optional): The target chunk length. (default: :obj:
512
) - high_resolution (bool, optional): Whether to use high resolution OCR. (default: :obj:
True
) - ocr_strategy (str, optional): The OCR strategy. Defaults to ‘Auto’. (default:
'Auto'
)
init
ChunkrReader
- api_key (Optional[str], optional): The API key for Chunkr API. If not provided, it will be retrieved from the environment variable
CHUNKR_API_KEY
. (default: :obj:None
) - url (Optional[str], optional): The url to the Chunkr service. (default: :obj:
https://api.chunkr.ai/api/v1/task
) **kwargs (Any): Additional keyword arguments for request headers.
init
_pretty_print_response
- response_json (dict): The response JSON to pretty print.
_to_chunkr_configuration
- chunkr_config (ChunkrReaderConfig): The ChunkrReaderConfig to convert.