# Claude Cookbooks — Claude API Notebook Recipes > Claude Cookbooks is a repo of copyable notebooks for Claude API patterns (tool use, RAG, vision, evals) so you can prototype faster (42.9k★). ## Install Copy the content below into your project: ## Quick Use ```bash git clone https://github.com/anthropics/claude-cookbooks.git cd claude-cookbooks python3 -m venv .venv && source .venv/bin/activate pip install -U pip jupyter jupyter lab ``` ## Intro Claude Cookbooks is a repo of copyable notebooks for Claude API patterns (tool use, RAG, vision, evals) so you can prototype faster (42.9k★). **Best for:** Developers who want vetted Claude API patterns they can copy into apps (tool use, RAG, multimodal, evaluations) **Works with:** Python + Jupyter (for notebooks) and any language that can call the Claude API; start from the recipe folders and adapt **Setup time:** 5-15 minutes ## Main - **Recipe-first structure**: the README links to focused folders (classification, RAG, summarization, tool use) so you can start from a minimal working example. - **Tool use examples**: includes practical notebooks for function/tool integration (e.g., calculator, customer service patterns). - **Multimodal coverage**: contains vision and PDF-related recipes so you can wire image/PDF inputs into your app workflows. - **Evaluation recipes**: ships notebooks for building eval loops—useful when you need a repeatable quality gate for prompts or tools. ### FAQ - **Do I need to use notebooks?**: No. Use notebooks as a reference and copy the minimal code into your own runtime. - **Where should I start?**: Start from one capability folder (tool use or RAG) and run a single recipe end to end before mixing patterns. - **Is it Python-only?**: Most examples are in Python notebooks, but the patterns (prompting, tool use, evals) translate to any language. ## Source & Thanks > Source: https://github.com/anthropics/claude-cookbooks > License: MIT > GitHub stars: 42907 · forks: 4841 --- ## Quick Use ```bash git clone https://github.com/anthropics/claude-cookbooks.git cd claude-cookbooks python3 -m venv .venv && source .venv/bin/activate pip install -U pip jupyter jupyter lab ``` ## Intro Claude Cookbooks 是可直接复用的 notebooks/recipes:覆盖 Claude API 的工具调用、RAG、多模态与评测,主要用 Python/Jupyter,便于复制到项目(42907★)。 **Best for:** 想快速复用 Claude API 的成熟模式(工具调用/RAG/多模态/评测),并希望有可直接拷贝代码的开发者 **Works with:** Python + Jupyter(跑 notebooks),以及任何能调用 Claude API 的语言;从 recipes 目录入手再按需改造 **Setup time:** 5-15 minutes ## Main - **按“配方”组织**:README 直接指向分类/RAG/总结/工具调用等目录,方便从最小可用示例起步。 - **工具调用示例**:包含函数/工具集成的 notebooks(如计算器、客服类模式),更贴近工程落地。 - **多模态覆盖**:提供视觉与 PDF 相关 recipes,适合把图像/PDF 输入接入你的工作流。 - **评测配方**:包含自动化评测的 notebooks,可作为提示词/工具的可重复质量闸门。 ### FAQ - **必须用 notebooks 吗?**: 不必须。把 notebooks 当参考,把最小可用代码拷贝到你的运行环境即可。 - **从哪里开始最稳?**: 先选一个目录(工具调用或 RAG)跑通一个配方,再组合多个模式。 - **只能用 Python 吗?**: 示例多为 Python notebooks,但提示词/工具调用/评测这些模式可迁移到任意语言。 ## Source & Thanks > Source: https://github.com/anthropics/claude-cookbooks > License: MIT > GitHub stars: 42907 · forks: 4841 --- Source: https://tokrepo.com/en/workflows/claude-cookbooks-claude-api-notebook-recipes Author: Agent Toolkit