Skip to content

Commit

Permalink
第二、三章内容补充
Browse files Browse the repository at this point in the history
  • Loading branch information
c4pr1c3 committed Jan 15, 2024
1 parent f2663fa commit d6334ab
Show file tree
Hide file tree
Showing 2 changed files with 52 additions and 0 deletions.
30 changes: 30 additions & 0 deletions chap0x02.md
Original file line number Diff line number Diff line change
Expand Up @@ -763,6 +763,36 @@ sudo ubuntu-bug openssh-server --save openssh-server.bug
* 目标应用程序官方提供的故障诊断工具运行日志
* [An Eye on your system](https://nicolargo.github.io/glances/)
# 面向大模型的提示词工程技巧
---
## 六要素模型 (1/2) {id="prompt-engineering-1"}
1. **指令** 。明确任务的目的和要求,使用清晰、准确、简洁的语言表达。
- **细化** 。将复杂的任务拆分为更简单的子任务,使用分隔符或列表等方式清晰地划分不同的文本部分。
- **强调** 。使用强调词或强调符号,突出重要的需求或约束。
2. **上下文** 。提供与任务相关的详细信息或上下文,帮助模型理解任务的背景和意图。如“Ubuntu 22.04”、“Python 3.11 和基于 requests 库”。
3. **输入数据** 。用户输入的内容或问题,作为模型生成输出的依据,如“输入的数据是 JSON 格式”、“通过命令行参数传递输入”等。
---
## 六要素模型 (2/2) {id="prompt-engineering-2"}
4. **输出指示** 。指定输出的类型或格式,控制模型生成的结果的长度、结构、风格等。
4. **示例** 。提供一些输入相关的示例或参考文本,展示期望的输出效果。
6. **角色** 。指定模型所扮演的角色或身份,影响模型的专业知识领域、语言风格和回答方式。
---
## 和“提问的智慧”进行比较
1. 在提问或使用提示词之前,先尝试搜索已有的信息或资源,以避免重复或无效的问题。
2. 清晰、准确、简洁地表达你的问题或目的,避免模糊、冗长或不相关的内容。
3. 提供一些示例或上下文,以帮助理解你的问题或目的,但不要过多或过少。
4. 尊重你的回答者或模型的时间和能力,不要提出过于简单或过于复杂的问题。
5. 从回答或输出中学习,并对其进行验证和反馈。
# 参考文献
---
Expand Down
22 changes: 22 additions & 0 deletions chap0x03.md
Original file line number Diff line number Diff line change
Expand Up @@ -695,6 +695,28 @@ network:
| netstat -g | ip maddr |
| route | ip r (ip route) |


# 不同发行版的不同网络管理方案流派

---

## 网络管理方案流派

1. ifconfig/route
2. iproute2
3. NetworkManager
4. systemd-networkd
5. netplan

---

## 以 Debian 系发行版为例

| Linux 发行版 | 桌面版 | 服务器版 |
| :------------ | :----- | :------- |
| Ubuntu 22.04 | NetworkManager(默认)<br>netplan 或 systemd-networkd(可选) | netplan(默认)<br>NetworkManager 或 systemd-networkd(可选) |
| Debian 11 | NetworkManager(默认)<br>ifupdown、iproute2 或 systemd-networkd(可选) | ifupdown(默认)<br>iproute2、NetworkManager 或 systemd-networkd(可选) |

# 本章完成后的自查清单

---
Expand Down

0 comments on commit d6334ab

Please sign in to comment.