フリー問題

SnowPro Specialty: Gen AI のフリー問題 10 / 20 問目

問題文

A chat application must let the user ask follow-up questions such as "and what about last year" and get an answer that accounts for the earlier turns. Which implementation carries that context?

選択肢

  1. Send an array of role and content objects representing the conversation in chronological order, so past user prompts and assistant responses are part of the request.
  2. Put the whole conversation into a single system prompt, rebuilt from the client's own copy of the thread before each new question reaches the model.
  3. Rely on the model to remember the earlier turns, because inference sessions in Snowflake keep per-user state for the duration of the warehouse session and the history is replayed automatically, turn by turn.
  4. Store the history in a table and let the search service read it, so the retrieval layer supplies the earlier turns as passages alongside the documents it already indexes for the assistant.

解答・解説を確認するには

正解と解説の確認、回答の記録には無料登録が必要です。登録すると演習モードでフリー問題に回答し、正誤と解説をその場で確認できます。