parse_document
Parse a document using the specified AI model.
Parameters
Name | Description | Type | Default |
---|---|---|---|
document_path (required) | The path to the document to be parsed. | Path | None |
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. | str | None |
Return Value
dict