GES-C02試験無料問題集「Snowflake SnowPro Specialty: Gen AI Certification 認定」
A Gen AI Specialist is creating metadata for Snowflake Cortex Analyst by creating a semantic model. The relationship between the PRODUCTS and PRODUCT_SALES tables is defined as:
```yaml
relationships:
- name: sales_to_products
join_type: left_outer
relationship_type: many_to_one
left_table: PRODUCT_SALES
relationship_columns:
- left_column: PRODUCT_ID
right_column: ID
right_table: PRODUCTS
```
Which join will Cortex Analyst generate in a query that uses this model?
```sql
```yaml
relationships:
- name: sales_to_products
join_type: left_outer
relationship_type: many_to_one
left_table: PRODUCT_SALES
relationship_columns:
- left_column: PRODUCT_ID
right_column: ID
right_table: PRODUCTS
```
Which join will Cortex Analyst generate in a query that uses this model?
```sql
正解:D
解答を投票する
解説: (GoShiken メンバーにのみ表示されます)
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?
```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?
正解:B
解答を投票する
解説: (GoShiken メンバーにのみ表示されます)