@FakeMaidenMaker: 卧槽,Anthropic 官方把 Claude 的使用教程全开源了! GitHub 4.4 万+ stars,Anthropic 官方亲自维护的 Claude Cookbooks。 RAG,Tool Use,多模态,提示词缓存等等技巧,全…
摘要
Anthropic 官方开源了 Claude 的使用教程 cookbooks,包含 RAG、Tool Use、多模态等高级技巧的 Jupyter Notebook 示例,开发者可直接复制使用。
查看缓存全文
缓存时间: 2026/06/03 15:52
卧槽,Anthropic 官方把 Claude 的使用教程全开源了!
GitHub 4.4 万+ stars,Anthropic 官方亲自维护的 Claude Cookbooks。
RAG,Tool Use,多模态,提示词缓存等等技巧,全部封装为了可以直接跑的 Jupyter Notebook,复制粘贴就能用进自己的项目。
真正值钱的是高级技巧那一块——Sub-agents(让 Haiku 当子 agent 配合 Opus 干活)、自动化评估流水线、PDF 上传处理…… 这些才是真正值得学习的经验,官方直接给你范例,省掉自己摸索的几十小时。
想学 Claude API,别到处翻零散博客了,官方 cookbook 比任何第三方教程都全,也比任何教程都可信。
GitHub:
anthropics/claude-cookbooks
Source: https://github.com/anthropics/claude-cookbooks
Claude Cookbooks
The Claude Cookbooks provide code and guides designed to help developers build with Claude, offering copy-able code snippets that you can easily integrate into your own projects.
Prerequisites
To make the most of the examples in this cookbook, you’ll need a Claude API key (sign up for free here).
While the code examples are primarily written in Python, the concepts can be adapted to any programming language that supports interaction with the Claude API.
If you’re new to working with the Claude API, we recommend starting with our Claude API Fundamentals course to get a solid foundation.
Explore Further
Looking for more resources to enhance your experience with Claude and AI assistants? Check out these helpful links:
Contributing
The Claude Cookbooks thrives on the contributions of the developer community. We value your input, whether it’s submitting an idea, fixing a typo, adding a new guide, or improving an existing one. By contributing, you help make this resource even more valuable for everyone.
To avoid duplication of efforts, please review the existing issues and pull requests before contributing.
If you have ideas for new examples or guides, share them on the issues page.
Table of recipes
Capabilities
- Classification: Explore techniques for text and data classification using Claude.
- Retrieval Augmented Generation: Learn how to enhance Claude’s responses with external knowledge.
- Summarization: Discover techniques for effective text summarization with Claude.
Tool Use and Integration
- Tool use: Learn how to integrate Claude with external tools and functions to extend its capabilities.
Third-Party Integrations
- Retrieval augmented generation: Supplement Claude’s knowledge with external data sources.
- Embeddings with Voyage AI
Multimodal Capabilities
- Vision with Claude:
- Generate images with Claude: Use Claude with Stable Diffusion for image generation.
Advanced Techniques
- Sub-agents: Learn how to use Haiku as a sub-agent in combination with Opus.
- Upload PDFs to Claude: Parse and pass PDFs as text to Claude.
- Automated evaluations: Use Claude to automate the prompt evaluation process.
- Enable JSON mode: Ensure consistent JSON output from Claude.
- Create a moderation filter: Use Claude to create a content moderation filter for your application.
- Prompt caching: Learn techniques for efficient prompt caching with Claude.
Additional Resources
- Anthropic on AWS: Explore examples and solutions for using Claude on AWS infrastructure.
- AWS Samples: A collection of code samples from AWS which can be adapted for use with Claude. Note that some samples may require modification to work optimally with Claude.
相似文章
@IndieDevHailey: Claude Cookbooks:Anthropic官方秘籍,Claude实战宝典! 官方开源笔记本合集,现抄现用的代码+指南,教你用Claude高效构建真实项目。零基础也能快速上手。 海量实战案例:Agent、Tool Use、RAG、…
Anthropic官方开源了Claude Cookbooks笔记本合集,提供实战代码和指南,覆盖Agent、Tool Use、RAG等场景,帮助开发者快速上手构建真实项目。
@bibryam: Claude Cookbook 值得收藏。81 篇实用指南跨越 15 个类别,涵盖智能体、工具、RAG、评估、多…
Anthropic 发布了 Claude Cookbook,这是一套精选的 81 篇实用开发者指南合集,内容涵盖 AI 智能体、RAG、评估、多模态应用及生产工作流。该资源提供了可直接落地的代码示例与最佳实践,助力开发者使用 Claude 构建和部署应用。
anthropics/claude-cookbooks
Claude Cookbooks 为开发者提供了使用 Claude API 构建应用的代码示例和指南,涵盖分类、RAG、工具使用和多模态功能等能力。
@QT9277: Anthropic 官方 Claude Code 全套教程完整汉化出炉! 一小时实战课覆盖上下文管理、MCP、GitHub 对接、自定义自动化工作流,翻译清晰带完整讲义,零基础也能跟着落地开发。 原版:https://anthropic.…
这篇帖子介绍了Anthropic官方Claude Code教程的中文汉化版,包含一小时实战课覆盖上下文管理、MCP、GitHub对接和自定义自动化工作流,翻译清晰,适合零基础开发者。
@axichuhai: 在GitHub上看到一个专门教怎么用 Claude Code 的项目,已经涨到了 4w star 它不是官方操作文档,而是一条从入门到高级智能体的完整学习路径 斜杠命令、MCP配置、钩子脚本、子智能体编排,每个模块都有可视化图解,教你"怎…
介绍一个GitHub上标星4万的Claude Code学习项目,提供从入门到高级智能体的完整学习路径、可视化图解和可复用的模板。