Evaluate data and text using Snowflake Decision in AI_COMPLETE
Snowflake Decision evaluates text and structured data against custom questions using the AI_COMPLETE function.
O que mudou
Use cases
Imagine you have a table of support tickets and need to classify the responsible department, score customer frustration, and check urgency in a single SQL query. With the snowflake-decision model accessed via AI_COMPLETE, you can:
- Choose an option from a fixed set with probabilities and confidence levels.
- Evaluate content against an ordered rubric to return a weighted score.
- Get true-or-false assessments for specific statements.
- Combine multiple evaluations in the same request.
How to use
The AI_COMPLETE function uses the snowflake-decision model to process text inputs or structured data in SQL statements.
SELECT AI_COMPLETE(
'snowflake-decision',
{
'input': 'The customer is extremely frustrated and the payment failed.',
'questions': [
{
'type': 'choice',
'name': 'department',
'options': ['finance', 'support', 'sales']
}
]
}
);
What happens in this code:
- The AI_COMPLETE function receives the snowflake-decision model identifier.
- The input dictionary defines the text to analyze and the list of structured questions.
- The selected question type (choice) picks the best option from the provided fixed set.
- The query returns the chosen option along with probabilities and the confidence score for application logic.
Limitations and requirements
- This feature is in Private Preview.
- Users must use a role that has been granted the SNOWFLAKE.CORTEX_USER database role.
- cortex ai
- ai_complete
- snowflake decision
- classification
- scoring
Snowflake Decision with AI_COMPLETE (Private Preview)
Resumo e explicação gerados por IA a partir da release note oficial. Em caso de dúvida, a documentação oficial da plataforma prevalece.
Relacionadas
- SnowflakeGA
Geração de documentos em PDF, Word e PowerPoint no Snowflake CoWork
O Snowflake CoWork agora gera arquivos PDF, Word, PowerPoint e HTML diretamente de suas análises usando a ferramenta de execução de código do Cortex Agent.
snowflake cowork · cortex agent - SnowflakePublic Preview
Cortex Agent SDK para Python e TypeScript no Snowflake
O Cortex Agent SDK permite criar aplicações que utilizam Cortex Agents e Cortex Code em Python e TypeScript.
cortex agents · python - SnowflakeAtualização
Mensagens de erro mais detalhadas na classificação de dados sensíveis
A view DATA_CLASSIFICATION_LATEST agora traz mensagens de erro específicas e códigos do Snowflake para falhas na classificação.
data governance · trust center