Skip to content
Projetos

anthropics/claude-cookbooks

Ver no GitHub

Sobre

Uma coleção de notebooks e receitas que demonstram algumas maneiras divertidas e eficazes de usar o Claude.

Outros projetos

Como estes números são medidos

O que você pode fazer

  • 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.
  • Getting started with images

Crescimento medido de estrelas

em 24 h
+37
em 7 dias
+293
em 15 dias
+760
em 1 mês
+1.442

Variações líquidas em períodos sobrepostos, não totais diários. Medições ausentes ficam em branco. Estrelas indicam interesse, não qualidade.

README.md

Original

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

  • 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.
  • Cost optimization: Work through a cost optimization checklist on an agent, measuring pass rate and cost per task to find the Pareto-optimal configuration.
  • Latency optimization: Work through the latency levers on an agent, measuring time to first token, task time, and accuracy to pick the fastest configuration that clears your quality bar.

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.

Explore projetos relacionados

Carregando…