This feature is currently in beta and only supported for Snowflake and Databricks databases. Reach out to Omni support to have this feature enabled.
AI_CLASSIFY
Classifies text into one of the provided categories. Equivalent toSNOWFLAKE.CORTEX.CLASSIFY_TEXT in Snowflake and ai_classify in Databricks.
This function accepts two arguments:
text- The text content to classifycategories- The list of categories to classify into. A minimum of two categories are required.
Syntax
Example
AI_COMPLETE
Generates a text completion from a prompt. The model is selected automatically by the warehouse. Equivalent toSNOWFLAKE.CORTEX.COMPLETE in Snowflake and ai_gen in Databricks.
This function accepts one argument:
prompt- The text prompt to generate a completion for
Syntax
Example
AI_EXTRACT
Extracts structured data from text based on specified labels. Equivalent toai_extract in Databricks. Not currently available for Snowflake.
This function accepts two arguments:
text- The text content to extract data fromlabels- The labels or questions defining what information to extract
Syntax
Example
AI_SENTIMENT
Analyzes the sentiment of text, returning a score indicating positive, negative, or neutral sentiment. Equivalent toSNOWFLAKE.CORTEX.SENTIMENT in Snowflake and ai_analyze_sentiment in Databricks.
This function accepts one argument:
text- The text content to analyze
Syntax
Example
AI_SUMMARIZE
Summarizes text content into a shorter form. Equivalent toSNOWFLAKE.CORTEX.SUMMARIZE in Snowflake and ai_summarize in Databricks.
This function accepts one argument:
text- The text content to summarize
Syntax
Example