<p data-immersive-translate-walked="68610d52-dfaf-4ca1-b401-7f20e0a1f5ba">Anthropic Cookbook是一个开源项目,收集了一些有趣且有效的方法来教你使用Claude。这个项目旨在帮助开发者更好地利用Claude进行开发,提供了可直接复制的代码片段,以便轻松地集成到自己的项目中。</p> <p data-immersive-translate-walked="68610d52-dfaf-4ca1-b401-7f20e0a1f5ba"><strong>提供的内容包括:</strong></p> <ul data-immersive-translate-walked="68610d52-dfaf-4ca1-b401-7f20e0a1f5ba"> <li data-immersive-translate-walked="68610d52-dfaf-4ca1-b401-7f20e0a1f5ba">教授开发者如何将Claude与外部工具和功能整合,从而扩展其能力。</li> <li data-immersive-translate-walked="68610d52-dfaf-4ca1-b401-7f20e0a1f5ba">通过向量数据库、维基百科、特定网页和互联网的数据,增强Claude的知识库,提高回答的准确性和相关性。</li> <li data-immersive-translate-walked="68610d52-dfaf-4ca1-b401-7f20e0a1f5ba">包含多种实用指南,如让Claude进行引用、处理视觉任务、生成图像,以及解析和传递PDF文本等。</li> <li data-immersive-translate-walked="68610d52-dfaf-4ca1-b401-7f20e0a1f5ba">提供了一种使用Haiku作为子代理与Opus结合使用的方法,以及如何处理嵌入式数据和自动化提示评估过程的指导。</li> <li data-immersive-translate-walked="68610d52-dfaf-4ca1-b401-7f20e0a1f5ba">包括启用JSON模式和使用Claude创建内容审查过滤器的技巧。</li> </ul> <p data-immersive-translate-walked="68610d52-dfaf-4ca1-b401-7f20e0a1f5ba"><strong data-immersive-translate-walked="68610d52-dfaf-4ca1-b401-7f20e0a1f5ba">提供以下教程:</strong></p> <ul data-immersive-translate-walked="68610d52-dfaf-4ca1-b401-7f20e0a1f5ba"> <li data-immersive-translate-walked="68610d52-dfaf-4ca1-b401-7f20e0a1f5ba"><strong data-immersive-translate-walked="68610d52-dfaf-4ca1-b401-7f20e0a1f5ba">工具使用:</strong> 学习如何将Claude与外部工具和函数集成,扩展其功能。创建客户服务代理,使Claude能够访问计算器,并学习如何提示Claude进行SQL查询。</li> <li data-immersive-translate-walked="68610d52-dfaf-4ca1-b401-7f20e0a1f5ba"><strong data-immersive-translate-walked="68610d52-dfaf-4ca1-b401-7f20e0a1f5ba">检索增强生成:</strong> 学习如何用从向量数据库、维基百科、特定网页和互联网检索的数据补充Claude的知识,提高Claude响应的准确性和相关性。</li> <li data-immersive-translate-walked="68610d52-dfaf-4ca1-b401-7f20e0a1f5ba"><strong data-immersive-translate-walked="68610d52-dfaf-4ca1-b401-7f20e0a1f5ba">引用:</strong> 学习如何提示Claude在其响应中引用来源。</li> <li data-immersive-translate-walked="68610d52-dfaf-4ca1-b401-7f20e0a1f5ba"><strong data-immersive-translate-walked="68610d52-dfaf-4ca1-b401-7f20e0a1f5ba">子代理使用:</strong> 学习如何结合Opus使用Haiku作为子代理。</li> <li data-immersive-translate-walked="68610d52-dfaf-4ca1-b401-7f20e0a1f5ba"><strong data-immersive-translate-walked="68610d52-dfaf-4ca1-b401-7f20e0a1f5ba">嵌入式处理:</strong> 学习如何使用Voyage AI处理嵌入式数据。</li> <li data-immersive-translate-walked="68610d52-dfaf-4ca1-b401-7f20e0a1f5ba"><strong data-immersive-translate-walked="68610d52-dfaf-4ca1-b401-7f20e0a1f5ba">探索Claude的视觉功能:</strong> 该食谱提供了开始使用图像的提示和最佳实践技术,以确保与图像相关的最高质量性能。看看如何有效地用图像提示Claude执行任务,如解读和分析图表或从表格中提取内容。</li> <li data-immersive-translate-walked="68610d52-dfaf-4ca1-b401-7f20e0a1f5ba"><strong data-immersive-translate-walked="68610d52-dfaf-4ca1-b401-7f20e0a1f5ba">通过Claude生成图像:</strong> 展示了如何让Claude通过稳定扩散生成图像。</li> <li data-immersive-translate-walked="68610d52-dfaf-4ca1-b401-7f20e0a1f5ba"><strong data-immersive-translate-walked="68610d52-dfaf-4ca1-b401-7f20e0a1f5ba">上传PDF到Claude:</strong> 发现如何将PDF作为文本解析并传递给Claude。</li> <li data-immersive-translate-walked="68610d52-dfaf-4ca1-b401-7f20e0a1f5ba"><strong data-immersive-translate-walked="68610d52-dfaf-4ca1-b401-7f20e0a1f5ba">自动化评估:</strong> 探索如何使用Claude自动化提示评估过程。</li> <li data-immersive-translate-walked="68610d52-dfaf-4ca1-b401-7f20e0a1f5ba"><strong data-immersive-translate-walked="68610d52-dfaf-4ca1-b401-7f20e0a1f5ba">启用JSON模式:</strong> 确保你总是能够以这种快速简便的方式获取JSON,或使用工具使用获取结构化输出。</li> <li data-immersive-translate-walked="68610d52-dfaf-4ca1-b401-7f20e0a1f5ba"><strong data-immersive-translate-walked="68610d52-dfaf-4ca1-b401-7f20e0a1f5ba">使用Claude创建内容审查过滤器:</strong> 了解如何使用Claude为你的应用程序创建内容审查过滤器。</li> </ul> GitHub:<a href="https://github.com/anthropics/anthropic-cookbook" target="_blank" rel="noopener">https://github.com/anthropics/anthropic-cookbook</a>