A pipeline must return the numeric sentiment of customer reviews as a score. Which Cortex function is purpose-built for this?
- A. PARSE_DOCUMENT
- B. SENTIMENT✓ Correct
- C. COMPLETE with no instructions
- D. EMBED_TEXT_1024
Explanation
SENTIMENT returns a sentiment score for input text, purpose-built for this task. PARSE_DOCUMENT extracts text from files, EMBED_TEXT_1024 produces embeddings, and a bare COMPLETE would need careful prompting to match SENTIMENT's consistency.