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)

cookbook
Searching Database…

What is this?Anthropic's collection of notebooks and recipes showing fun and effective ways of using Claude, with copy-able code snippets you can drop straight into your own projects.
Is it one course to follow start to finish, or separate recipes I can dip into?It is a menu of standalone recipes grouped into five sections: Capabilities, Tool Use and Integration, Third-Party Integrations, Multimodal Capabilities, and Advanced Techniques.
How do I actually run one of these recipes?Pick a recipe from the table, open its notebook in a Jupyter environment, and run the cells with your Claude API key set.
Will I need an API key, or can I just read along?You'll need a Claude API key to make the most of the examples; signing up for one is free.
Do I have to write Python to follow along?The notebooks are written primarily in Python, though the concepts can be adapted to any language that can interact with the Claude API.
I have never touched the Claude API before — is there a gentler starting point?Yes, the maintainers point API newcomers to the Claude API Fundamentals course first to build a foundation before diving into the recipes.
What kinds of tasks do the basic recipes cover?Text and data classification, retrieval augmented generation for grounding answers in external knowledge, and text summarization.
What multimodal tricks does it teach?Getting started with images, vision best practices, interpreting charts and graphs, extracting content from forms, and image generation by pairing Claude with Stable Diffusion.
Which third-party services show up in the recipes?Pinecone vector databases and Voyage AI embeddings for retrieval, plus Wikipedia and web pages as external knowledge sources.
What does the advanced techniques section cover?Using Haiku as a sub-agent with Opus, passing PDFs to Claude as text, automated prompt evaluations, JSON mode, a moderation filter, prompt caching, and a cost optimization checklist.
Creator
anthropics
Size
214.7 MB
Stars
53.5K
Updated
CommitOct 17
Age
3y
Commits · 90 Days