Skip to main content

parse_document

Parse a document using the specified AI model.

Parameters

NameDescriptionTypeDefault
document_path (required)The path to the document to be parsed.PathNone
model (required)The AI model to use for parsing. dict: The parsed document data. ValueError: If the document path is invalid or the model is not supported.strNone

Return Value

dict