Bài kiểm tra có liên kết hướng dẫn · Dễ dàng Cấp độ

Câu hỏi giải thích lời nhắc hệ thống

Kiểm tra cách mã hóa lời nhắc hệ thống bằng mẫu trò chuyện, hệ thống phân cấp hướng dẫn giữa tin nhắn hệ thống và tin nhắn của người dùng, cũng như các phương pháp thực hiện để có lời nhắc an toàn, hiệu quả.

Đường dẫn hướng dẫn liên quanGiải thích về lời nhắc hệ thống
Câu hỏi 1 của 8

Lời nhắc hệ thống là gì?

Xem trước mọi câu hỏi8 câu hỏi

Câu trả lời và giải thích xuất hiện khi bạn làm bài kiểm tra.

  1. Lời nhắc hệ thống là gì?
    • The first message a user types in a chat
    • Instructions supplied in a privileged message that set the model's role, rules and context for the conversation
    • The model's training dataset
    • An error message shown when a model fails
  2. Tại sao các mô hình thường đưa ra các hướng dẫn hệ thống có trọng lượng hơn so với các yêu cầu xung đột của người dùng?
    • A hard-coded rule in the API server deletes conflicting user messages
    • System prompts use a different programming language
    • System prompts are processed by a separate model
    • The models were trained on examples where system instructions take precedence
  3. API tin nhắn của Anthropic chấp nhận lời nhắc hệ thống như thế nào?
    • As a top-level system field
    • As a user message starting with "SYSTEM:"
    • As an uploaded file
    • Only through a web dashboard
  4. Tại sao lời nhắc hệ thống được gửi cùng với mọi yêu cầu API?
    • To verify the user's identity
    • Because the model is stateless between calls and does not remember earlier requests
    • Vì luật pháp yêu cầu
    • To train the model on each request
  5. Mẫu trò chuyện như ChatML có tác dụng gì?
    • Encrypts the conversation
    • Translates prompts into English
    • Converts the roles in a conversation into one token sequence with special tokens marking system, user and assistant segments
    • Limits responses to 100 words
  6. Which statement about system prompt security is accurate?
    • System prompts cannot be extracted under any circumstances
    • Putting API keys in the system prompt is the safest place to store them
    • Prompt injection and extraction attacks can succeed, so real security has to be enforced outside the model
    • User messages are never able to influence system-level behavior
  7. Why should static instructions come before variable content in a system prompt?
    • It lets prompt caching reuse the stable prefix, which reduces cost and latency
    • Models ignore text that comes after variable content
    • APIs reject prompts that do otherwise
    • It makes the model answer in a friendlier tone
  8. In the chain of command described in OpenAI's Model Spec, how should instructions found inside tool outputs or retrieved documents be handled?
    • They outrank platform rules
    • They are equal to developer instructions
    • They rank above user instructions but below the platform
    • They carry no authority by default and should be treated as information