适用于 Claude 的 Prompt 最佳实践

How to prompt engineer 在解决性能问题时,建议按顺序尝试这些技术,尽管每种技术的实际影响将取决于用例: Prompt generator Be clear and direct Use examples (multishot) Let Claude think (chain of thought) Use XML tags Give Claude a role (system prompts) Prefill Claude’s response Chain complex prompts Long context tips Prompt generator 自动生成 prompt 的初稿 ...

2025-02-18 · 7 分钟 · 3343 字

RAG 技术全景解读

RAG 是什么 RAG ( Retrieval Augmented Generation 检索增强生成 ) 是一种增强 LLM 能力的技术,通过从外部知识库中检索相关信息,并将其融入内容生成过程,使模型能够生成更准确、可靠的回答,有效的减少幻觉 ...

2025-02-18 · 6 分钟 · 2957 字

从 Agent 到 Workflow 的踩坑之旅

从定义出发 每个人对 AI Agent 的定义都略有不同。 一些人将 agent 定义成完全自主的系统,能在较长的时间内独立运行,能使用各种工具来完成复杂的任务。 另一些人将 agent 指代更具流程化的实现,它们按照预先定义的工作流(workflow)执行。 ...

2025-01-22 · 7 分钟 · 3277 字