Scanned contracts sit in a stage, and the team needs their text with layout preserved. Which function fits?
- Exam domain
- Cortex AI functions in SQL
- Difficulty
- Medium
- In this mock
- 5 questions on this domainPractise this domain
Why A is the answer
AI_PARSE_DOCUMENT in LAYOUT mode
AI_PARSE_DOCUMENT extracts text from documents in a stage, using OCR mode for text or LAYOUT mode for text with layout, and can also extract images.
Remember: Documents with layout: AI_PARSE_DOCUMENT.
In detail
- OCR: text only.
- LAYOUT: text and structure.
Every option, checked
Knowing why each wrong option fails is how you rule it out on exam day.
A. AI_PARSE_DOCUMENT in LAYOUT modeRight
Documents with layout: AI_PARSE_DOCUMENT.
B. AI_TRANSCRIBEWrong
AI_TRANSCRIBE handles audio and video.
C. AI_TRANSLATE in LAYOUT mode, which keeps the page structure while it convertsWrong
AI_TRANSLATE has no layout mode.
D. AI_EMBEDWrong
AI_EMBED returns vectors.
Use case
An illustrative scenario, not a real incident.
Illustrative: a legal team parses contracts with LAYOUT mode so clause headings survive for chunking.
See it in different ways
flowchart TD
Q{"Do you need structure?"}
Q -->|"Text only"| A0["OCR mode"]
Q -->|"Tables and headings"| A1["LAYOUT mode"]How to read this chart
- At "Do you need structure?": if "Text only", go to "OCR mode"; if "Tables and headings", go to "LAYOUT mode".
flowchart LR S0["Stage the files"] --> S1["AI_PARSE_DOCUMENT"] --> S2["Chunk by heading"] --> S3["Index"]
How to read this chart
- Read it in order: Stage the files, then AI_PARSE_DOCUMENT, then Chunk by heading, then Index.