Claude XML — 30 秒上手
| Tag | 用途 |
|---|---|
<instructions> | 模型该做什么 |
<context> | 背景信息 |
<examples> / <example> | 少样本示例 |
<documents> / <document> / <source> | 带引用的 RAG 段落 |
<thinking> / <answer> | 思维链 |
<format> | 输出格式 |
| Tag | 用途 |
|---|---|
<instructions> | 模型该做什么 |
<context> | 背景信息 |
<examples> / <example> | 少样本示例 |
<documents> / <document> / <source> | 带引用的 RAG 段落 |
<thinking> / <answer> | 思维链 |
<format> | 输出格式 |