Production use of this feature is only available on specific Maia plans. Contact our Sales team for more information.
AI_PARSE_DOCUMENT supports processing of documents stored in an internal Snowflake stage or an external stage. The stage can use client-side or server-side encryption, including in accounts that use PrivateLink or other network policies that restrict public network access to stages.
The file types this component can process are determined by Snowflake. For the current list of supported file types, read the
AI_PARSE_DOCUMENT documentation.Use case
You can use this component to obtain a range of information from PDFs and image files. For example, use it to:- Automatically extract customer details from completed PDF forms.
- Extract details from scanned receipts when processing expenses.
Video example
Properties
The Snowflake database. The special value
[Environment Default] uses the database defined in the environment. Read Databases, Tables and Views - Overview to learn more.The Snowflake schema. The special value
[Environment Default] uses the schema defined in the environment. Read Database, Schema, and Share DDL to learn more.The internal stage (Snowflake managed) or external stage (such as AWS S3, Azure Blob Storage, or Google Cloud Storage) where the file to extract content from is stored.
Use a file pattern to specify and then match files based on their names or extensions. For example,
file1.pdf would return any file with that name and extension.Regular Expressions are supported. For example, .*\.pdf would match all .PDF files in a stage.- OCR: This mode is optimized for text extraction from documents. This mode is recommended when extracting content from documents that don’t have a strong semantic structure. This is the default setting.
- Layout: This mode is optimized for text and layout extraction, including elements such as tables. According to the Snowflake documentation, when using this mode, the data is returned as Markdown, and can capture the layout and structure of content elements better than OCR.
AI_PARSE_DOCUMENT documentation to learn more about Snowflake’s suggested usage of the OCR and Layout modes.