A Gen AI Specialist is developing an internal company chatbot that uses Streamlit and Snowflake Cortex Analyst to interpret and answer user queries against Snowflake data.
Team members need to be able to ask a question such as:
*Can you provide the sales trend for the last 6 months?*
The tool must also be able to answer follow-up questions such as:
*Can you break that down by region?*
*What factors contributed to the dip in February?*
To ensure the tool correctly interprets follow-up questions, what must be included in the API request to Cortex Analyst?
A Gen AI Specialist used the ACCOUNTADMIN role to invoke the ` < model_build_name > !PREDICT` method on a Document AI model build and received this error:
`{ "processingErrors": [ "File extension does not match actual mime type. Mime-Type: application/octet-stream" ] }`
What is the MOST LIKELY cause?
A Gen AI Specialist is using Snowflake Cortex Analyst to generate natural language responses from product sales data. Occasionally, the LLM makes up metrics that do not exist in the data set.
How should this be addressed?
A Generative AI Specialist builds a model using Python libraries. After training the model, they log it into a Snowflake Model Registry.
Where is the Model Registry stored within Snowflake?
For which Snowflake Cortex LLM functions is usage calculated from both input and output tokens? (Choose three)
The following error is received while attempting to extract details from a document with Snowflake Document AI:
`Request failed for external function DOCUMENT_EXTRACT_FEATURES$V1 with remote service error: 422`
How should this error be resolved?
A table in a pipeline has a VARCHAR column that contains free-form text responses. A Gen AI Specialist must generate three new columns from those text responses.
How should this requirement be fulfilled? (Choose two)
How does Snowflake Cortex Analyst generate suggested questions? (Choose two)
Which action is supported when using Snowflake Document AI?
A Gen AI Specialist is developing a Streamlit chatbot that uses `snowflake.cortex.complete` to answer user questions with this script:
```python
import streamlit as st
import snowflake.cortex
from snowflake.cortex import CompleteOptions
if prompt := st.chat_input("How can I help you?"):
with st.chat_message(name="User"):
st.write(prompt)
with st.chat_message("assistant"):
response = snowflake.cortex.complete(
"claude-3-5-sonnet",
[dict(role="user", content=prompt)],
)
```
Which parameter should be added to the script so responses display incrementally in small chunks as they are generated?