claude-cookbooks README

The project's README from github.com/anthropics/claude-cookbooks. As one markdown file: README.md.

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

Tool Use and Integration

Third-Party Integrations

Multimodal Capabilities

Advanced Techniques

Additional Resources

claude-cookbooks (anthropics/claude-cookbooks)

Searching Database…

这是什么?这是 Anthropic 推出的一套笔记本和食谱合集,展示各种有趣又好用的 Claude 使用方法,里面的代码片段可以直接复制粘贴到你自己的项目里。
它是一门要从头学到尾的课程,还是可以随手翻阅的一个个独立食谱?它像一份菜单,由独立的食谱组成,分为五个板块:Capabilities(能力)、Tool Use and Integration(工具使用与集成)、Third-Party Integrations(第三方集成)、Multimodal Capabilities(多模态能力)和 Advanced Techniques(高级技巧)。
我该怎么实际运行其中一个食谱?从表格里挑一个食谱,在 Jupyter 环境中打开它的笔记本,设置好你的 Claude API 密钥后运行各个单元格即可。
我需要 API 密钥吗,还是光看也行?想充分利用这些示例,你需要一个 Claude API 密钥;免费注册就能拿到。
跟着学必须会写 Python 吗?笔记本主要是用 Python 写的,不过其中的思路可以改用到任何能调用 Claude API 的语言上。
我从没接触过 Claude API——有没有更温和一点的入门方式?有。维护者建议 API 新手先去学 Claude API Fundamentals 课程打好基础,再来研究这些食谱。
基础食谱都涵盖哪些任务?文本和数据分类、检索增强生成(用外部知识为答案提供依据),以及文本摘要。
它教了哪些多模态技巧?图像入门、视觉最佳实践、解读图表、从表单中提取内容,以及把 Claude 和 Stable Diffusion 搭配起来生成图像。
食谱里用到了哪些第三方服务?用于检索的 Pinecone 向量数据库和 Voyage AI 嵌入,另外还有 Wikipedia 和网页作为外部知识来源。
高级技巧部分讲了什么?把 Haiku 当作 Opus 的子智能体使用、把 PDF 以文本形式传给 Claude、自动化提示词评估、JSON 模式、内容审核过滤器、提示词缓存,以及一份成本优化清单。
Creator
anthropics
Size
214.7 MB
Stars
53.5K
Updated
CommitOct 17
Age
3y
Commits · 90 Days