QuestionQ64

VerifiedSnowflake Gen AI & LLM Functions

To submit a request to the Snowflake Cortex Analyst REST API endpoint, which fields are required in the body of the API request?

Choose three
Explanation

The Cortex Analyst REST API request body must include a messages array, where each message specifies the role of the speaker (e.g., "user") and the content of the message (the natural language question). The request must also specify which semantic model to use by providing the stage path to the semantic model YAML file via the semantic_model_file field. Other elements such as stream (optional, controls response streaming), request ID, and suggestions are not required input fields — request IDs and suggestions are returned as part of the API response, not submitted in the request.

Learn more

Community Discussion

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