What are the functions available in Snowflake Cortex?

74 viewsSnowflake Cortex
0

What are the functions available in Snowflake Cortex?

Daniel Steinhold Asked question April 3, 2024
0

Snowflake Cortex features are provided as SQL functions and are also available in Python. The available functions are summarized below.

  • COMPLETE: Given a prompt, returns a response that completes the prompt. This function accepts either a single prompt or a conversation with multiple prompts and responses.
  • EXTRACT_ANSWER: Given a question and unstructured data, returns the answer to the question if it can be found in the data.
  • SENTIMENT: Returns a sentiment score, from -1 to 1, representing the detected positive or negative sentiment of the given text.
  • SUMMARIZE: Returns a summary of the given text.
  • TRANSLATE: Translates given text from any supported language to any other.
Daniel Steinhold Changed status to publish April 3, 2024
Feedback on Q&A