A team wants to build full-text search over PDF contracts on a stage — no specific fields need to be pulled out, just the searchable text. Which function is the right starting point?
- A. SPLIT_TEXT_RECURSIVE_CHARACTER, run directly on the raw PDF bytes
- B. AI_EXTRACT, since it is the general-purpose entry point for any document task
- C. A directory table, which extracts text as a side effect of listing files
- D. PARSE_DOCUMENT (or AI_PARSE_DOCUMENT), to extract the text itself✓ Correct
Explanation
When the goal is just the text itself, PARSE_DOCUMENT is the correct and sufficient starting point. AI_EXTRACT is for structured fields (a different, narrower need), chunking needs already-extracted text to operate on, and a directory table only holds file metadata.