QuestionQ53

Snowflake Gen AI & LLM Functions

A Gen AI Specialist needs to determine whether feedback from a recent survey was generally positive, negative, or neutral. The Specialist wants the assessment reported as either a floating-point number from –1 to +1 (inclusive) or an object with a categories field.

Which statements will produce the desired results?

Choose two
  • A SNOWFLAKE.CORTEX.CLASSIFY_TEXT (SURVEY_TEXT)
  • B SNOWFLAKE.CORTEX.COMPLETE (SURVEY_TEXT)
  • C SNOWFLAKE.CORTEX.ENTITY_SENTIMENT (SURVEY_TEXT, [‘positive’, ‘negative’, ‘neutral'])
  • D SNOWFLAKE.CORTEX.FINETUNE (SURVEY_TEXT);
  • E SNOWFLAKE.CORTEX.SENTIMENT (SURVEY_TEXT)
Explanation

SNOWFLAKE.CORTEX.SENTIMENT returns an overall sentiment score as a floating-point number from -1 to 1, where values near 1 are positive, values near -1 are negative, and values near 0 can be treated as neutral. SNOWFLAKE.CORTEX.ENTITY_SENTIMENT returns an OBJECT containing a categories field with category sentiment results.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!