引導式測驗 · 中等 等級

情境工程測驗

測試上下文工程與提示有何不同,為什麼上下文是一個令牌預算,以及及時載入和提示快取等技術。

相關引導路徑情境工程
問題 1 的 8

什麼最能區分上下文工程和提示工程?

預覽每個問題8 問題

當您參加測驗時,就會出現答案和解釋。

  1. 什麼最能區分上下文工程和提示工程?
    • It only concerns the wording of the user's question
    • It covers everything the model sees, including retrieved data, tool results and memory, not just the wording
    • It requires fine-tuning the model's weights
    • It applies only to image-generation models
  2. 「在中間遺失」的研究對長輸入有何啟示?
    • Models read every part of a long input equally well
    • Models ignore the beginning of their input
    • Models often use information at the start and end of a long input better than information in the middle
    • Models cannot process more than about 1,000 tokens
  3. 為什麼指南將上下文描述為預算?
    • Every token costs money and latency, and irrelevant material can distract the model
    • Providers charge a flat monthly fee for context
    • Models refuse inputs above a certain dollar amount
    • The word refers only to the compute used in training
  4. 什麼是即時載入(just‑in‑time loading)?
    • Loading the entire codebase into the window at the start of a session
    • Retraining the model whenever new data arrives
    • Caching every model output permanently
    • Giving the agent lightweight references, such as file names, and letting it fetch full content with tools when needed
  5. 為什麼將穩定的內容(如系統指示與工具定義)放在開頭且以固定順序排列會有用?
    • 讓模型更有創意
    • Every API requires this order
    • An identical prefix can be reused through prompt caching, which lowers cost and latency
    • It hides the instructions from the user
  6. Which approach to tool design does the guide recommend?
    • Tools should return all raw data so nothing is missed
    • Tools should return concise, high-signal output and support filtering or pagination
    • Many tools with overlapping descriptions give the model more choice
    • Tool descriptions should be left empty to save tokens
  7. Which statement is a misconception the guide warns about?
    • Large context windows increase cost per request
    • Tool definitions take up tokens on every turn
    • Retrieval can reduce how much text goes into the window
    • A bigger context window removes the need to curate what goes in
  8. What role do sub-agents play in context engineering?
    • They explore in their own separate context and return condensed findings to the main agent
    • They double the context window of the main agent
    • They replace the system prompt
    • They store user passwords between sessions