Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ Uses `ai_parse_document` to extract text, tables, and metadata from PDFs/images:

Extracts clean concatenated text using `transform()`:
- Reads from previous task's table via streaming
- Handles both parser v1.0 and v2.0 formats
- Extracts text from parsed document elements
- Uses `transform()` for efficient text extraction
- Includes error handling for failed parses

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,7 @@
"\n\n",
expr("""
transform(
CASE
WHEN try_cast(parsed:metadata:version AS STRING) = '1.0'
THEN try_cast(parsed:document:pages AS ARRAY<VARIANT>)
ELSE try_cast(parsed:document:elements AS ARRAY<VARIANT>)
END,
try_cast(parsed:document:elements AS ARRAY<VARIANT>),
element -> try_cast(element:content AS STRING)
)
"""),
Expand Down