Claude Cookbooks
A collection of Jupyter notebooks and code recipes showcasing effective ways to build with the Claude API, covering capabilities like RAG, tool use, multimodal, and more.
At a Glance
About Claude Cookbooks
Claude Cookbooks is an open-source collection of Jupyter notebooks and code guides maintained by Anthropic, designed to help developers quickly get started building with the Claude API. It provides copy-paste-ready code snippets covering a wide range of capabilities, from text classification and summarization to multimodal vision and sub-agent orchestration. Written primarily in Python, the examples are adaptable to any language that supports the Claude API. The repository is community-driven and welcomes contributions from developers worldwide.
- Retrieval Augmented Generation (RAG): Learn how to enhance Claude's responses with external knowledge sources, including vector database integrations like Pinecone and Wikipedia search.
- Tool Use & Integration: Explore how to extend Claude's capabilities by integrating external tools and functions, with examples like a customer service agent, calculator, and SQL query generation.
- Multimodal Vision: Get started with image inputs, best practices for vision tasks, chart interpretation, and form content extraction using Claude's vision capabilities.
- Third-Party Integrations: Connect Claude with external services including Pinecone for vector search, Voyage AI for embeddings, and web page reading.
- Advanced Techniques: Dive into sub-agent patterns, PDF upload and summarization, automated prompt evaluations, JSON mode, content moderation filters, and prompt caching.
- Image Generation: Use Claude alongside Stable Diffusion to generate illustrated responses.
- Classification & Summarization: Apply Claude to text and data classification tasks and discover techniques for effective summarization.
- Community Contributions: Submit ideas, fix typos, or add new guides via GitHub Issues and Pull Requests to help grow the resource for all developers.
Community Discussions
Be the first to start a conversation about Claude Cookbooks
Share your experience with Claude Cookbooks, ask questions, or help others learn from your insights.
Pricing
Open Source (MIT)
Fully free and open-source under the MIT License. Free to use, modify, and distribute.
- All cookbook notebooks and code snippets
- RAG examples
- Tool use guides
- Multimodal vision tutorials
- Third-party integration examples
Capabilities
Key Features
- Copy-paste code snippets for Claude API integration
- Retrieval Augmented Generation (RAG) examples
- Tool use and function calling guides
- Multimodal vision tutorials
- Third-party integrations (Pinecone, Voyage AI, Wikipedia)
- Sub-agent orchestration patterns
- PDF upload and summarization
- Automated prompt evaluations
- JSON mode enablement
- Content moderation filter creation
- Prompt caching techniques
- Image generation with Stable Diffusion
- Text classification and summarization
- SQL query generation examples
