引导式测验 · 简单 等级
系统提示解释测验
测试如何使用聊天模板对系统提示进行编码、系统和用户消息之间的指令层次结构以及安全、有效提示的实践。
问题 1 的 8
什么是系统提示符?
预览每个问题8 问题
当您参加测验时,就会出现答案和解释。
- 什么是系统提示符?
- 用户在聊天中输入的第一条消息
- 在具有特权的消息中提供的指令,用于设定模型在对话中的角色、规则和上下文
- 模型的训练数据集
- 模型失败时显示的出错消息
- 为什么模型通常给予系统指令比冲突的用户请求更重要的权重?
- API 服务器中的硬编码规则删除了冲突的用户消息
- 系统提示使用不同的编程语言
- 系统提示由单独的模型处理
- 模型是在系统指令优先的示例上进行训练的
- Anthropic的Messages API如何接受系统提示?
- 作为顶级系统字段
- 作为以 "SYSTEM:" 开头的用户消息
- 作为上传的文件
- 只能通过网页仪表板
- 为什么每次API请求都会发送系统提示?
- To verify the user's identity
- Because the model is stateless between calls and does not remember earlier requests
- 因为法律要求
- To train the model on each request
- ChatML 等聊天模板有什么作用?
- 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
- 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
- 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
- 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