QuestionQ58

Snowflake Gen AI & LLM Functions

A Gen AI Specialist is developing a Streamlit chatbot that uses snowflake.cortex.complete to answer user questions with this script:

Question Image

Which parameter should be added to the script so responses display incrementally in small chunks as they are generated?

  • A deadline=5
  • B stream=True
  • C options=CompleteOptions (max_tokens=5)
  • D options=CompleteOptions (response_format="increnental")
Explanation

For snowflake.cortex.complete, setting stream=True enables streaming and returns incremental text updates as they are received.

Learn more

Community Discussion

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