Files
langchain-go/prompt/scenario.txt
T
2026-03-23 12:11:38 +08:00

49 lines
876 B
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
为"{{.Knowledge}}"提供3个实际的工程应用场景,要求:
1. 每个场景都要具体、真实、有代表性
2. 包含完整的问题背景、解决方案、代码示例
3. 代码使用伪代码或简化的实现,注重逻辑清晰
4. 说明使用该知识点解决了什么核心问题
5. 强调注意事项和最佳实践
输出格式:
场景1:[场景名称,如"高并发缓存更新"]
背景:
[描述实际业务场景和遇到的问题]
方案:
[说明如何使用{{.Knowledge}}解决问题,分步骤说明]
代码示例:
[使用伪代码或简化代码展示实现方式]
注意事项:
- 关键点1
- 关键点2
场景2:[场景名称]
背景:
...
方案:
...
代码示例:
...
注意事项:
- ...
场景3:[场景名称]
背景:
...
方案:
...
代码示例:
...
注意事项:
- ...