mirror of
https://github.com/anthropics/claude-cookbooks.git
synced 2025-10-06 01:00:28 +03:00
Update references from 'Claude Cookbook' to 'Claude Cookbooks'
- Changed all instances of singular 'Claude Cookbook' to plural 'Claude Cookbooks' - Updated URLs from anthropic-cookbooks to claude-cookbooks - Applied changes across documentation, code, and data files 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
# Contributing to Claude Cookbook
|
||||
# Contributing to Claude Cookbooks
|
||||
|
||||
Thank you for your interest in contributing to the Claude Cookbook! This guide will help you get started with development and ensure your contributions meet our quality standards.
|
||||
Thank you for your interest in contributing to the Claude Cookbooks! This guide will help you get started with development and ensure your contributions meet our quality standards.
|
||||
|
||||
## Development Setup
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
# Claude Cookbook
|
||||
# Claude Cookbooks
|
||||
|
||||
The Claude Cookbook provides code and guides designed to help developers build with Claude, offering copy-able code snippets that you can easily integrate into your own projects.
|
||||
The Claude Cookbooks provides 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
|
||||
|
||||
@@ -20,7 +20,7 @@ Looking for more resources to enhance your experience with Claude and AI assista
|
||||
|
||||
## Contributing
|
||||
|
||||
The Claude Cookbook 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.
|
||||
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.
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
# Lychee configuration for Claude Cookbook
|
||||
# Lychee configuration for Claude Cookbooks
|
||||
# Validates links in notebooks and documentation
|
||||
|
||||
# Core settings
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
# Claude Skills
|
||||
|
||||
Welcome to the Skills section of the Claude Cookbook! This directory contains a collection of guides that showcase specific skills and capabilities where Claude excels. Each guide provides an in-depth exploration of a particular skill, discussing potential use cases, prompt engineering techniques to optimize results, and approaches for evaluating Claude's performance.
|
||||
Welcome to the Skills section of the Claude Cookbooks! This directory contains a collection of guides that showcase specific skills and capabilities where Claude excels. Each guide provides an in-depth exploration of a particular skill, discussing potential use cases, prompt engineering techniques to optimize results, and approaches for evaluating Claude's performance.
|
||||
|
||||
## Guides
|
||||
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
{
|
||||
"chunk_link": "https://docs.claude.com/en/docs/welcome#develop-with-claude",
|
||||
"chunk_heading": "Develop with Claude",
|
||||
"text": "Develop with Claude\n\n\nAnthropic has best-in-class developer tools to build scalable applications with Claude.\nDeveloper ConsoleEnjoy easier, more powerful prompting in your browser with the Workbench and prompt generator tool.API ReferenceExplore, implement, and scale with the Claude API and SDKs.Claude CookbookLearn with interactive Jupyter notebooks that demonstrate uploading PDFs, embeddings, and more.\nDeveloper ConsoleEnjoy easier, more powerful prompting in your browser with the Workbench and prompt generator tool.\n\nDeveloper Console\nEnjoy easier, more powerful prompting in your browser with the Workbench and prompt generator tool.\nAPI ReferenceExplore, implement, and scale with the Claude API and SDKs.\n\nAPI Reference\nExplore, implement, and scale with the Claude API and SDKs.\nClaude CookbookLearn with interactive Jupyter notebooks that demonstrate uploading PDFs, embeddings, and more.\n\nClaude Cookbook\nLearn with interactive Jupyter notebooks that demonstrate uploading PDFs, embeddings, and more.\n"
|
||||
"text": "Develop with Claude\n\n\nAnthropic has best-in-class developer tools to build scalable applications with Claude.\nDeveloper ConsoleEnjoy easier, more powerful prompting in your browser with the Workbench and prompt generator tool.API ReferenceExplore, implement, and scale with the Claude API and SDKs.Claude CookbooksLearn with interactive Jupyter notebooks that demonstrate uploading PDFs, embeddings, and more.\nDeveloper ConsoleEnjoy easier, more powerful prompting in your browser with the Workbench and prompt generator tool.\n\nDeveloper Console\nEnjoy easier, more powerful prompting in your browser with the Workbench and prompt generator tool.\nAPI ReferenceExplore, implement, and scale with the Claude API and SDKs.\n\nAPI Reference\nExplore, implement, and scale with the Claude API and SDKs.\nClaude CookbooksLearn with interactive Jupyter notebooks that demonstrate uploading PDFs, embeddings, and more.\n\nClaude Cookbooks\nLearn with interactive Jupyter notebooks that demonstrate uploading PDFs, embeddings, and more.\n"
|
||||
},
|
||||
{
|
||||
"chunk_link": "https://docs.claude.com/en/docs/welcome#key-capabilities",
|
||||
@@ -67,7 +67,7 @@
|
||||
{
|
||||
"chunk_link": "https://docs.claude.com/en/docs/quickstart#next-steps",
|
||||
"chunk_heading": "Next steps",
|
||||
"text": "Next steps\n\n\nNow that you have made your first Claude API request, it\u2019s time to explore what else is possible:\nPrompt Engineering GuideOptimize Claude\u2019s performance through prompting.Claude CookbookLearn with interactive Jupyter notebooks that demonstrate uploading PDFs, embeddings, and more.Prompt LibraryExplore dozens of example prompts for inspiration across use cases.\nPrompt Engineering GuideOptimize Claude\u2019s performance through prompting.\n\nPrompt Engineering Guide\nOptimize Claude\u2019s performance through prompting.\nClaude CookbookLearn with interactive Jupyter notebooks that demonstrate uploading PDFs, embeddings, and more.\n\nClaude Cookbook\nLearn with interactive Jupyter notebooks that demonstrate uploading PDFs, embeddings, and more.\nPrompt LibraryExplore dozens of example prompts for inspiration across use cases.\n\nPrompt Library\nExplore dozens of example prompts for inspiration across use cases.\nOverviewIntro to Claudexlinkedin\nOverviewIntro to Claude\nxlinkedin\nPrerequisites Start with the Workbench Install the SDK Set your API key Call the API Next steps\nPrerequisitesStart with the WorkbenchInstall the SDKSet your API keyCall the APINext steps\n"
|
||||
"text": "Next steps\n\n\nNow that you have made your first Claude API request, it\u2019s time to explore what else is possible:\nPrompt Engineering GuideOptimize Claude\u2019s performance through prompting.Claude CookbooksLearn with interactive Jupyter notebooks that demonstrate uploading PDFs, embeddings, and more.Prompt LibraryExplore dozens of example prompts for inspiration across use cases.\nPrompt Engineering GuideOptimize Claude\u2019s performance through prompting.\n\nPrompt Engineering Guide\nOptimize Claude\u2019s performance through prompting.\nClaude CookbooksLearn with interactive Jupyter notebooks that demonstrate uploading PDFs, embeddings, and more.\n\nClaude Cookbooks\nLearn with interactive Jupyter notebooks that demonstrate uploading PDFs, embeddings, and more.\nPrompt LibraryExplore dozens of example prompts for inspiration across use cases.\n\nPrompt Library\nExplore dozens of example prompts for inspiration across use cases.\nOverviewIntro to Claudexlinkedin\nOverviewIntro to Claude\nxlinkedin\nPrerequisites Start with the Workbench Install the SDK Set your API key Call the API Next steps\nPrerequisitesStart with the WorkbenchInstall the SDKSet your API keyCall the APINext steps\n"
|
||||
},
|
||||
{
|
||||
"chunk_link": "https://docs.claude.com/en/docs/intro-to-claude#what-you-can-do-with-claude",
|
||||
@@ -102,7 +102,7 @@
|
||||
{
|
||||
"chunk_link": "https://docs.claude.com/en/docs/intro-to-claude#start-building-with-claude",
|
||||
"chunk_heading": "Start building with Claude",
|
||||
"text": "Start building with Claude\n\n\nWhen you\u2019re ready, start building with Claude:\nFollow the Quickstart to make your first API call\nCheck out the API Reference\nExplore the Prompt Library for example prompts\nExperiment and start building with the Workbench\nCheck out the Claude Cookbook for working code examples\nQuickstartOverviewxlinkedin\nQuickstartOverview\nxlinkedin\nWhat you can do with Claude Model options Claude 3.5 Family Claude 3 Family Enterprise considerations Implementing Claude Start building with Claude\nWhat you can do with ClaudeModel optionsClaude 3.5 FamilyClaude 3 FamilyEnterprise considerationsImplementing ClaudeStart building with Claude\n"
|
||||
"text": "Start building with Claude\n\n\nWhen you\u2019re ready, start building with Claude:\nFollow the Quickstart to make your first API call\nCheck out the API Reference\nExplore the Prompt Library for example prompts\nExperiment and start building with the Workbench\nCheck out the Claude Cookbooks for working code examples\nQuickstartOverviewxlinkedin\nQuickstartOverview\nxlinkedin\nWhat you can do with Claude Model options Claude 3.5 Family Claude 3 Family Enterprise considerations Implementing Claude Start building with Claude\nWhat you can do with ClaudeModel optionsClaude 3.5 FamilyClaude 3 FamilyEnterprise considerationsImplementing ClaudeStart building with Claude\n"
|
||||
},
|
||||
{
|
||||
"chunk_link": "https://docs.claude.com/en/docs/about-claude/models#model-names",
|
||||
@@ -186,13 +186,13 @@
|
||||
},
|
||||
{
|
||||
"chunk_link": "https://docs.claude.com/en/docs/build-with-claude/text-generation#anthropic-cookbook",
|
||||
"chunk_heading": "Claude Cookbook",
|
||||
"text": "Claude Cookbook\n\n\nDive into practical examples and hands-on tutorials with our collection of Jupyter notebooks.\nPDF Upload & SummarizationLearn how to upload PDFs and have Claude summarize their content, making it easy to digest long documents.Tool Use & Function CallingDiscover how to extend Claude\u2019s capabilities by integrating external tools and functions into your workflows.Embeddings with VoyageAIExplore how to create and use embeddings with VoyageAI for advanced text similarity and search tasks.\nPDF Upload & SummarizationLearn how to upload PDFs and have Claude summarize their content, making it easy to digest long documents.\n\nPDF Upload & Summarization\nLearn how to upload PDFs and have Claude summarize their content, making it easy to digest long documents.\nTool Use & Function CallingDiscover how to extend Claude\u2019s capabilities by integrating external tools and functions into your workflows.\n\nTool Use & Function Calling\nDiscover how to extend Claude\u2019s capabilities by integrating external tools and functions into your workflows.\nEmbeddings with VoyageAIExplore how to create and use embeddings with VoyageAI for advanced text similarity and search tasks.\n\nEmbeddings with VoyageAI\nExplore how to create and use embeddings with VoyageAI for advanced text similarity and search tasks.\n"
|
||||
"chunk_heading": "Claude Cookbooks",
|
||||
"text": "Claude Cookbooks\n\n\nDive into practical examples and hands-on tutorials with our collection of Jupyter notebooks.\nPDF Upload & SummarizationLearn how to upload PDFs and have Claude summarize their content, making it easy to digest long documents.Tool Use & Function CallingDiscover how to extend Claude\u2019s capabilities by integrating external tools and functions into your workflows.Embeddings with VoyageAIExplore how to create and use embeddings with VoyageAI for advanced text similarity and search tasks.\nPDF Upload & SummarizationLearn how to upload PDFs and have Claude summarize their content, making it easy to digest long documents.\n\nPDF Upload & Summarization\nLearn how to upload PDFs and have Claude summarize their content, making it easy to digest long documents.\nTool Use & Function CallingDiscover how to extend Claude\u2019s capabilities by integrating external tools and functions into your workflows.\n\nTool Use & Function Calling\nDiscover how to extend Claude\u2019s capabilities by integrating external tools and functions into your workflows.\nEmbeddings with VoyageAIExplore how to create and use embeddings with VoyageAI for advanced text similarity and search tasks.\n\nEmbeddings with VoyageAI\nExplore how to create and use embeddings with VoyageAI for advanced text similarity and search tasks.\n"
|
||||
},
|
||||
{
|
||||
"chunk_link": "https://docs.claude.com/en/docs/build-with-claude/text-generation#more-resources",
|
||||
"chunk_heading": "More Resources",
|
||||
"text": "More Resources\n\n\nFrom crafting the perfect prompt to understanding API details, we\u2019ve got you covered.\nPrompt Engineering GuideMaster the art of prompt crafting to get the most out of Claude. Especially useful for fine-tuning with legacy models.Prompt LibraryFind a wide range of pre-crafted prompts for various tasks and industries. Perfect for inspiration or quick starts.API DocumentationEverything you need to interact with Claude via our API: request formats, response handling, and troubleshooting.\nPrompt Engineering GuideMaster the art of prompt crafting to get the most out of Claude. Especially useful for fine-tuning with legacy models.\n\nPrompt Engineering Guide\nMaster the art of prompt crafting to get the most out of Claude. Especially useful for fine-tuning with legacy models.\nPrompt LibraryFind a wide range of pre-crafted prompts for various tasks and industries. Perfect for inspiration or quick starts.\n\nPrompt Library\nFind a wide range of pre-crafted prompts for various tasks and industries. Perfect for inspiration or quick starts.\nAPI DocumentationEverything you need to interact with Claude via our API: request formats, response handling, and troubleshooting.\n\nAPI Documentation\nEverything you need to interact with Claude via our API: request formats, response handling, and troubleshooting.\nLong context tipsEmbeddingsxlinkedin\nLong context tipsEmbeddings\nxlinkedin\nText capabilities and use cases Claude Cookbook More Resources\nText capabilities and use casesClaude CookbookMore Resources\n"
|
||||
"text": "More Resources\n\n\nFrom crafting the perfect prompt to understanding API details, we\u2019ve got you covered.\nPrompt Engineering GuideMaster the art of prompt crafting to get the most out of Claude. Especially useful for fine-tuning with legacy models.Prompt LibraryFind a wide range of pre-crafted prompts for various tasks and industries. Perfect for inspiration or quick starts.API DocumentationEverything you need to interact with Claude via our API: request formats, response handling, and troubleshooting.\nPrompt Engineering GuideMaster the art of prompt crafting to get the most out of Claude. Especially useful for fine-tuning with legacy models.\n\nPrompt Engineering Guide\nMaster the art of prompt crafting to get the most out of Claude. Especially useful for fine-tuning with legacy models.\nPrompt LibraryFind a wide range of pre-crafted prompts for various tasks and industries. Perfect for inspiration or quick starts.\n\nPrompt Library\nFind a wide range of pre-crafted prompts for various tasks and industries. Perfect for inspiration or quick starts.\nAPI DocumentationEverything you need to interact with Claude via our API: request formats, response handling, and troubleshooting.\n\nAPI Documentation\nEverything you need to interact with Claude via our API: request formats, response handling, and troubleshooting.\nLong context tipsEmbeddingsxlinkedin\nLong context tipsEmbeddings\nxlinkedin\nText capabilities and use cases Claude Cookbooks More Resources\nText capabilities and use casesClaude CookbooksMore Resources\n"
|
||||
},
|
||||
{
|
||||
"chunk_link": "https://docs.claude.com/en/docs/build-with-claude/embeddings#before-implementing-embeddings",
|
||||
@@ -1027,7 +1027,7 @@
|
||||
{
|
||||
"chunk_link": "https://docs.claude.com/en/docs/about-claude/use-cases/classification#deploy-your-classifier",
|
||||
"chunk_heading": "Deploy your classifier",
|
||||
"text": "Deploy your classifier\n\n\nTo see code examples of how to use Claude for classification, check out the Classification Guide in the Claude Cookbook.\nOverviewTicket Routingxlinkedin\nOverviewTicket Routing\nxlinkedin\nWhen to use Claude for classification Establish your classification use case Implement Claude for classification 1. Build a strong input prompt 2. Develop your test cases 3. Run your eval Evaluation metrics Deploy your classifier\nWhen to use Claude for classificationEstablish your classification use caseImplement Claude for classification1. Build a strong input prompt2. Develop your test cases3. Run your evalEvaluation metricsDeploy your classifier\n"
|
||||
"text": "Deploy your classifier\n\n\nTo see code examples of how to use Claude for classification, check out the Classification Guide in the Claude Cookbooks.\nOverviewTicket Routingxlinkedin\nOverviewTicket Routing\nxlinkedin\nWhen to use Claude for classification Establish your classification use case Implement Claude for classification 1. Build a strong input prompt 2. Develop your test cases 3. Run your eval Evaluation metrics Deploy your classifier\nWhen to use Claude for classificationEstablish your classification use caseImplement Claude for classification1. Build a strong input prompt2. Develop your test cases3. Run your evalEvaluation metricsDeploy your classifier\n"
|
||||
},
|
||||
{
|
||||
"chunk_link": "https://docs.claude.com/en/api/messages-streaming#streaming-with-sdks",
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
{
|
||||
"chunk_link": "https://docs.claude.com/en/docs/welcome#develop-with-claude",
|
||||
"chunk_heading": "Develop with Claude",
|
||||
"text": "Develop with Claude\n\n\nAnthropic has best-in-class developer tools to build scalable applications with Claude.\nDeveloper ConsoleEnjoy easier, more powerful prompting in your browser with the Workbench and prompt generator tool.API ReferenceExplore, implement, and scale with the Claude API and SDKs.Claude CookbookLearn with interactive Jupyter notebooks that demonstrate uploading PDFs, embeddings, and more.\nDeveloper ConsoleEnjoy easier, more powerful prompting in your browser with the Workbench and prompt generator tool.\n\nDeveloper Console\nEnjoy easier, more powerful prompting in your browser with the Workbench and prompt generator tool.\nAPI ReferenceExplore, implement, and scale with the Claude API and SDKs.\n\nAPI Reference\nExplore, implement, and scale with the Claude API and SDKs.\nClaude CookbookLearn with interactive Jupyter notebooks that demonstrate uploading PDFs, embeddings, and more.\n\nClaude Cookbook\nLearn with interactive Jupyter notebooks that demonstrate uploading PDFs, embeddings, and more.\n",
|
||||
"text": "Develop with Claude\n\n\nAnthropic has best-in-class developer tools to build scalable applications with Claude.\nDeveloper ConsoleEnjoy easier, more powerful prompting in your browser with the Workbench and prompt generator tool.API ReferenceExplore, implement, and scale with the Claude API and SDKs.Claude CookbooksLearn with interactive Jupyter notebooks that demonstrate uploading PDFs, embeddings, and more.\nDeveloper ConsoleEnjoy easier, more powerful prompting in your browser with the Workbench and prompt generator tool.\n\nDeveloper Console\nEnjoy easier, more powerful prompting in your browser with the Workbench and prompt generator tool.\nAPI ReferenceExplore, implement, and scale with the Claude API and SDKs.\n\nAPI Reference\nExplore, implement, and scale with the Claude API and SDKs.\nClaude CookbooksLearn with interactive Jupyter notebooks that demonstrate uploading PDFs, embeddings, and more.\n\nClaude Cookbooks\nLearn with interactive Jupyter notebooks that demonstrate uploading PDFs, embeddings, and more.\n",
|
||||
"summary": "Anthropic provides a suite of developer tools, including a browser-based Workbench and prompt generator, API reference documentation, and interactive Jupyter notebooks, to help developers build scalable applications with the Claude AI model. These tools enable easier, more powerful prompting, exploration and implementation of the Claude API and SDKs, and learning through interactive demonstrations."
|
||||
},
|
||||
{
|
||||
@@ -80,8 +80,8 @@
|
||||
{
|
||||
"chunk_link": "https://docs.claude.com/en/docs/quickstart#next-steps",
|
||||
"chunk_heading": "Next steps",
|
||||
"text": "Next steps\n\n\nNow that you have made your first Claude API request, it\u2019s time to explore what else is possible:\nPrompt Engineering GuideOptimize Claude\u2019s performance through prompting.Claude CookbookLearn with interactive Jupyter notebooks that demonstrate uploading PDFs, embeddings, and more.Prompt LibraryExplore dozens of example prompts for inspiration across use cases.\nPrompt Engineering GuideOptimize Claude\u2019s performance through prompting.\n\nPrompt Engineering Guide\nOptimize Claude\u2019s performance through prompting.\nClaude CookbookLearn with interactive Jupyter notebooks that demonstrate uploading PDFs, embeddings, and more.\n\nClaude Cookbook\nLearn with interactive Jupyter notebooks that demonstrate uploading PDFs, embeddings, and more.\nPrompt LibraryExplore dozens of example prompts for inspiration across use cases.\n\nPrompt Library\nExplore dozens of example prompts for inspiration across use cases.\nOverviewIntro to Claudexlinkedin\nOverviewIntro to Claude\nxlinkedin\nPrerequisites Start with the Workbench Install the SDK Set your API key Call the API Next steps\nPrerequisitesStart with the WorkbenchInstall the SDKSet your API keyCall the APINext steps\n",
|
||||
"summary": "The summary covers the next steps after making an initial Claude API request, including exploring the Prompt Engineering Guide to optimize Claude's performance, the Claude Cookbook for interactive Jupyter notebooks, and the Prompt Library for example prompts across use cases. It also mentions the overview and prerequisites for working with the Anthropic platform."
|
||||
"text": "Next steps\n\n\nNow that you have made your first Claude API request, it\u2019s time to explore what else is possible:\nPrompt Engineering GuideOptimize Claude\u2019s performance through prompting.Claude CookbooksLearn with interactive Jupyter notebooks that demonstrate uploading PDFs, embeddings, and more.Prompt LibraryExplore dozens of example prompts for inspiration across use cases.\nPrompt Engineering GuideOptimize Claude\u2019s performance through prompting.\n\nPrompt Engineering Guide\nOptimize Claude\u2019s performance through prompting.\nClaude CookbooksLearn with interactive Jupyter notebooks that demonstrate uploading PDFs, embeddings, and more.\n\nClaude Cookbooks\nLearn with interactive Jupyter notebooks that demonstrate uploading PDFs, embeddings, and more.\nPrompt LibraryExplore dozens of example prompts for inspiration across use cases.\n\nPrompt Library\nExplore dozens of example prompts for inspiration across use cases.\nOverviewIntro to Claudexlinkedin\nOverviewIntro to Claude\nxlinkedin\nPrerequisites Start with the Workbench Install the SDK Set your API key Call the API Next steps\nPrerequisitesStart with the WorkbenchInstall the SDKSet your API keyCall the APINext steps\n",
|
||||
"summary": "The summary covers the next steps after making an initial Claude API request, including exploring the Prompt Engineering Guide to optimize Claude's performance, the Claude Cookbooks for interactive Jupyter notebooks, and the Prompt Library for example prompts across use cases. It also mentions the overview and prerequisites for working with the Anthropic platform."
|
||||
},
|
||||
{
|
||||
"chunk_link": "https://docs.claude.com/en/docs/intro-to-claude#what-you-can-do-with-claude",
|
||||
@@ -122,8 +122,8 @@
|
||||
{
|
||||
"chunk_link": "https://docs.claude.com/en/docs/intro-to-claude#start-building-with-claude",
|
||||
"chunk_heading": "Start building with Claude",
|
||||
"text": "Start building with Claude\n\n\nWhen you\u2019re ready, start building with Claude:\nFollow the Quickstart to make your first API call\nCheck out the API Reference\nExplore the Prompt Library for example prompts\nExperiment and start building with the Workbench\nCheck out the Claude Cookbook for working code examples\nQuickstartOverviewxlinkedin\nQuickstartOverview\nxlinkedin\nWhat you can do with Claude Model options Claude 3.5 Family Claude 3 Family Enterprise considerations Implementing Claude Start building with Claude\nWhat you can do with ClaudeModel optionsClaude 3.5 FamilyClaude 3 FamilyEnterprise considerationsImplementing ClaudeStart building with Claude\n",
|
||||
"summary": "The documentation provides guidance on how to start building with the Claude AI model, including following the Quickstart, exploring the API Reference and Prompt Library, using the Workbench, and checking out the Claude Cookbook for working code examples. It also covers model options, enterprise considerations, and implementation details."
|
||||
"text": "Start building with Claude\n\n\nWhen you\u2019re ready, start building with Claude:\nFollow the Quickstart to make your first API call\nCheck out the API Reference\nExplore the Prompt Library for example prompts\nExperiment and start building with the Workbench\nCheck out the Claude Cookbooks for working code examples\nQuickstartOverviewxlinkedin\nQuickstartOverview\nxlinkedin\nWhat you can do with Claude Model options Claude 3.5 Family Claude 3 Family Enterprise considerations Implementing Claude Start building with Claude\nWhat you can do with ClaudeModel optionsClaude 3.5 FamilyClaude 3 FamilyEnterprise considerationsImplementing ClaudeStart building with Claude\n",
|
||||
"summary": "The documentation provides guidance on how to start building with the Claude AI model, including following the Quickstart, exploring the API Reference and Prompt Library, using the Workbench, and checking out the Claude Cookbooks for working code examples. It also covers model options, enterprise considerations, and implementation details."
|
||||
},
|
||||
{
|
||||
"chunk_link": "https://docs.claude.com/en/docs/about-claude/models#model-names",
|
||||
@@ -223,14 +223,14 @@
|
||||
},
|
||||
{
|
||||
"chunk_link": "https://docs.claude.com/en/docs/build-with-claude/text-generation#anthropic-cookbook",
|
||||
"chunk_heading": "Claude Cookbook",
|
||||
"text": "Claude Cookbook\n\n\nDive into practical examples and hands-on tutorials with our collection of Jupyter notebooks.\nPDF Upload & SummarizationLearn how to upload PDFs and have Claude summarize their content, making it easy to digest long documents.Tool Use & Function CallingDiscover how to extend Claude\u2019s capabilities by integrating external tools and functions into your workflows.Embeddings with VoyageAIExplore how to create and use embeddings with VoyageAI for advanced text similarity and search tasks.\nPDF Upload & SummarizationLearn how to upload PDFs and have Claude summarize their content, making it easy to digest long documents.\n\nPDF Upload & Summarization\nLearn how to upload PDFs and have Claude summarize their content, making it easy to digest long documents.\nTool Use & Function CallingDiscover how to extend Claude\u2019s capabilities by integrating external tools and functions into your workflows.\n\nTool Use & Function Calling\nDiscover how to extend Claude\u2019s capabilities by integrating external tools and functions into your workflows.\nEmbeddings with VoyageAIExplore how to create and use embeddings with VoyageAI for advanced text similarity and search tasks.\n\nEmbeddings with VoyageAI\nExplore how to create and use embeddings with VoyageAI for advanced text similarity and search tasks.\n",
|
||||
"summary": "The Claude Cookbook provides practical examples and hands-on tutorials, including how to upload PDFs and have Claude summarize their content, how to extend Claude's capabilities by integrating external tools and functions, and how to create and use embeddings with VoyageAI for advanced text similarity and search tasks."
|
||||
"chunk_heading": "Claude Cookbooks",
|
||||
"text": "Claude Cookbooks\n\n\nDive into practical examples and hands-on tutorials with our collection of Jupyter notebooks.\nPDF Upload & SummarizationLearn how to upload PDFs and have Claude summarize their content, making it easy to digest long documents.Tool Use & Function CallingDiscover how to extend Claude\u2019s capabilities by integrating external tools and functions into your workflows.Embeddings with VoyageAIExplore how to create and use embeddings with VoyageAI for advanced text similarity and search tasks.\nPDF Upload & SummarizationLearn how to upload PDFs and have Claude summarize their content, making it easy to digest long documents.\n\nPDF Upload & Summarization\nLearn how to upload PDFs and have Claude summarize their content, making it easy to digest long documents.\nTool Use & Function CallingDiscover how to extend Claude\u2019s capabilities by integrating external tools and functions into your workflows.\n\nTool Use & Function Calling\nDiscover how to extend Claude\u2019s capabilities by integrating external tools and functions into your workflows.\nEmbeddings with VoyageAIExplore how to create and use embeddings with VoyageAI for advanced text similarity and search tasks.\n\nEmbeddings with VoyageAI\nExplore how to create and use embeddings with VoyageAI for advanced text similarity and search tasks.\n",
|
||||
"summary": "The Claude Cookbooks provides practical examples and hands-on tutorials, including how to upload PDFs and have Claude summarize their content, how to extend Claude's capabilities by integrating external tools and functions, and how to create and use embeddings with VoyageAI for advanced text similarity and search tasks."
|
||||
},
|
||||
{
|
||||
"chunk_link": "https://docs.claude.com/en/docs/build-with-claude/text-generation#more-resources",
|
||||
"chunk_heading": "More Resources",
|
||||
"text": "More Resources\n\n\nFrom crafting the perfect prompt to understanding API details, we\u2019ve got you covered.\nPrompt Engineering GuideMaster the art of prompt crafting to get the most out of Claude. Especially useful for fine-tuning with legacy models.Prompt LibraryFind a wide range of pre-crafted prompts for various tasks and industries. Perfect for inspiration or quick starts.API DocumentationEverything you need to interact with Claude via our API: request formats, response handling, and troubleshooting.\nPrompt Engineering GuideMaster the art of prompt crafting to get the most out of Claude. Especially useful for fine-tuning with legacy models.\n\nPrompt Engineering Guide\nMaster the art of prompt crafting to get the most out of Claude. Especially useful for fine-tuning with legacy models.\nPrompt LibraryFind a wide range of pre-crafted prompts for various tasks and industries. Perfect for inspiration or quick starts.\n\nPrompt Library\nFind a wide range of pre-crafted prompts for various tasks and industries. Perfect for inspiration or quick starts.\nAPI DocumentationEverything you need to interact with Claude via our API: request formats, response handling, and troubleshooting.\n\nAPI Documentation\nEverything you need to interact with Claude via our API: request formats, response handling, and troubleshooting.\nLong context tipsEmbeddingsxlinkedin\nLong context tipsEmbeddings\nxlinkedin\nText capabilities and use cases Claude Cookbook More Resources\nText capabilities and use casesClaude CookbookMore Resources\n",
|
||||
"text": "More Resources\n\n\nFrom crafting the perfect prompt to understanding API details, we\u2019ve got you covered.\nPrompt Engineering GuideMaster the art of prompt crafting to get the most out of Claude. Especially useful for fine-tuning with legacy models.Prompt LibraryFind a wide range of pre-crafted prompts for various tasks and industries. Perfect for inspiration or quick starts.API DocumentationEverything you need to interact with Claude via our API: request formats, response handling, and troubleshooting.\nPrompt Engineering GuideMaster the art of prompt crafting to get the most out of Claude. Especially useful for fine-tuning with legacy models.\n\nPrompt Engineering Guide\nMaster the art of prompt crafting to get the most out of Claude. Especially useful for fine-tuning with legacy models.\nPrompt LibraryFind a wide range of pre-crafted prompts for various tasks and industries. Perfect for inspiration or quick starts.\n\nPrompt Library\nFind a wide range of pre-crafted prompts for various tasks and industries. Perfect for inspiration or quick starts.\nAPI DocumentationEverything you need to interact with Claude via our API: request formats, response handling, and troubleshooting.\n\nAPI Documentation\nEverything you need to interact with Claude via our API: request formats, response handling, and troubleshooting.\nLong context tipsEmbeddingsxlinkedin\nLong context tipsEmbeddings\nxlinkedin\nText capabilities and use cases Claude Cookbooks More Resources\nText capabilities and use casesClaude CookbooksMore Resources\n",
|
||||
"summary": "The Claude Documentation provides a Prompt Engineering Guide to help users master the art of prompt crafting, a Prompt Library with pre-crafted prompts for various tasks, and API Documentation for interacting with the Claude AI model. These resources are designed to help users get the most out of the Claude model, particularly for fine-tuning with legacy models."
|
||||
},
|
||||
{
|
||||
@@ -1232,8 +1232,8 @@
|
||||
{
|
||||
"chunk_link": "https://docs.claude.com/en/docs/about-claude/use-cases/classification#deploy-your-classifier",
|
||||
"chunk_heading": "Deploy your classifier",
|
||||
"text": "Deploy your classifier\n\n\nTo see code examples of how to use Claude for classification, check out the Classification Guide in the Claude Cookbook.\nOverviewTicket Routingxlinkedin\nOverviewTicket Routing\nxlinkedin\nWhen to use Claude for classification Establish your classification use case Implement Claude for classification 1. Build a strong input prompt 2. Develop your test cases 3. Run your eval Evaluation metrics Deploy your classifier\nWhen to use Claude for classificationEstablish your classification use caseImplement Claude for classification1. Build a strong input prompt2. Develop your test cases3. Run your evalEvaluation metricsDeploy your classifier\n",
|
||||
"summary": "Deploy your classifier: Check out the Classification Guide in the Claude Cookbook for code examples on using Claude for classification. The guide covers when to use Claude for classification, establishing your use case, implementing Claude, building prompts, developing test cases, running evaluations, and deploying your classifier."
|
||||
"text": "Deploy your classifier\n\n\nTo see code examples of how to use Claude for classification, check out the Classification Guide in the Claude Cookbooks.\nOverviewTicket Routingxlinkedin\nOverviewTicket Routing\nxlinkedin\nWhen to use Claude for classification Establish your classification use case Implement Claude for classification 1. Build a strong input prompt 2. Develop your test cases 3. Run your eval Evaluation metrics Deploy your classifier\nWhen to use Claude for classificationEstablish your classification use caseImplement Claude for classification1. Build a strong input prompt2. Develop your test cases3. Run your evalEvaluation metricsDeploy your classifier\n",
|
||||
"summary": "Deploy your classifier: Check out the Classification Guide in the Claude Cookbooks for code examples on using Claude for classification. The guide covers when to use Claude for classification, establishing your use case, implementing Claude, building prompts, developing test cases, running evaluations, and deploying your classifier."
|
||||
},
|
||||
{
|
||||
"chunk_link": "https://docs.claude.com/en/api/messages-streaming#streaming-with-sdks",
|
||||
|
||||
File diff suppressed because one or more lines are too long
@@ -28819,11 +28819,11 @@
|
||||
"id": "python:provider_retrieval.py:retrieve_base"
|
||||
},
|
||||
"prompt": {
|
||||
"raw": "What are two ways the Claude Cookbook can help developers learn to use Anthropic's APIs?",
|
||||
"raw": "What are two ways the Claude Cookbooks can help developers learn to use Anthropic's APIs?",
|
||||
"label": "{{ query }}"
|
||||
},
|
||||
"vars": {
|
||||
"query": "What are two ways the Claude Cookbook can help developers learn to use Anthropic's APIs?",
|
||||
"query": "What are two ways the Claude Cookbooks can help developers learn to use Anthropic's APIs?",
|
||||
"correct_chunks": "[\"https://docs.claude.com/en/docs/welcome#develop-with-claude\",\"https://docs.claude.com/en/docs/quickstart#next-steps\"]"
|
||||
},
|
||||
"response": {
|
||||
@@ -28948,11 +28948,11 @@
|
||||
"id": "python:provider_retrieval.py:retrieve_level_two"
|
||||
},
|
||||
"prompt": {
|
||||
"raw": "What are two ways the Claude Cookbook can help developers learn to use Anthropic's APIs?",
|
||||
"raw": "What are two ways the Claude Cookbooks can help developers learn to use Anthropic's APIs?",
|
||||
"label": "{{ query }}"
|
||||
},
|
||||
"vars": {
|
||||
"query": "What are two ways the Claude Cookbook can help developers learn to use Anthropic's APIs?",
|
||||
"query": "What are two ways the Claude Cookbooks can help developers learn to use Anthropic's APIs?",
|
||||
"correct_chunks": "[\"https://docs.claude.com/en/docs/welcome#develop-with-claude\",\"https://docs.claude.com/en/docs/quickstart#next-steps\"]"
|
||||
},
|
||||
"response": {
|
||||
@@ -29851,11 +29851,11 @@
|
||||
"id": "python:provider_retrieval.py:retrieve_level_three"
|
||||
},
|
||||
"prompt": {
|
||||
"raw": "What are two ways the Claude Cookbook can help developers learn to use Anthropic's APIs?",
|
||||
"raw": "What are two ways the Claude Cookbooks can help developers learn to use Anthropic's APIs?",
|
||||
"label": "{{ query }}"
|
||||
},
|
||||
"vars": {
|
||||
"query": "What are two ways the Claude Cookbook can help developers learn to use Anthropic's APIs?",
|
||||
"query": "What are two ways the Claude Cookbooks can help developers learn to use Anthropic's APIs?",
|
||||
"correct_chunks": "[\"https://docs.claude.com/en/docs/welcome#develop-with-claude\",\"https://docs.claude.com/en/docs/quickstart#next-steps\"]"
|
||||
},
|
||||
"response": {
|
||||
@@ -66207,7 +66207,7 @@
|
||||
"score": 0.8,
|
||||
"namedScores": {},
|
||||
"text": "[\"https://docs.claude.com/en/docs/welcome#develop-with-claude\",\"https://docs.claude.com/en/docs/quickstart#next-steps\",\"https://docs.claude.com/en/docs/build-with-claude/text-generation#anthropic-cookbook\"]",
|
||||
"prompt": "What are two ways the Claude Cookbook can help developers learn to use Anthropic's APIs?",
|
||||
"prompt": "What are two ways the Claude Cookbooks can help developers learn to use Anthropic's APIs?",
|
||||
"provider": "python:provider_retrieval.py:retrieve_base",
|
||||
"latencyMs": 1373,
|
||||
"gradingResult": {
|
||||
@@ -66322,7 +66322,7 @@
|
||||
"score": 0.8,
|
||||
"namedScores": {},
|
||||
"text": "[\"https://docs.claude.com/en/docs/quickstart#next-steps\",\"https://docs.claude.com/en/api/#accessing-the-api\",\"https://docs.claude.com/en/docs/welcome#develop-with-claude\"]",
|
||||
"prompt": "What are two ways the Claude Cookbook can help developers learn to use Anthropic's APIs?",
|
||||
"prompt": "What are two ways the Claude Cookbooks can help developers learn to use Anthropic's APIs?",
|
||||
"provider": "python:provider_retrieval.py:retrieve_level_two",
|
||||
"latencyMs": 1494,
|
||||
"gradingResult": {
|
||||
@@ -66437,7 +66437,7 @@
|
||||
"score": 0.8,
|
||||
"namedScores": {},
|
||||
"text": "[\"https://docs.claude.com/en/docs/build-with-claude/text-generation#anthropic-cookbook\",\"https://docs.claude.com/en/docs/quickstart#next-steps\",\"https://docs.claude.com/en/docs/welcome#develop-with-claude\"]",
|
||||
"prompt": "What are two ways the Claude Cookbook can help developers learn to use Anthropic's APIs?",
|
||||
"prompt": "What are two ways the Claude Cookbooks can help developers learn to use Anthropic's APIs?",
|
||||
"provider": "python:provider_retrieval.py:retrieve_level_three",
|
||||
"latencyMs": 4931,
|
||||
"gradingResult": {
|
||||
@@ -66550,7 +66550,7 @@
|
||||
],
|
||||
"test": {
|
||||
"vars": {
|
||||
"query": "What are two ways the Claude Cookbook can help developers learn to use Anthropic's APIs?",
|
||||
"query": "What are two ways the Claude Cookbooks can help developers learn to use Anthropic's APIs?",
|
||||
"correct_chunks": "[\"https://docs.claude.com/en/docs/welcome#develop-with-claude\",\"https://docs.claude.com/en/docs/quickstart#next-steps\"]"
|
||||
},
|
||||
"assert": [
|
||||
@@ -66564,7 +66564,7 @@
|
||||
},
|
||||
"vars": [
|
||||
"[\"https://docs.claude.com/en/docs/welcome#develop-with-claude\",\"https://docs.claude.com/en/docs/quickstart#next-steps\"]",
|
||||
"What are two ways the Claude Cookbook can help developers learn to use Anthropic's APIs?"
|
||||
"What are two ways the Claude Cookbooks can help developers learn to use Anthropic's APIs?"
|
||||
]
|
||||
},
|
||||
{
|
||||
@@ -76465,7 +76465,7 @@
|
||||
},
|
||||
{
|
||||
"vars": {
|
||||
"query": "What are two ways the Claude Cookbook can help developers learn to use Anthropic's APIs?",
|
||||
"query": "What are two ways the Claude Cookbooks can help developers learn to use Anthropic's APIs?",
|
||||
"correct_chunks": "[\"https://docs.claude.com/en/docs/welcome#develop-with-claude\",\"https://docs.claude.com/en/docs/quickstart#next-steps\"]"
|
||||
},
|
||||
"assert": [
|
||||
|
||||
@@ -74,7 +74,7 @@ How do the streaming API delta formats differ between tool_use content blocks an
|
||||
What are the image file size limits when uploading images to Claude using the API versus on claude.ai?,0.3333333333333333,1.0,1.0,True
|
||||
What is one key consideration when selecting a Claude model for an enterprise use case that needs low latency?,0.6666666666666666,1.0,0.5,True
|
||||
"What embedding model does Anthropic recommend for code retrieval, and how does its performance compare to alternatives according to Voyage AI?",0.6666666666666666,1.0,1.0,True
|
||||
What are two ways the Claude Cookbook can help developers learn to use Anthropic's APIs?,0.6666666666666666,1.0,1.0,True
|
||||
What are two ways the Claude Cookbooks can help developers learn to use Anthropic's APIs?,0.6666666666666666,1.0,1.0,True
|
||||
How does the size of the context window impact a language model's ability to utilize retrieval augmented generation (RAG)?,0.6666666666666666,1.0,1.0,True
|
||||
How can the Evaluation tool in Anthropic's Claude platform help improve prompts and build more robust AI applications?,0.3333333333333333,0.5,1.0,True
|
||||
Which Claude model has the fastest comparative latency according to the comparison tables?,0.6666666666666666,1.0,1.0,True
|
||||
|
||||
|
@@ -74,7 +74,7 @@ How do the streaming API delta formats differ between tool_use content blocks an
|
||||
What are the image file size limits when uploading images to Claude using the API versus on claude.ai?,0.3333333333333333,1.0,1.0,True
|
||||
What is one key consideration when selecting a Claude model for an enterprise use case that needs low latency?,0.3333333333333333,0.5,0.5,True
|
||||
"What embedding model does Anthropic recommend for code retrieval, and how does its performance compare to alternatives according to Voyage AI?",0.3333333333333333,0.5,1.0,False
|
||||
What are two ways the Claude Cookbook can help developers learn to use Anthropic's APIs?,0.6666666666666666,1.0,0.5,False
|
||||
What are two ways the Claude Cookbooks can help developers learn to use Anthropic's APIs?,0.6666666666666666,1.0,0.5,False
|
||||
How does the size of the context window impact a language model's ability to utilize retrieval augmented generation (RAG)?,0.6666666666666666,1.0,1.0,True
|
||||
How can the Evaluation tool in Anthropic's Claude platform help improve prompts and build more robust AI applications?,0.3333333333333333,0.5,1.0,True
|
||||
Which Claude model has the fastest comparative latency according to the comparison tables?,0.0,0.0,0.0,True
|
||||
|
||||
|
@@ -74,7 +74,7 @@ How do the streaming API delta formats differ between tool_use content blocks an
|
||||
What are the image file size limits when uploading images to Claude using the API versus on claude.ai?,0.3333333333333333,1.0,1.0,True
|
||||
What is one key consideration when selecting a Claude model for an enterprise use case that needs low latency?,0.6666666666666666,1.0,1.0,True
|
||||
"What embedding model does Anthropic recommend for code retrieval, and how does its performance compare to alternatives according to Voyage AI?",0.6666666666666666,1.0,1.0,True
|
||||
What are two ways the Claude Cookbook can help developers learn to use Anthropic's APIs?,0.6666666666666666,1.0,1.0,True
|
||||
What are two ways the Claude Cookbooks can help developers learn to use Anthropic's APIs?,0.6666666666666666,1.0,1.0,True
|
||||
How does the size of the context window impact a language model's ability to utilize retrieval augmented generation (RAG)?,0.6666666666666666,1.0,1.0,True
|
||||
How can the Evaluation tool in Anthropic's Claude platform help improve prompts and build more robust AI applications?,0.3333333333333333,0.5,1.0,True
|
||||
Which Claude model has the fastest comparative latency according to the comparison tables?,0.3333333333333333,0.5,1.0,True
|
||||
|
||||
|
@@ -74,7 +74,7 @@ How do the streaming API delta formats differ between tool_use content blocks an
|
||||
What are the image file size limits when uploading images to Claude using the API versus on claude.ai?,0.3333333333333333,1.0,1.0,True
|
||||
What is one key consideration when selecting a Claude model for an enterprise use case that needs low latency?,0.6666666666666666,1.0,0.5,True
|
||||
"What embedding model does Anthropic recommend for code retrieval, and how does its performance compare to alternatives according to Voyage AI?",0.6666666666666666,1.0,1.0,True
|
||||
What are two ways the Claude Cookbook can help developers learn to use Anthropic's APIs?,0.6666666666666666,1.0,1.0,False
|
||||
What are two ways the Claude Cookbooks can help developers learn to use Anthropic's APIs?,0.6666666666666666,1.0,1.0,False
|
||||
How does the size of the context window impact a language model's ability to utilize retrieval augmented generation (RAG)?,0.6666666666666666,1.0,1.0,True
|
||||
How can the Evaluation tool in Anthropic's Claude platform help improve prompts and build more robust AI applications?,0.3333333333333333,0.5,1.0,True
|
||||
Which Claude model has the fastest comparative latency according to the comparison tables?,0.6666666666666666,1.0,1.0,True
|
||||
|
||||
|
@@ -399,7 +399,7 @@
|
||||
"https://docs.claude.com/en/docs/quickstart#next-steps",
|
||||
"https://docs.claude.com/en/docs/welcome#develop-with-claude"
|
||||
],
|
||||
"correct_answer": "The Claude Cookbook provides interactive Jupyter notebooks demonstrating how to upload PDFs, generate embeddings, and more. The Developer Console offers a prompt generator tool for easier, more powerful prompting."
|
||||
"correct_answer": "The Claude Cookbooks provides interactive Jupyter notebooks demonstrating how to upload PDFs, generate embeddings, and more. The Developer Console offers a prompt generator tool for easier, more powerful prompting."
|
||||
},
|
||||
{
|
||||
"id": "c417a6d5",
|
||||
@@ -668,12 +668,12 @@
|
||||
},
|
||||
{
|
||||
"id": "142b8567",
|
||||
"question": "What are two ways the Claude Cookbook can help developers learn to use Anthropic's APIs?",
|
||||
"question": "What are two ways the Claude Cookbooks can help developers learn to use Anthropic's APIs?",
|
||||
"correct_chunks": [
|
||||
"https://docs.claude.com/en/docs/welcome#develop-with-claude",
|
||||
"https://docs.claude.com/en/docs/quickstart#next-steps"
|
||||
],
|
||||
"correct_answer": "The Claude Cookbook provides interactive Jupyter notebooks that demonstrate how to upload PDFs and work with embeddings to help developers learn to use Anthropic's APIs."
|
||||
"correct_answer": "The Claude Cookbooks provides interactive Jupyter notebooks that demonstrate how to upload PDFs and work with embeddings to help developers learn to use Anthropic's APIs."
|
||||
},
|
||||
{
|
||||
"id": "79f3daa2",
|
||||
|
||||
@@ -1,101 +1,101 @@
|
||||
query,correct_answer,__expected
|
||||
"How can you create multiple test cases for an evaluation in the Anthropic Evaluation tool?","To create multiple test cases in the Anthropic Evaluation tool, click the 'Add Test Case' button, fill in values for each variable in your prompt, and repeat the process to create additional test case scenarios.","python:file://eval_end_to_end.py"
|
||||
"What embeddings provider does Anthropic recommend for customized domain-specific models, and what capabilities does this provider offer?","Anthropic recommends Voyage AI for embedding models. Voyage AI offers customized models for specific industry domains like finance and healthcare, as well as bespoke fine-tuned models for individual customers. They have a wide variety of options and capabilities.","python:file://eval_end_to_end.py"
|
||||
"What are some key success metrics to consider when evaluating Claude's performance on a classification task, and how do they relate to choosing the right model to reduce latency?","When evaluating Claude's performance on a classification task, some key success metrics to consider include accuracy, F1 score, consistency, structure, speed, bias and fairness. Choosing the right model that fits your specific requirements in terms of speed and output quality is a straightforward way to reduce latency and meet the acceptable response time for your use case.","python:file://eval_end_to_end.py"
|
||||
"What are two ways that Claude for Sheets can improve prompt engineering workflows compared to using chained prompts?","Claude for Sheets enables testing prompts across evaluation suites in parallel, which is faster than running chained prompts sequentially. It also excels at office tasks like survey analysis and online data processing that may be more cumbersome with chained prompts.","python:file://eval_end_to_end.py"
|
||||
"What happens if a prompt for the Text Completions API is missing the ""\n\nHuman:"" and ""\n\nAssistant:"" turns?","If a prompt for the Text Completions API is missing the required ""\n\nHuman:"" and ""\n\nAssistant:"" turns, it will result in an API error.","python:file://eval_end_to_end.py"
|
||||
"How do the additional tokens required for tool use in Claude API requests impact pricing compared to regular API requests?","Tool use requests in the Claude API are priced the same as regular API requests, based on the total input and output tokens. However, tool use requests have additional tokens beyond the regular input and output, including the tools parameter, tool use content blocks, tool result content blocks, and a special system prompt that enables tool use, which add to the total tokens and cost.","python:file://eval_end_to_end.py"
|
||||
"When will the new Anthropic Developer Console features that show API usage, billing details, and rate limits be available?","The new Usage, Cost, and Rate Limits tabs in the Anthropic Developer Console that show API usage, billing details, and current rate limits will be available on June 27th, 2024.","python:file://eval_end_to_end.py"
|
||||
"When deciding whether to use chain-of-thought (CoT) for a task, what are two key factors to consider in order to strike the right balance between performance and latency?","When deciding whether to use CoT, consider if the task requires in-depth thinking that a human would need to work through, and be aware that the increased output length from CoT may impact latency.","python:file://eval_end_to_end.py"
|
||||
"How can I use Claude to more easily digest the content of long PDF documents?","You can upload PDFs and have Claude summarize their content, making it easier to understand the key points of long documents without having to read through everything.","python:file://eval_end_to_end.py"
|
||||
"According to the documentation, where can you view your organization's current API rate limits in the Claude Console?","You can view your organization's current API rate limits in the Rate Limits tab of the Developer Console.","python:file://eval_end_to_end.py"
|
||||
"How can we measure the performance of the ticket classification system implemented using Claude beyond just accuracy?","In addition to accuracy, we can measure the 95th percentile response time and average cost per classification to assess the ticket classification system's performance and production-readiness.","python:file://eval_end_to_end.py"
|
||||
"How can you specify a system prompt using the Text Completions API versus the Messages API?","With the Text Completions API, the system prompt is added as text before the first ""\n\nHuman:"" turn. With the Messages API, the system prompt is specified using the separate ""system"" parameter when making the API request.","python:file://eval_end_to_end.py"
|
||||
"How can you combine XML tags with chain of thought reasoning to create high-performance prompts for Claude?","You can combine XML tags like <thinking> and <answer> with chain of thought reasoning, where Claude explains its step-by-step reasoning process, to create structured, high-performance prompts. For example, you can prompt Claude to show its reasoning by including ""Before answering, explain your reasoning step-by-step in <thinking> tags."" in the user message or system prompt.","python:file://eval_end_to_end.py"
|
||||
"When evaluating the Claude model's performance for ticket routing, what three key metrics are calculated and what are the results for the claude-3-haiku-20240307 model on the 91 test samples?","When evaluating the claude-3-haiku-20240307 model's performance on the 91 test samples, the three key metrics calculated are accuracy (89.01%), 95th percentile response time (1.61 seconds), and average cost per request routing ($0.0004).","python:file://eval_end_to_end.py"
|
||||
"Before starting to engineer and improve a prompt in Claude, what key things does Anthropic recommend you have in place first?","Before prompt engineering, Anthropic highly recommends having a clear definition of success criteria for your use case, some ways to empirically test against those criteria, and a first draft prompt you want to improve.","python:file://eval_end_to_end.py"
|
||||
"How does the Messages API handle mid-response prompting compared to the Text Completions API?","The Messages API allows you to continue a response by making the last input message have the ""assistant"" role, whereas the Text Completions API lets you pre-fill part of Claude's response directly in the prompt string.","python:file://eval_end_to_end.py"
|
||||
"How does Claude's response differ when given a role through a system prompt compared to not having a specific role in the financial analysis example?","When given the role of CFO through a system prompt, Claude provides a much more insightful, structured, and actionable financial analysis compared to not having a specific role. The role-based response breaks down key financial metrics, provides strategic commentary, and makes specific recommendations.","python:file://eval_end_to_end.py"
|
||||
"What are some quantitative metrics that can be used to measure the success of a sentiment analysis model, and how might specific targets for those metrics be determined?","Quantitative metrics for evaluating a sentiment analysis model include task-specific metrics like F1 score, as well as generic metrics like accuracy, precision, and recall. Specific targets should be based on industry benchmarks, prior experiments, AI research, or expert knowledge, and should represent an improvement over the current baseline.","python:file://eval_end_to_end.py"
|
||||
"What is a power user tip mentioned in the documentation for creating high-performance prompts using XML tags?","Combining XML tags with other prompt engineering techniques like multishot prompting (using <examples> tags) or chain of thought (using <thinking> and <answer> tags) to create super-structured, high-performance prompts.","python:file://eval_end_to_end.py"
|
||||
"How can you use an LLM like Claude to automatically grade the outputs of other LLMs based on a rubric?","You can use an LLM like Claude to grade the outputs of other LLMs by providing it with the output to grade along with a detailed rubric. Instruct the LLM to think through its reasoning and then output a simple 'correct' or 'incorrect' result based on how well the output matches the criteria in the rubric.","python:file://eval_end_to_end.py"
|
||||
"How can you access and deploy Voyage embeddings on AWS Marketplace?","To access Voyage embeddings on AWS, subscribe to the model package on AWS Marketplace, select the model to deploy, agree to the terms, and copy the Product ARN for your selected region. Then create a JupyterLab space in SageMaker Studio, upload Voyage's notebook, and follow the instructions to deploy the model package using the ARN.","python:file://eval_end_to_end.py"
|
||||
"When using tools just to get Claude to produce JSON output following a particular schema, what key things should you do in terms of tool setup and prompting?","When using tools to get JSON output, you should provide a single tool, set the tool_choice to explicitly instruct the model to use that tool, and ensure the tool name and description are from the model's perspective since it will pass the input to the tool.","python:file://eval_end_to_end.py"
|
||||
"What are the key differences between the legacy Claude Instant 1.2 model and the Claude 3 Haiku model in terms of capabilities and performance?","The Claude 3 Haiku model has vision capabilities, is faster, more performant, and more intelligent than the legacy Claude Instant 1.2 model. Claude 3 Haiku also has more up-to-date training data.","python:file://eval_end_to_end.py"
|
||||
"What is one key benefit of using examples when prompt engineering with Claude?","One key benefit of using examples in prompts is that they reduce misinterpretation of instructions, leading to more accurate outputs from Claude.","python:file://eval_end_to_end.py"
|
||||
"According to the Claude Documentation, what is one key advantage of using prompt engineering instead of fine-tuning when it comes to adapting an AI model to new domains or tasks?","Prompt engineering allows you to easily adapt AI models to new domains by providing domain-specific context directly in the prompts, without needing to retrain the model through fine-tuning.","python:file://eval_end_to_end.py"
|
||||
"How can I quickly get started using the Claude for Sheets extension with a pre-made template?","You can make a copy of Anthropic's provided Claude for Sheets workbook template to quickly get started using the extension with your own work.","python:file://eval_end_to_end.py"
|
||||
"How does the ""index"" field in the ""content_block_delta"" event relate to the text being streamed in a response?","The ""index"" field in each ""content_block_delta"" event indicates which content block the text delta applies to. Multiple deltas with the same index consecutively stream the text for a single content block in the response.","python:file://eval_end_to_end.py"
|
||||
"How can you include an image as part of a Claude API request, and what image formats are currently supported?","To include an image in a Claude API request, provide it as a base64-encoded image in an ""image"" content block within the ""messages"" array. The currently supported image formats are JPEG, PNG, GIF, and WebP.","python:file://eval_end_to_end.py"
|
||||
"What is the relationship between time to first token (TTFT) and latency when evaluating a language model's performance?","TTFT is a specific measure of latency that captures the time it takes for a language model to generate the first token of its response after receiving a prompt. It is an important component of a model's overall latency and responsiveness, especially for interactive applications.","python:file://eval_end_to_end.py"
|
||||
"How can providing Claude with examples of handling certain edge cases like implicit requests or emotional prioritization help improve its performance in routing support tickets?","Providing edge case examples to Claude in the prompt can meaningfully improve its performance in correctly routing support tickets in scenarios where it may otherwise misclassify them, such as implicit requests, emotional prioritization, ambiguous intent vs. routing, or issue prioritization.","python:file://eval_end_to_end.py"
|
||||
"How does the stop_reason of ""tool_use"" relate to the overall workflow of integrating external tools with Claude?","When Claude determines that one of the user-provided tools can help answer the user's query, it constructs a tool use request. This causes the API response to have a stop_reason of ""tool_use"", signaling Claude's intent to use the tool. The user must then extract the tool input from Claude's request, run the actual tool code client-side, and continue the conversation by sending the tool results back to Claude.","python:file://eval_end_to_end.py"
|
||||
"According to the documentation, what error event and corresponding HTTP error code may be sent during periods of high usage for the Claude API when using streaming responses?","During periods of high usage, an overloaded_error event may be sent in the event stream, which would normally correspond to an HTTP 529 error code in a non-streaming context.","python:file://eval_end_to_end.py"
|
||||
"What are the two types of deltas that can be contained in a content_block_delta event when streaming responses from the Claude API?","The two types of deltas that can be contained in a content_block_delta event are text_delta and input_json_delta.","python:file://eval_end_to_end.py"
|
||||
"On what date did Claude 3.5 Sonnet and tool use both become generally available across the Claude API, Amazon Bedrock, and Google Vertex AI?","Claude 3.5 Sonnet became generally available across those platforms on June 20th, 2024, while tool use became generally available on May 30th, 2024.","python:file://eval_end_to_end.py"
|
||||
"In what order did Anthropic launch Claude.ai and the Claude iOS app in Canada and Europe?","Anthropic launched Claude.ai and the Claude iOS app in Europe in May 2024, and then launched them in Canada the following month in June 2024.","python:file://eval_end_to_end.py"
|
||||
"When the API response from Claude has a stop_reason of ""tool_use"", what does this indicate and what should be done next to continue the conversation?","A stop_reason of ""tool_use"" signals that Claude has decided to use a tool and has constructed a formatted tool use request. To continue the conversation, the tool name and input should be extracted from Claude's request, the actual tool code should be executed client-side, and then a new user message containing a tool_result content block should be sent to Claude.","python:file://eval_end_to_end.py"
|
||||
"What Python libraries are used in the example code snippet for evaluating tone and style in a customer service chatbot?","The example code snippet for evaluating tone and style in a customer service chatbot uses the anthropic Python library to interact with the Claude AI model.","python:file://eval_end_to_end.py"
|
||||
"What are the two main ways to authenticate when using the Anthropic Python SDK to access Claude models on Amazon Bedrock?","The two main ways to authenticate are: 1) Directly providing the aws_access_key, aws_secret_key, and optionally aws_session_token, or 2) Using the default AWS credential providers, such as the ~/.aws/credentials file or the AWS_SECRET_ACCESS_KEY and AWS_ACCESS_KEY_ID environment variables.","python:file://eval_end_to_end.py"
|
||||
"When deciding whether to implement leak-resistant prompt engineering strategies, what two factors should be considered and balanced?","When deciding to use leak-resistant prompt engineering, the potential reduction in prompt leaks should be balanced against the risk of degraded model performance due to the added complexity of the prompt.","python:file://eval_end_to_end.py"
|
||||
"How can selecting the appropriate Claude model based on your specific requirements help reduce latency in your application?","Choosing the right Claude model that best fits your needs in terms of speed and output quality is one of the most straightforward ways to reduce latency in your application. Anthropic offers a range of Claude models with different capabilities and performance characteristics to allow you to choose the optimal balance of intelligence, speed, and cost for your use case.","python:file://eval_end_to_end.py"
|
||||
"How can you stream responses from the Claude API using the Python SDK?","You can stream responses from the Claude API using the Python SDK by using the client.messages.stream() method and iterating over the stream.text_stream attribute in a for loop.","python:file://eval_end_to_end.py"
|
||||
"How can you guide Claude's response by pre-filling part of the response, and what API parameter is used to generate a short response in this case?","You can shape Claude's response by pre-filling part of it in the last position of the input messages list. To get a short response like a single multiple choice answer, you can set the ""max_tokens"" parameter to a small value like 1.","python:file://eval_end_to_end.py"
|
||||
"What is more important when building an eval set for an AI system - having a larger number of test cases with automated grading, or having fewer high-quality test cases graded by humans?","When building an eval set, it is better to prioritize having a larger volume of test cases with slightly lower signal automated grading over having fewer questions with high-quality human hand-grading.","python:file://eval_end_to_end.py"
|
||||
"What are the two required fields in a content_block_delta event for a text delta type?","The two required fields in a content_block_delta event for a text delta type are ""index"" and ""delta"", where the ""delta"" field contains a ""type"" of ""text_delta"" and the ""text"" being added.","python:file://eval_end_to_end.py"
|
||||
"What are two interactive ways to learn how to use Claude's capabilities, such as uploading PDFs and generating embeddings?","The Claude Cookbook provides interactive Jupyter notebooks demonstrating how to upload PDFs, generate embeddings, and more. The Developer Console offers a prompt generator tool for easier, more powerful prompting.","python:file://eval_end_to_end.py"
|
||||
"Why does breaking a task into distinct subtasks for chained prompts help improve Claude's accuracy on the overall task?","Breaking a task into distinct subtasks for chained prompts improves Claude's accuracy because each subtask gets Claude's full attention, reducing errors compared to tackling the entire complex task at once.","python:file://eval_end_to_end.py"
|
||||
"How does the streaming format for Messages responses differ from Text Completions streaming responses?","Messages streaming responses can contain multiple content blocks of varying types, making the streaming format more complex compared to Text Completions which only include completion, ping, and error server-sent-events.","python:file://eval_end_to_end.py"
|
||||
"What are two ways to start experimenting with Claude as a user, according to Anthropic's documentation?","According to the documentation, users can start experimenting with Claude by visiting claude.ai or using Anthropic's web Console.","python:file://eval_end_to_end.py"
|
||||
"How can using chain prompts help reduce errors and inconsistency in complex tasks handled by Claude?","Chain prompts break complex tasks into smaller subtasks, allowing Claude to give its full attention to each one. This reduces errors and inconsistencies that may occur when trying to handle a complex workflow all at once.","python:file://eval_end_to_end.py"
|
||||
"What HTTP status code does an overloaded_error event correspond to in a non-streaming context for the Claude API?","In a non-streaming context, an overloaded_error event would normally correspond to an HTTP 529 status code.","python:file://eval_end_to_end.py"
|
||||
"What are the two ways to specify the format in which Voyage AI returns embeddings through its HTTP API?","When making a request to Voyage AI's embedding endpoint, you can either leave the encoding_format parameter unspecified to get the embeddings as lists of floating-point numbers, or set encoding_format to ""base64"" to get the embeddings compressed to Base64 encodings.","python:file://eval_end_to_end.py"
|
||||
"When streaming API requests that use tools, how are the input JSON deltas for tool_use content blocks sent, and how can they be accumulated and parsed by the client?","When streaming requests with tool use, the input JSON deltas for tool_use content blocks are sent as partial JSON strings in multiple content_block_delta events. The client can accumulate these partial JSON strings and parse the complete JSON object once a content_block_stop event is received, using a library like Pydantic for partial JSON parsing or helpers provided in Anthropic's SDKs.","python:file://eval_end_to_end.py"
|
||||
"What are the two interactive prompt engineering tutorials that Anthropic offers, and how do they differ?","Anthropic offers a GitHub prompting tutorial that covers prompt engineering concepts in-depth with examples, and a lighter-weight Google Sheets prompting tutorial that utilizes Claude for Sheets.","python:file://eval_end_to_end.py"
|
||||
"What are some of the key capabilities that make Claude suitable for enterprise use cases requiring integration with specialized applications and processing of large volumes of sensitive data?","Claude offers a 200K token context window, tool use for integration into specialized applications, multimodal input capabilities for richer context, and is uniquely positioned to serve high-trust industries processing large volumes of sensitive data with enterprise-grade security and data handling.","python:file://eval_end_to_end.py"
|
||||
"As of June 2024, in which regions are Anthropic's Claude.ai API and iOS app available?","As of June 2024, Anthropic's Claude.ai API and iOS app are available in the United States, Canada, and Europe.","python:file://eval_end_to_end.py"
|
||||
"What are the two main approaches for integrating Claude into a support ticket workflow, and how do they differ in terms of scalability and ease of implementation?","The two main approaches for integrating Claude into a support ticket workflow are push-based using webhooks, and pull-based. The push-based approach is more web-scalable but requires exposing a public endpoint which has IT security implications. The pull-based approach is easier to implement but makes unnecessary calls to the support ticket system.","python:file://eval_end_to_end.py"
|
||||
"When did Anthropic release a prompt generator tool to help guide Claude in generating high-quality prompts, and through what interface is it available?","On May 10th, 2024, Anthropic released a prompt generator tool that is available through the Developer Console.","python:file://eval_end_to_end.py"
|
||||
"Which Claude 3 model provides the best balance of intelligence and speed for high-throughput tasks like sales forecasting and targeted marketing?","The Claude 3 Sonnet model balances intelligence and speed, making it well-suited for high-throughput tasks like sales forecasting and targeted marketing.","python:file://eval_end_to_end.py"
|
||||
"How can you calculate the similarity between two Voyage embedding vectors, and what is this equivalent to since Voyage embeddings are normalized to length 1?","You can calculate the similarity between two Voyage embedding vectors using the dot product, which is equivalent to cosine similarity since Voyage embeddings are normalized to length 1.","python:file://eval_end_to_end.py"
|
||||
"How can using examples in prompts improve Claude's performance on complex tasks?","Well-chosen examples in prompts can boost Claude's ability to handle complex tasks by reducing misinterpretation of instructions, enforcing consistent structure and style, and serving as a guide for the desired output.","python:file://eval_end_to_end.py"
|
||||
"What are the two types of content block deltas that can be emitted when streaming responses with tool use, and what does each delta type contain?","When streaming responses with tool use, the two types of content block deltas are text deltas and input JSON deltas. Text deltas contain a ""text"" field with a string of the incrementally generated text. Input JSON deltas contain a ""partial_json"" field with a string containing part of the JSON object specifying the tool's input.","python:file://eval_end_to_end.py"
|
||||
"What are two key capabilities of Claude that enable it to build interactive systems and personalized user experiences?","Claude's question answering and text analysis capabilities enable it to build intelligent, interactive systems like chatbots and personalize user experiences by understanding sentiment and preferences.","python:file://eval_end_to_end.py"
|
||||
"What are the key event types included in a raw HTTP stream response when using message streaming, and what is the typical order they occur in?","A raw HTTP stream response includes a message_start event, followed by one or more content blocks (each with a content_block_start, content_block_delta events, and content_block_stop), a message_delta event, and a final message_stop event. Ping events may also be dispersed throughout.","python:file://eval_end_to_end.py"
|
||||
"What is the maximum number of images that can be included in a single request using the Claude API compared to the claude.ai interface?","The Messages API allows including up to 20 images per request, while the claude.ai interface has a lower limit of up to 5 images per turn.","python:file://eval_end_to_end.py"
|
||||
"When Claude's response is cut off due to hitting the max_tokens limit and contains an incomplete tool use block, what should you do to get the full tool use?","If Claude's response hits the max_tokens limit and has an incomplete tool use block, you should retry the request with a higher max_tokens value to get Claude's full response including the complete tool use.","python:file://eval_end_to_end.py"
|
||||
"What two steps are needed before running a classification evaluation on Claude according to the documentation?","Before running a classification evaluation on Claude, you need to 1) develop your test cases, and 2) take a look at Anthropic's guide to developing test cases.","python:file://eval_end_to_end.py"
|
||||
"How can you use the content parameter in the messages list to influence Claude's response?","You can provide content in the last position of the messages list, with the ""assistant"" role, to pre-fill part of Claude's response. This allows you to shape the assistant's output.","python:file://eval_end_to_end.py"
|
||||
"What are two key advantages of prompt engineering over fine-tuning when it comes to model comprehension and general knowledge preservation?","Compared to fine-tuning, prompt engineering is far more effective at helping models understand and utilize external content like retrieved documents. Prompt engineering also preserves the model's broad general knowledge, while fine-tuning risks catastrophic forgetting where the model loses its general capabilities.","python:file://eval_end_to_end.py"
|
||||
"What are the two main steps to get started with making requests to Claude models on Anthropic's Bedrock API?","To get started making requests to Claude models on Anthropic's Bedrock API, you need to: 1) Install and configure the AWS CLI, and 2) Install an SDK for accessing Bedrock, such as the Python SDK shown in the example code.","python:file://eval_end_to_end.py"
|
||||
"How can you check which Claude models are available in a specific AWS region using the AWS CLI?","You can list the available Claude models in a specific AWS region by running the command `aws bedrock list-foundation-models --region=<region> --by-provider anthropic --query ""modelSummaries[*].modelId""`, replacing `<region>` with the desired AWS region such as `us-west-2`.","python:file://eval_end_to_end.py"
|
||||
"What argument can be passed to the voyageai.Client.embed() method or the Voyage HTTP API to specify whether the input text is a query or a document?","The input_type argument can be passed with a value of ""query"" or ""document"" to specify the type of input text being embedded.","python:file://eval_end_to_end.py"
|
||||
"How do the streaming API delta formats differ between tool_use content blocks and text content blocks?","Tool_use content block deltas contain partial JSON strings for the input field, whereas text content block deltas directly contain the text delta. Tool_use deltas may have delays between streaming events as the model emits one complete key-value pair at a time.","python:file://eval_end_to_end.py"
|
||||
"What are the image file size limits when uploading images to Claude using the API versus on claude.ai?","When uploading images to Claude, the API has a maximum file size limit of 5MB per image, while on claude.ai the limit is 10MB per image.","python:file://eval_end_to_end.py"
|
||||
"What is one key consideration when selecting a Claude model for an enterprise use case that needs low latency?","When selecting a Claude model for an enterprise use case that requires low latency, it's important to choose the model that best balances speed and output quality based on the specific requirements of the use case.","python:file://eval_end_to_end.py"
|
||||
"What embedding model does Anthropic recommend for code retrieval, and how does its performance compare to alternatives according to Voyage AI?","For code retrieval, Voyage AI recommends using the voyage-code-2 embedding model, which they claim performs 17% better than alternatives and achieves state-of-the-art results on general-purpose corpora as well.","python:file://eval_end_to_end.py"
|
||||
"What are two ways the Claude Cookbook can help developers learn to use Anthropic's APIs?","The Claude Cookbook provides interactive Jupyter notebooks that demonstrate how to upload PDFs and work with embeddings to help developers learn to use Anthropic's APIs.","python:file://eval_end_to_end.py"
|
||||
"How does the size of the context window impact a language model's ability to utilize retrieval augmented generation (RAG)?","The size of the context window determines how much retrieved information can be passed to the language model to augment its knowledge when generating a response using RAG. A larger context window allows more relevant retrieved information to be utilized by the model, improving the accuracy and groundedness of the generated text.","python:file://eval_end_to_end.py"
|
||||
"How can the Evaluation tool in Anthropic's Claude platform help improve prompts and build more robust AI applications?","The Evaluation tool helps identify edge cases where prompts might falter, allows rating individual results to determine prompt performance, ensures consistent performance across inputs, and enables prompt refinement for better reliability. Reviewing results across test cases helps spot patterns to make informed adjustments that lead to more robust AI applications.","python:file://eval_end_to_end.py"
|
||||
"Which Claude model has the fastest comparative latency according to the comparison tables?","The Claude 3 Haiku model has the fastest comparative latency","python:file://eval_end_to_end.py"
|
||||
"How can you build up a conversation with multiple turns using the Anthropic Messages API in Python?","To have a multi-turn conversation using the Anthropic Messages API in Python, send the full conversation history in the messages parameter each time, including any prior user and assistant messages. The API is stateless, so the entire context must be provided with each request.","python:file://eval_end_to_end.py"
|
||||
"How can using XML tags to provide a specific role or context help improve Claude's analysis of a legal contract compared to not using a role prompt?","Providing Claude with a specific role, such as being the General Counsel of a company, using XML tags can help it catch critical legal issues and risks in a contract that it might miss without the role context, potentially saving the company millions of dollars.","python:file://eval_end_to_end.py"
|
||||
"What are the key differences between how Claude 3 Opus and Claude 3 Sonnet handle missing information when making tool calls?","When required parameters are missing, Claude 3 Opus is more likely to ask the user for the missing information, while Claude 3 Sonnet is more likely to try to infer reasonable values on its own to proceed with the tool call.","python:file://eval_end_to_end.py"
|
||||
"What steps should be taken to ensure a reliable deployment of an automated ticket routing system using Claude into a production environment?","To ensure a reliable production deployment of Claude for ticket routing, key steps include implementing retry logic to handle errors, conducting thorough staging and load testing, setting up error handling and logging, using a gradual rollout process, providing documentation and training, and establishing monitoring and alerting.","python:file://eval_end_to_end.py"
|
||||
"How should you evaluate a model's performance on a ticket routing classifier?","You should evaluate performance in terms of accuracy, cost, and speed.","python:file://eval_end_to_end.py"
|
||||
"What two methods does Anthropic recommend for learning how to prompt engineer with Claude before diving into the techniques?","Anthropic recommends trying their interactive GitHub prompting tutorial and Google Sheets prompting tutorial to learn prompt engineering concepts before diving into the techniques in the documentation.","python:file://eval_end_to_end.py"
|
||||
"What are the key differences between a pretrained large language model and Claude in terms of their training and capabilities?","Pretrained large language models are trained on unlabeled text data to predict the next word given the previous context, but are not inherently good at answering questions or following instructions without prompt engineering. In contrast, Claude is a large language model that has been further fine-tuned and trained using RLHF to be more helpful, honest, and capable of performing a wider range of useful tasks.","python:file://eval_end_to_end.py"
|
||||
"What are some key advantages of using prompt engineering instead of fine-tuning to adapt a pretrained language model for a specific task or domain?","Prompt engineering is typically faster, more cost-effective, requires less data and compute resources, and preserves the model's general knowledge compared to fine-tuning. It also allows for greater flexibility, rapid iteration, and transparency.","python:file://eval_end_to_end.py"
|
||||
"How can you authenticate with GCP before running requests to access Claude models on Vertex AI?","Before running requests to access Claude models on Vertex AI, you may need to run `gcloud auth application-default login` to authenticate with GCP.","python:file://eval_end_to_end.py"
|
||||
"What new capabilities and features were introduced by Anthropic on May 10th, 2024 and how do they enable users to create and tailor prompts for specific tasks?","According to the information provided, on May 10th, 2024, Anthropic introduced a new ""Prompt Generator"" tool in the Developer Console. This tool is designed to help users guide Claude to generate high-quality prompts tailored to their specific tasks. The text states that the Prompt Generator ""makes it easy to guide Claude to generate a high-quality prompts tailored to your specific tasks."" This indicates that the Prompt Generator feature provides users with the ability to create customized prompts for Claude, going beyond the standard prompting capabilities. By combining this information with the details about the Claude iOS app and the Claude Team plan released around the same time, we can infer that Anthropic was expanding its platform and tools to provide users with more advanced capabilities for interacting with and leveraging the Claude AI assistant for their specific needs and use cases.","python:file://eval_end_to_end.py"
|
||||
"On what date did both the Claude 3.5 Sonnet model and the Artifacts feature in Claude.ai become available?","Both Claude 3.5 Sonnet and the Artifacts feature in Claude.ai became available on June 20th, 2024.","python:file://eval_end_to_end.py"
|
||||
"When putting words in Claude's mouth to shape the response, what header and value can you use in the request to limit Claude's response to a single token?","You can use ""max_tokens"": 1 in the request to limit Claude's response to a single token when putting words in its mouth.","python:file://eval_end_to_end.py"
|
||||
"What does the temperature parameter do when working with large language models?","Temperature is a parameter that controls the randomness of the model during generation","python:file://eval_end_to_end.py"
|
||||
"What are two ways to specify API parameters when calling the Claude API using Claude for Sheets?","When calling the Claude API using Claude for Sheets, you can specify API parameters in two ways: 1) As additional arguments after the prompt and model in the CLAUDE() function, like =CLAUDE(prompt, model, ""max_tokens"", 3). 2) By passing in an API key to be used just for a specific cell, like ""api_key"", ""sk-ant-api03-j1W...""","python:file://eval_end_to_end.py"
|
||||
"How does prefilling the response with an opening curly brace ({ ) affect Claude's output when extracting structured data from text?","Prefilling Claude's response with { causes it to skip the preamble explanation and directly output the extracted data as a JSON object, resulting in a more concise response that is easier for programs to parse without additional processing.","python:file://eval_end_to_end.py"
|
||||
"What are some helpful resources provided by Anthropic to dive deeper into building with images using Claude?","Anthropic provides a multimodal cookbook with tips on getting started with images and best practices, as well as API reference documentation for the Messages API that includes example API calls involving images.","python:file://eval_end_to_end.py"
|
||||
"How do you specify the API key when creating a new Anthropic client in the Python and TypeScript SDK examples?","In both the Python and TypeScript examples, you can specify the API key as a string parameter when creating a new Anthropic client object. If no API key is provided, it defaults to using the ANTHROPIC_API_KEY environment variable.","python:file://eval_end_to_end.py"
|
||||
"What are two key benefits of using the Anthropic Evaluation tool when developing prompts for an AI classification application?","The Evaluation tool helps identify edge cases where the prompt might falter, and ensures consistent performance across a range of test case inputs. This allows you to refine the prompt for better reliability in the AI classification application.","python:file://eval_end_to_end.py"
|
||||
"What are the key differences between a pretrained language model like Claude's underlying model, and the final version of Claude available through Anthropic's API?","The pretrained language model that forms Claude's foundation is not inherently good at answering questions or following instructions. To create the helpful, honest and safe Claude assistant available through the API, the pretrained model underwent fine-tuning and reinforcement learning from human feedback (RLHF).","python:file://eval_end_to_end.py"
|
||||
"What is the IPv6 address range used by Anthropic?","The IPv6 address range used by Anthropic is 2607:6bc0::/48.","python:file://eval_end_to_end.py"
|
||||
"When using the Python SDK to create a message with Claude, what are two ways you can specify your API key?","When using the Python SDK, you can specify your API key either by passing it as the api_key parameter when initializing the Anthropic client, or by setting it as an environment variable named ANTHROPIC_API_KEY which the client will use by default.","python:file://eval_end_to_end.py"
|
||||
query,correct_answer,__expected
|
||||
"How can you create multiple test cases for an evaluation in the Anthropic Evaluation tool?","To create multiple test cases in the Anthropic Evaluation tool, click the 'Add Test Case' button, fill in values for each variable in your prompt, and repeat the process to create additional test case scenarios.","python:file://eval_end_to_end.py"
|
||||
"What embeddings provider does Anthropic recommend for customized domain-specific models, and what capabilities does this provider offer?","Anthropic recommends Voyage AI for embedding models. Voyage AI offers customized models for specific industry domains like finance and healthcare, as well as bespoke fine-tuned models for individual customers. They have a wide variety of options and capabilities.","python:file://eval_end_to_end.py"
|
||||
"What are some key success metrics to consider when evaluating Claude's performance on a classification task, and how do they relate to choosing the right model to reduce latency?","When evaluating Claude's performance on a classification task, some key success metrics to consider include accuracy, F1 score, consistency, structure, speed, bias and fairness. Choosing the right model that fits your specific requirements in terms of speed and output quality is a straightforward way to reduce latency and meet the acceptable response time for your use case.","python:file://eval_end_to_end.py"
|
||||
"What are two ways that Claude for Sheets can improve prompt engineering workflows compared to using chained prompts?","Claude for Sheets enables testing prompts across evaluation suites in parallel, which is faster than running chained prompts sequentially. It also excels at office tasks like survey analysis and online data processing that may be more cumbersome with chained prompts.","python:file://eval_end_to_end.py"
|
||||
"What happens if a prompt for the Text Completions API is missing the ""\n\nHuman:"" and ""\n\nAssistant:"" turns?","If a prompt for the Text Completions API is missing the required ""\n\nHuman:"" and ""\n\nAssistant:"" turns, it will result in an API error.","python:file://eval_end_to_end.py"
|
||||
"How do the additional tokens required for tool use in Claude API requests impact pricing compared to regular API requests?","Tool use requests in the Claude API are priced the same as regular API requests, based on the total input and output tokens. However, tool use requests have additional tokens beyond the regular input and output, including the tools parameter, tool use content blocks, tool result content blocks, and a special system prompt that enables tool use, which add to the total tokens and cost.","python:file://eval_end_to_end.py"
|
||||
"When will the new Anthropic Developer Console features that show API usage, billing details, and rate limits be available?","The new Usage, Cost, and Rate Limits tabs in the Anthropic Developer Console that show API usage, billing details, and current rate limits will be available on June 27th, 2024.","python:file://eval_end_to_end.py"
|
||||
"When deciding whether to use chain-of-thought (CoT) for a task, what are two key factors to consider in order to strike the right balance between performance and latency?","When deciding whether to use CoT, consider if the task requires in-depth thinking that a human would need to work through, and be aware that the increased output length from CoT may impact latency.","python:file://eval_end_to_end.py"
|
||||
"How can I use Claude to more easily digest the content of long PDF documents?","You can upload PDFs and have Claude summarize their content, making it easier to understand the key points of long documents without having to read through everything.","python:file://eval_end_to_end.py"
|
||||
"According to the documentation, where can you view your organization's current API rate limits in the Claude Console?","You can view your organization's current API rate limits in the Rate Limits tab of the Developer Console.","python:file://eval_end_to_end.py"
|
||||
"How can we measure the performance of the ticket classification system implemented using Claude beyond just accuracy?","In addition to accuracy, we can measure the 95th percentile response time and average cost per classification to assess the ticket classification system's performance and production-readiness.","python:file://eval_end_to_end.py"
|
||||
"How can you specify a system prompt using the Text Completions API versus the Messages API?","With the Text Completions API, the system prompt is added as text before the first ""\n\nHuman:"" turn. With the Messages API, the system prompt is specified using the separate ""system"" parameter when making the API request.","python:file://eval_end_to_end.py"
|
||||
"How can you combine XML tags with chain of thought reasoning to create high-performance prompts for Claude?","You can combine XML tags like <thinking> and <answer> with chain of thought reasoning, where Claude explains its step-by-step reasoning process, to create structured, high-performance prompts. For example, you can prompt Claude to show its reasoning by including ""Before answering, explain your reasoning step-by-step in <thinking> tags."" in the user message or system prompt.","python:file://eval_end_to_end.py"
|
||||
"When evaluating the Claude model's performance for ticket routing, what three key metrics are calculated and what are the results for the claude-3-haiku-20240307 model on the 91 test samples?","When evaluating the claude-3-haiku-20240307 model's performance on the 91 test samples, the three key metrics calculated are accuracy (89.01%), 95th percentile response time (1.61 seconds), and average cost per request routing ($0.0004).","python:file://eval_end_to_end.py"
|
||||
"Before starting to engineer and improve a prompt in Claude, what key things does Anthropic recommend you have in place first?","Before prompt engineering, Anthropic highly recommends having a clear definition of success criteria for your use case, some ways to empirically test against those criteria, and a first draft prompt you want to improve.","python:file://eval_end_to_end.py"
|
||||
"How does the Messages API handle mid-response prompting compared to the Text Completions API?","The Messages API allows you to continue a response by making the last input message have the ""assistant"" role, whereas the Text Completions API lets you pre-fill part of Claude's response directly in the prompt string.","python:file://eval_end_to_end.py"
|
||||
"How does Claude's response differ when given a role through a system prompt compared to not having a specific role in the financial analysis example?","When given the role of CFO through a system prompt, Claude provides a much more insightful, structured, and actionable financial analysis compared to not having a specific role. The role-based response breaks down key financial metrics, provides strategic commentary, and makes specific recommendations.","python:file://eval_end_to_end.py"
|
||||
"What are some quantitative metrics that can be used to measure the success of a sentiment analysis model, and how might specific targets for those metrics be determined?","Quantitative metrics for evaluating a sentiment analysis model include task-specific metrics like F1 score, as well as generic metrics like accuracy, precision, and recall. Specific targets should be based on industry benchmarks, prior experiments, AI research, or expert knowledge, and should represent an improvement over the current baseline.","python:file://eval_end_to_end.py"
|
||||
"What is a power user tip mentioned in the documentation for creating high-performance prompts using XML tags?","Combining XML tags with other prompt engineering techniques like multishot prompting (using <examples> tags) or chain of thought (using <thinking> and <answer> tags) to create super-structured, high-performance prompts.","python:file://eval_end_to_end.py"
|
||||
"How can you use an LLM like Claude to automatically grade the outputs of other LLMs based on a rubric?","You can use an LLM like Claude to grade the outputs of other LLMs by providing it with the output to grade along with a detailed rubric. Instruct the LLM to think through its reasoning and then output a simple 'correct' or 'incorrect' result based on how well the output matches the criteria in the rubric.","python:file://eval_end_to_end.py"
|
||||
"How can you access and deploy Voyage embeddings on AWS Marketplace?","To access Voyage embeddings on AWS, subscribe to the model package on AWS Marketplace, select the model to deploy, agree to the terms, and copy the Product ARN for your selected region. Then create a JupyterLab space in SageMaker Studio, upload Voyage's notebook, and follow the instructions to deploy the model package using the ARN.","python:file://eval_end_to_end.py"
|
||||
"When using tools just to get Claude to produce JSON output following a particular schema, what key things should you do in terms of tool setup and prompting?","When using tools to get JSON output, you should provide a single tool, set the tool_choice to explicitly instruct the model to use that tool, and ensure the tool name and description are from the model's perspective since it will pass the input to the tool.","python:file://eval_end_to_end.py"
|
||||
"What are the key differences between the legacy Claude Instant 1.2 model and the Claude 3 Haiku model in terms of capabilities and performance?","The Claude 3 Haiku model has vision capabilities, is faster, more performant, and more intelligent than the legacy Claude Instant 1.2 model. Claude 3 Haiku also has more up-to-date training data.","python:file://eval_end_to_end.py"
|
||||
"What is one key benefit of using examples when prompt engineering with Claude?","One key benefit of using examples in prompts is that they reduce misinterpretation of instructions, leading to more accurate outputs from Claude.","python:file://eval_end_to_end.py"
|
||||
"According to the Claude Documentation, what is one key advantage of using prompt engineering instead of fine-tuning when it comes to adapting an AI model to new domains or tasks?","Prompt engineering allows you to easily adapt AI models to new domains by providing domain-specific context directly in the prompts, without needing to retrain the model through fine-tuning.","python:file://eval_end_to_end.py"
|
||||
"How can I quickly get started using the Claude for Sheets extension with a pre-made template?","You can make a copy of Anthropic's provided Claude for Sheets workbook template to quickly get started using the extension with your own work.","python:file://eval_end_to_end.py"
|
||||
"How does the ""index"" field in the ""content_block_delta"" event relate to the text being streamed in a response?","The ""index"" field in each ""content_block_delta"" event indicates which content block the text delta applies to. Multiple deltas with the same index consecutively stream the text for a single content block in the response.","python:file://eval_end_to_end.py"
|
||||
"How can you include an image as part of a Claude API request, and what image formats are currently supported?","To include an image in a Claude API request, provide it as a base64-encoded image in an ""image"" content block within the ""messages"" array. The currently supported image formats are JPEG, PNG, GIF, and WebP.","python:file://eval_end_to_end.py"
|
||||
"What is the relationship between time to first token (TTFT) and latency when evaluating a language model's performance?","TTFT is a specific measure of latency that captures the time it takes for a language model to generate the first token of its response after receiving a prompt. It is an important component of a model's overall latency and responsiveness, especially for interactive applications.","python:file://eval_end_to_end.py"
|
||||
"How can providing Claude with examples of handling certain edge cases like implicit requests or emotional prioritization help improve its performance in routing support tickets?","Providing edge case examples to Claude in the prompt can meaningfully improve its performance in correctly routing support tickets in scenarios where it may otherwise misclassify them, such as implicit requests, emotional prioritization, ambiguous intent vs. routing, or issue prioritization.","python:file://eval_end_to_end.py"
|
||||
"How does the stop_reason of ""tool_use"" relate to the overall workflow of integrating external tools with Claude?","When Claude determines that one of the user-provided tools can help answer the user's query, it constructs a tool use request. This causes the API response to have a stop_reason of ""tool_use"", signaling Claude's intent to use the tool. The user must then extract the tool input from Claude's request, run the actual tool code client-side, and continue the conversation by sending the tool results back to Claude.","python:file://eval_end_to_end.py"
|
||||
"According to the documentation, what error event and corresponding HTTP error code may be sent during periods of high usage for the Claude API when using streaming responses?","During periods of high usage, an overloaded_error event may be sent in the event stream, which would normally correspond to an HTTP 529 error code in a non-streaming context.","python:file://eval_end_to_end.py"
|
||||
"What are the two types of deltas that can be contained in a content_block_delta event when streaming responses from the Claude API?","The two types of deltas that can be contained in a content_block_delta event are text_delta and input_json_delta.","python:file://eval_end_to_end.py"
|
||||
"On what date did Claude 3.5 Sonnet and tool use both become generally available across the Claude API, Amazon Bedrock, and Google Vertex AI?","Claude 3.5 Sonnet became generally available across those platforms on June 20th, 2024, while tool use became generally available on May 30th, 2024.","python:file://eval_end_to_end.py"
|
||||
"In what order did Anthropic launch Claude.ai and the Claude iOS app in Canada and Europe?","Anthropic launched Claude.ai and the Claude iOS app in Europe in May 2024, and then launched them in Canada the following month in June 2024.","python:file://eval_end_to_end.py"
|
||||
"When the API response from Claude has a stop_reason of ""tool_use"", what does this indicate and what should be done next to continue the conversation?","A stop_reason of ""tool_use"" signals that Claude has decided to use a tool and has constructed a formatted tool use request. To continue the conversation, the tool name and input should be extracted from Claude's request, the actual tool code should be executed client-side, and then a new user message containing a tool_result content block should be sent to Claude.","python:file://eval_end_to_end.py"
|
||||
"What Python libraries are used in the example code snippet for evaluating tone and style in a customer service chatbot?","The example code snippet for evaluating tone and style in a customer service chatbot uses the anthropic Python library to interact with the Claude AI model.","python:file://eval_end_to_end.py"
|
||||
"What are the two main ways to authenticate when using the Anthropic Python SDK to access Claude models on Amazon Bedrock?","The two main ways to authenticate are: 1) Directly providing the aws_access_key, aws_secret_key, and optionally aws_session_token, or 2) Using the default AWS credential providers, such as the ~/.aws/credentials file or the AWS_SECRET_ACCESS_KEY and AWS_ACCESS_KEY_ID environment variables.","python:file://eval_end_to_end.py"
|
||||
"When deciding whether to implement leak-resistant prompt engineering strategies, what two factors should be considered and balanced?","When deciding to use leak-resistant prompt engineering, the potential reduction in prompt leaks should be balanced against the risk of degraded model performance due to the added complexity of the prompt.","python:file://eval_end_to_end.py"
|
||||
"How can selecting the appropriate Claude model based on your specific requirements help reduce latency in your application?","Choosing the right Claude model that best fits your needs in terms of speed and output quality is one of the most straightforward ways to reduce latency in your application. Anthropic offers a range of Claude models with different capabilities and performance characteristics to allow you to choose the optimal balance of intelligence, speed, and cost for your use case.","python:file://eval_end_to_end.py"
|
||||
"How can you stream responses from the Claude API using the Python SDK?","You can stream responses from the Claude API using the Python SDK by using the client.messages.stream() method and iterating over the stream.text_stream attribute in a for loop.","python:file://eval_end_to_end.py"
|
||||
"How can you guide Claude's response by pre-filling part of the response, and what API parameter is used to generate a short response in this case?","You can shape Claude's response by pre-filling part of it in the last position of the input messages list. To get a short response like a single multiple choice answer, you can set the ""max_tokens"" parameter to a small value like 1.","python:file://eval_end_to_end.py"
|
||||
"What is more important when building an eval set for an AI system - having a larger number of test cases with automated grading, or having fewer high-quality test cases graded by humans?","When building an eval set, it is better to prioritize having a larger volume of test cases with slightly lower signal automated grading over having fewer questions with high-quality human hand-grading.","python:file://eval_end_to_end.py"
|
||||
"What are the two required fields in a content_block_delta event for a text delta type?","The two required fields in a content_block_delta event for a text delta type are ""index"" and ""delta"", where the ""delta"" field contains a ""type"" of ""text_delta"" and the ""text"" being added.","python:file://eval_end_to_end.py"
|
||||
"What are two interactive ways to learn how to use Claude's capabilities, such as uploading PDFs and generating embeddings?","The Claude Cookbooks provides interactive Jupyter notebooks demonstrating how to upload PDFs, generate embeddings, and more. The Developer Console offers a prompt generator tool for easier, more powerful prompting.","python:file://eval_end_to_end.py"
|
||||
"Why does breaking a task into distinct subtasks for chained prompts help improve Claude's accuracy on the overall task?","Breaking a task into distinct subtasks for chained prompts improves Claude's accuracy because each subtask gets Claude's full attention, reducing errors compared to tackling the entire complex task at once.","python:file://eval_end_to_end.py"
|
||||
"How does the streaming format for Messages responses differ from Text Completions streaming responses?","Messages streaming responses can contain multiple content blocks of varying types, making the streaming format more complex compared to Text Completions which only include completion, ping, and error server-sent-events.","python:file://eval_end_to_end.py"
|
||||
"What are two ways to start experimenting with Claude as a user, according to Anthropic's documentation?","According to the documentation, users can start experimenting with Claude by visiting claude.ai or using Anthropic's web Console.","python:file://eval_end_to_end.py"
|
||||
"How can using chain prompts help reduce errors and inconsistency in complex tasks handled by Claude?","Chain prompts break complex tasks into smaller subtasks, allowing Claude to give its full attention to each one. This reduces errors and inconsistencies that may occur when trying to handle a complex workflow all at once.","python:file://eval_end_to_end.py"
|
||||
"What HTTP status code does an overloaded_error event correspond to in a non-streaming context for the Claude API?","In a non-streaming context, an overloaded_error event would normally correspond to an HTTP 529 status code.","python:file://eval_end_to_end.py"
|
||||
"What are the two ways to specify the format in which Voyage AI returns embeddings through its HTTP API?","When making a request to Voyage AI's embedding endpoint, you can either leave the encoding_format parameter unspecified to get the embeddings as lists of floating-point numbers, or set encoding_format to ""base64"" to get the embeddings compressed to Base64 encodings.","python:file://eval_end_to_end.py"
|
||||
"When streaming API requests that use tools, how are the input JSON deltas for tool_use content blocks sent, and how can they be accumulated and parsed by the client?","When streaming requests with tool use, the input JSON deltas for tool_use content blocks are sent as partial JSON strings in multiple content_block_delta events. The client can accumulate these partial JSON strings and parse the complete JSON object once a content_block_stop event is received, using a library like Pydantic for partial JSON parsing or helpers provided in Anthropic's SDKs.","python:file://eval_end_to_end.py"
|
||||
"What are the two interactive prompt engineering tutorials that Anthropic offers, and how do they differ?","Anthropic offers a GitHub prompting tutorial that covers prompt engineering concepts in-depth with examples, and a lighter-weight Google Sheets prompting tutorial that utilizes Claude for Sheets.","python:file://eval_end_to_end.py"
|
||||
"What are some of the key capabilities that make Claude suitable for enterprise use cases requiring integration with specialized applications and processing of large volumes of sensitive data?","Claude offers a 200K token context window, tool use for integration into specialized applications, multimodal input capabilities for richer context, and is uniquely positioned to serve high-trust industries processing large volumes of sensitive data with enterprise-grade security and data handling.","python:file://eval_end_to_end.py"
|
||||
"As of June 2024, in which regions are Anthropic's Claude.ai API and iOS app available?","As of June 2024, Anthropic's Claude.ai API and iOS app are available in the United States, Canada, and Europe.","python:file://eval_end_to_end.py"
|
||||
"What are the two main approaches for integrating Claude into a support ticket workflow, and how do they differ in terms of scalability and ease of implementation?","The two main approaches for integrating Claude into a support ticket workflow are push-based using webhooks, and pull-based. The push-based approach is more web-scalable but requires exposing a public endpoint which has IT security implications. The pull-based approach is easier to implement but makes unnecessary calls to the support ticket system.","python:file://eval_end_to_end.py"
|
||||
"When did Anthropic release a prompt generator tool to help guide Claude in generating high-quality prompts, and through what interface is it available?","On May 10th, 2024, Anthropic released a prompt generator tool that is available through the Developer Console.","python:file://eval_end_to_end.py"
|
||||
"Which Claude 3 model provides the best balance of intelligence and speed for high-throughput tasks like sales forecasting and targeted marketing?","The Claude 3 Sonnet model balances intelligence and speed, making it well-suited for high-throughput tasks like sales forecasting and targeted marketing.","python:file://eval_end_to_end.py"
|
||||
"How can you calculate the similarity between two Voyage embedding vectors, and what is this equivalent to since Voyage embeddings are normalized to length 1?","You can calculate the similarity between two Voyage embedding vectors using the dot product, which is equivalent to cosine similarity since Voyage embeddings are normalized to length 1.","python:file://eval_end_to_end.py"
|
||||
"How can using examples in prompts improve Claude's performance on complex tasks?","Well-chosen examples in prompts can boost Claude's ability to handle complex tasks by reducing misinterpretation of instructions, enforcing consistent structure and style, and serving as a guide for the desired output.","python:file://eval_end_to_end.py"
|
||||
"What are the two types of content block deltas that can be emitted when streaming responses with tool use, and what does each delta type contain?","When streaming responses with tool use, the two types of content block deltas are text deltas and input JSON deltas. Text deltas contain a ""text"" field with a string of the incrementally generated text. Input JSON deltas contain a ""partial_json"" field with a string containing part of the JSON object specifying the tool's input.","python:file://eval_end_to_end.py"
|
||||
"What are two key capabilities of Claude that enable it to build interactive systems and personalized user experiences?","Claude's question answering and text analysis capabilities enable it to build intelligent, interactive systems like chatbots and personalize user experiences by understanding sentiment and preferences.","python:file://eval_end_to_end.py"
|
||||
"What are the key event types included in a raw HTTP stream response when using message streaming, and what is the typical order they occur in?","A raw HTTP stream response includes a message_start event, followed by one or more content blocks (each with a content_block_start, content_block_delta events, and content_block_stop), a message_delta event, and a final message_stop event. Ping events may also be dispersed throughout.","python:file://eval_end_to_end.py"
|
||||
"What is the maximum number of images that can be included in a single request using the Claude API compared to the claude.ai interface?","The Messages API allows including up to 20 images per request, while the claude.ai interface has a lower limit of up to 5 images per turn.","python:file://eval_end_to_end.py"
|
||||
"When Claude's response is cut off due to hitting the max_tokens limit and contains an incomplete tool use block, what should you do to get the full tool use?","If Claude's response hits the max_tokens limit and has an incomplete tool use block, you should retry the request with a higher max_tokens value to get Claude's full response including the complete tool use.","python:file://eval_end_to_end.py"
|
||||
"What two steps are needed before running a classification evaluation on Claude according to the documentation?","Before running a classification evaluation on Claude, you need to 1) develop your test cases, and 2) take a look at Anthropic's guide to developing test cases.","python:file://eval_end_to_end.py"
|
||||
"How can you use the content parameter in the messages list to influence Claude's response?","You can provide content in the last position of the messages list, with the ""assistant"" role, to pre-fill part of Claude's response. This allows you to shape the assistant's output.","python:file://eval_end_to_end.py"
|
||||
"What are two key advantages of prompt engineering over fine-tuning when it comes to model comprehension and general knowledge preservation?","Compared to fine-tuning, prompt engineering is far more effective at helping models understand and utilize external content like retrieved documents. Prompt engineering also preserves the model's broad general knowledge, while fine-tuning risks catastrophic forgetting where the model loses its general capabilities.","python:file://eval_end_to_end.py"
|
||||
"What are the two main steps to get started with making requests to Claude models on Anthropic's Bedrock API?","To get started making requests to Claude models on Anthropic's Bedrock API, you need to: 1) Install and configure the AWS CLI, and 2) Install an SDK for accessing Bedrock, such as the Python SDK shown in the example code.","python:file://eval_end_to_end.py"
|
||||
"How can you check which Claude models are available in a specific AWS region using the AWS CLI?","You can list the available Claude models in a specific AWS region by running the command `aws bedrock list-foundation-models --region=<region> --by-provider anthropic --query ""modelSummaries[*].modelId""`, replacing `<region>` with the desired AWS region such as `us-west-2`.","python:file://eval_end_to_end.py"
|
||||
"What argument can be passed to the voyageai.Client.embed() method or the Voyage HTTP API to specify whether the input text is a query or a document?","The input_type argument can be passed with a value of ""query"" or ""document"" to specify the type of input text being embedded.","python:file://eval_end_to_end.py"
|
||||
"How do the streaming API delta formats differ between tool_use content blocks and text content blocks?","Tool_use content block deltas contain partial JSON strings for the input field, whereas text content block deltas directly contain the text delta. Tool_use deltas may have delays between streaming events as the model emits one complete key-value pair at a time.","python:file://eval_end_to_end.py"
|
||||
"What are the image file size limits when uploading images to Claude using the API versus on claude.ai?","When uploading images to Claude, the API has a maximum file size limit of 5MB per image, while on claude.ai the limit is 10MB per image.","python:file://eval_end_to_end.py"
|
||||
"What is one key consideration when selecting a Claude model for an enterprise use case that needs low latency?","When selecting a Claude model for an enterprise use case that requires low latency, it's important to choose the model that best balances speed and output quality based on the specific requirements of the use case.","python:file://eval_end_to_end.py"
|
||||
"What embedding model does Anthropic recommend for code retrieval, and how does its performance compare to alternatives according to Voyage AI?","For code retrieval, Voyage AI recommends using the voyage-code-2 embedding model, which they claim performs 17% better than alternatives and achieves state-of-the-art results on general-purpose corpora as well.","python:file://eval_end_to_end.py"
|
||||
"What are two ways the Claude Cookbooks can help developers learn to use Anthropic's APIs?","The Claude Cookbooks provides interactive Jupyter notebooks that demonstrate how to upload PDFs and work with embeddings to help developers learn to use Anthropic's APIs.","python:file://eval_end_to_end.py"
|
||||
"How does the size of the context window impact a language model's ability to utilize retrieval augmented generation (RAG)?","The size of the context window determines how much retrieved information can be passed to the language model to augment its knowledge when generating a response using RAG. A larger context window allows more relevant retrieved information to be utilized by the model, improving the accuracy and groundedness of the generated text.","python:file://eval_end_to_end.py"
|
||||
"How can the Evaluation tool in Anthropic's Claude platform help improve prompts and build more robust AI applications?","The Evaluation tool helps identify edge cases where prompts might falter, allows rating individual results to determine prompt performance, ensures consistent performance across inputs, and enables prompt refinement for better reliability. Reviewing results across test cases helps spot patterns to make informed adjustments that lead to more robust AI applications.","python:file://eval_end_to_end.py"
|
||||
"Which Claude model has the fastest comparative latency according to the comparison tables?","The Claude 3 Haiku model has the fastest comparative latency","python:file://eval_end_to_end.py"
|
||||
"How can you build up a conversation with multiple turns using the Anthropic Messages API in Python?","To have a multi-turn conversation using the Anthropic Messages API in Python, send the full conversation history in the messages parameter each time, including any prior user and assistant messages. The API is stateless, so the entire context must be provided with each request.","python:file://eval_end_to_end.py"
|
||||
"How can using XML tags to provide a specific role or context help improve Claude's analysis of a legal contract compared to not using a role prompt?","Providing Claude with a specific role, such as being the General Counsel of a company, using XML tags can help it catch critical legal issues and risks in a contract that it might miss without the role context, potentially saving the company millions of dollars.","python:file://eval_end_to_end.py"
|
||||
"What are the key differences between how Claude 3 Opus and Claude 3 Sonnet handle missing information when making tool calls?","When required parameters are missing, Claude 3 Opus is more likely to ask the user for the missing information, while Claude 3 Sonnet is more likely to try to infer reasonable values on its own to proceed with the tool call.","python:file://eval_end_to_end.py"
|
||||
"What steps should be taken to ensure a reliable deployment of an automated ticket routing system using Claude into a production environment?","To ensure a reliable production deployment of Claude for ticket routing, key steps include implementing retry logic to handle errors, conducting thorough staging and load testing, setting up error handling and logging, using a gradual rollout process, providing documentation and training, and establishing monitoring and alerting.","python:file://eval_end_to_end.py"
|
||||
"How should you evaluate a model's performance on a ticket routing classifier?","You should evaluate performance in terms of accuracy, cost, and speed.","python:file://eval_end_to_end.py"
|
||||
"What two methods does Anthropic recommend for learning how to prompt engineer with Claude before diving into the techniques?","Anthropic recommends trying their interactive GitHub prompting tutorial and Google Sheets prompting tutorial to learn prompt engineering concepts before diving into the techniques in the documentation.","python:file://eval_end_to_end.py"
|
||||
"What are the key differences between a pretrained large language model and Claude in terms of their training and capabilities?","Pretrained large language models are trained on unlabeled text data to predict the next word given the previous context, but are not inherently good at answering questions or following instructions without prompt engineering. In contrast, Claude is a large language model that has been further fine-tuned and trained using RLHF to be more helpful, honest, and capable of performing a wider range of useful tasks.","python:file://eval_end_to_end.py"
|
||||
"What are some key advantages of using prompt engineering instead of fine-tuning to adapt a pretrained language model for a specific task or domain?","Prompt engineering is typically faster, more cost-effective, requires less data and compute resources, and preserves the model's general knowledge compared to fine-tuning. It also allows for greater flexibility, rapid iteration, and transparency.","python:file://eval_end_to_end.py"
|
||||
"How can you authenticate with GCP before running requests to access Claude models on Vertex AI?","Before running requests to access Claude models on Vertex AI, you may need to run `gcloud auth application-default login` to authenticate with GCP.","python:file://eval_end_to_end.py"
|
||||
"What new capabilities and features were introduced by Anthropic on May 10th, 2024 and how do they enable users to create and tailor prompts for specific tasks?","According to the information provided, on May 10th, 2024, Anthropic introduced a new ""Prompt Generator"" tool in the Developer Console. This tool is designed to help users guide Claude to generate high-quality prompts tailored to their specific tasks. The text states that the Prompt Generator ""makes it easy to guide Claude to generate a high-quality prompts tailored to your specific tasks."" This indicates that the Prompt Generator feature provides users with the ability to create customized prompts for Claude, going beyond the standard prompting capabilities. By combining this information with the details about the Claude iOS app and the Claude Team plan released around the same time, we can infer that Anthropic was expanding its platform and tools to provide users with more advanced capabilities for interacting with and leveraging the Claude AI assistant for their specific needs and use cases.","python:file://eval_end_to_end.py"
|
||||
"On what date did both the Claude 3.5 Sonnet model and the Artifacts feature in Claude.ai become available?","Both Claude 3.5 Sonnet and the Artifacts feature in Claude.ai became available on June 20th, 2024.","python:file://eval_end_to_end.py"
|
||||
"When putting words in Claude's mouth to shape the response, what header and value can you use in the request to limit Claude's response to a single token?","You can use ""max_tokens"": 1 in the request to limit Claude's response to a single token when putting words in its mouth.","python:file://eval_end_to_end.py"
|
||||
"What does the temperature parameter do when working with large language models?","Temperature is a parameter that controls the randomness of the model during generation","python:file://eval_end_to_end.py"
|
||||
"What are two ways to specify API parameters when calling the Claude API using Claude for Sheets?","When calling the Claude API using Claude for Sheets, you can specify API parameters in two ways: 1) As additional arguments after the prompt and model in the CLAUDE() function, like =CLAUDE(prompt, model, ""max_tokens"", 3). 2) By passing in an API key to be used just for a specific cell, like ""api_key"", ""sk-ant-api03-j1W...""","python:file://eval_end_to_end.py"
|
||||
"How does prefilling the response with an opening curly brace ({ ) affect Claude's output when extracting structured data from text?","Prefilling Claude's response with { causes it to skip the preamble explanation and directly output the extracted data as a JSON object, resulting in a more concise response that is easier for programs to parse without additional processing.","python:file://eval_end_to_end.py"
|
||||
"What are some helpful resources provided by Anthropic to dive deeper into building with images using Claude?","Anthropic provides a multimodal cookbook with tips on getting started with images and best practices, as well as API reference documentation for the Messages API that includes example API calls involving images.","python:file://eval_end_to_end.py"
|
||||
"How do you specify the API key when creating a new Anthropic client in the Python and TypeScript SDK examples?","In both the Python and TypeScript examples, you can specify the API key as a string parameter when creating a new Anthropic client object. If no API key is provided, it defaults to using the ANTHROPIC_API_KEY environment variable.","python:file://eval_end_to_end.py"
|
||||
"What are two key benefits of using the Anthropic Evaluation tool when developing prompts for an AI classification application?","The Evaluation tool helps identify edge cases where the prompt might falter, and ensures consistent performance across a range of test case inputs. This allows you to refine the prompt for better reliability in the AI classification application.","python:file://eval_end_to_end.py"
|
||||
"What are the key differences between a pretrained language model like Claude's underlying model, and the final version of Claude available through Anthropic's API?","The pretrained language model that forms Claude's foundation is not inherently good at answering questions or following instructions. To create the helpful, honest and safe Claude assistant available through the API, the pretrained model underwent fine-tuning and reinforcement learning from human feedback (RLHF).","python:file://eval_end_to_end.py"
|
||||
"What is the IPv6 address range used by Anthropic?","The IPv6 address range used by Anthropic is 2607:6bc0::/48.","python:file://eval_end_to_end.py"
|
||||
"When using the Python SDK to create a message with Claude, what are two ways you can specify your API key?","When using the Python SDK, you can specify your API key either by passing it as the api_key parameter when initializing the Anthropic client, or by setting it as an environment variable named ANTHROPIC_API_KEY which the client will use by default.","python:file://eval_end_to_end.py"
|
||||
|
||||
|
@@ -1,101 +1,101 @@
|
||||
query,correct_chunks,__expected
|
||||
"How can you create multiple test cases for an evaluation in the Anthropic Evaluation tool?","[""https://docs.claude.com/en/docs/test-and-evaluate/eval-tool#creating-test-cases"",""https://docs.claude.com/en/docs/build-with-claude/develop-tests#building-evals-and-test-cases""]","python:file://eval_retrieval.py"
|
||||
"What embeddings provider does Anthropic recommend for customized domain-specific models, and what capabilities does this provider offer?","[""https://docs.claude.com/en/docs/build-with-claude/embeddings#before-implementing-embeddings"",""https://docs.claude.com/en/docs/build-with-claude/embeddings#how-to-get-embeddings-with-anthropic""]","python:file://eval_retrieval.py"
|
||||
"What are some key success metrics to consider when evaluating Claude's performance on a classification task, and how do they relate to choosing the right model to reduce latency?","[""https://docs.claude.com/en/docs/about-claude/use-cases/classification#evaluation-metrics"",""https://docs.claude.com/en/docs/test-and-evaluate/strengthen-guardrails/reduce-latency#1-choose-the-right-model""]","python:file://eval_retrieval.py"
|
||||
"What are two ways that Claude for Sheets can improve prompt engineering workflows compared to using chained prompts?","[""https://docs.claude.com/en/docs/build-with-claude/claude-for-sheets#why-use-claude-for-sheets"",""https://docs.claude.com/en/docs/build-with-claude/prompt-engineering/chain-prompts#how-to-chain-prompts""]","python:file://eval_retrieval.py"
|
||||
"What happens if a prompt for the Text Completions API is missing the ""\n\nHuman:"" and ""\n\nAssistant:"" turns?","[""https://docs.claude.com/en/api/migrating-from-text-completions-to-messages#system-prompt"",""https://docs.claude.com/en/api/prompt-validation#examples""]","python:file://eval_retrieval.py"
|
||||
"How do the additional tokens required for tool use in Claude API requests impact pricing compared to regular API requests?","[""https://docs.claude.com/en/docs/build-with-claude/tool-use#pricing"",""https://docs.claude.com/en/docs/build-with-claude/tool-use#how-tool-use-works""]","python:file://eval_retrieval.py"
|
||||
"When will the new Anthropic Developer Console features that show API usage, billing details, and rate limits be available?","[""https://docs.claude.com/en/release-notes/api#june-27th-2024""]","python:file://eval_retrieval.py"
|
||||
"When deciding whether to use chain-of-thought (CoT) for a task, what are two key factors to consider in order to strike the right balance between performance and latency?","[""https://docs.claude.com/en/docs/build-with-claude/prompt-engineering/chain-of-thought#why-not-let-claude-think"",""https://docs.claude.com/en/docs/build-with-claude/prompt-engineering/chain-of-thought#before-implementing-cot""]","python:file://eval_retrieval.py"
|
||||
"How can I use Claude to more easily digest the content of long PDF documents?","[""https://docs.claude.com/en/docs/build-with-claude/text-generation#anthropic-cookbook"",""https://docs.claude.com/en/docs/build-with-claude/vision#before-you-upload""]","python:file://eval_retrieval.py"
|
||||
"According to the documentation, where can you view your organization's current API rate limits in the Claude Console?","[""https://docs.claude.com/en/api/rate-limits#about-our-limits"",""https://docs.claude.com/en/release-notes/api#june-27th-2024""]","python:file://eval_retrieval.py"
|
||||
"How can we measure the performance of the ticket classification system implemented using Claude beyond just accuracy?","[""https://docs.claude.com/en/docs/about-claude/use-cases/ticket-routing#evaluation-methodology"",""https://docs.claude.com/en/docs/about-claude/use-cases/ticket-routing#prompting-claude-for-ticket-routing""]","python:file://eval_retrieval.py"
|
||||
"How can you specify a system prompt using the Text Completions API versus the Messages API?","[""https://docs.claude.com/en/api/prompt-validation#examples"",""https://docs.claude.com/en/api/migrating-from-text-completions-to-messages#system-prompt""]","python:file://eval_retrieval.py"
|
||||
"How can you combine XML tags with chain of thought reasoning to create high-performance prompts for Claude?","[""https://docs.claude.com/en/docs/build-with-claude/prompt-engineering/use-xml-tags#tagging-best-practices"",""https://docs.claude.com/en/docs/build-with-claude/tool-use#chain-of-thought""]","python:file://eval_retrieval.py"
|
||||
"When evaluating the Claude model's performance for ticket routing, what three key metrics are calculated and what are the results for the claude-3-haiku-20240307 model on the 91 test samples?","[""https://docs.claude.com/en/docs/about-claude/use-cases/ticket-routing#evaluation-methodology"",""https://docs.claude.com/en/docs/about-claude/use-cases/ticket-routing#example-data""]","python:file://eval_retrieval.py"
|
||||
"Before starting to engineer and improve a prompt in Claude, what key things does Anthropic recommend you have in place first?","[""https://docs.claude.com/en/docs/build-with-claude/define-success#next-steps"",""https://docs.claude.com/en/docs/build-with-claude/prompt-engineering#before-prompt-engineering""]","python:file://eval_retrieval.py"
|
||||
"How does the Messages API handle mid-response prompting compared to the Text Completions API?","[""https://docs.claude.com/en/api/migrating-from-text-completions-to-messages#inputs-and-outputs"",""https://docs.claude.com/en/api/migrating-from-text-completions-to-messages#putting-words-in-claudes-mouth""]","python:file://eval_retrieval.py"
|
||||
"How does Claude's response differ when given a role through a system prompt compared to not having a specific role in the financial analysis example?","[""https://docs.claude.com/en/docs/build-with-claude/prompt-engineering/system-prompts#example-2-financial-analysis""]","python:file://eval_retrieval.py"
|
||||
"What are some quantitative metrics that can be used to measure the success of a sentiment analysis model, and how might specific targets for those metrics be determined?","[""https://docs.claude.com/en/docs/build-with-claude/define-success#building-strong-criteria""]","python:file://eval_retrieval.py"
|
||||
"What is a power user tip mentioned in the documentation for creating high-performance prompts using XML tags?","[""https://docs.claude.com/en/docs/build-with-claude/prompt-engineering#how-to-prompt-engineer"",""https://docs.claude.com/en/docs/build-with-claude/prompt-engineering/use-xml-tags#tagging-best-practices""]","python:file://eval_retrieval.py"
|
||||
"How can you use an LLM like Claude to automatically grade the outputs of other LLMs based on a rubric?","[""https://docs.claude.com/en/docs/build-with-claude/develop-tests#tips-for-llm-based-grading"",""https://docs.claude.com/en/api/messages-examples#multiple-conversational-turns""]","python:file://eval_retrieval.py"
|
||||
"How can you access and deploy Voyage embeddings on AWS Marketplace?","[""https://docs.claude.com/en/docs/build-with-claude/embeddings#voyage-on-the-aws-marketplace""]","python:file://eval_retrieval.py"
|
||||
"When using tools just to get Claude to produce JSON output following a particular schema, what key things should you do in terms of tool setup and prompting?","[""https://docs.claude.com/en/docs/build-with-claude/tool-use#tool-use-examples"",""https://docs.claude.com/en/docs/build-with-claude/tool-use#json-output""]","python:file://eval_retrieval.py"
|
||||
"What are the key differences between the legacy Claude Instant 1.2 model and the Claude 3 Haiku model in terms of capabilities and performance?","[""https://docs.claude.com/en/docs/about-claude/models#legacy-model-comparison"",""https://docs.claude.com/en/docs/about-claude/models#model-comparison"",""https://docs.claude.com/en/docs/about-claude/models#legacy-models""]","python:file://eval_retrieval.py"
|
||||
"What is one key benefit of using examples when prompt engineering with Claude?","[""https://docs.claude.com/en/docs/build-with-claude/prompt-engineering/multishot-prompting#why-use-examples""]","python:file://eval_retrieval.py"
|
||||
"According to the Claude Documentation, what is one key advantage of using prompt engineering instead of fine-tuning when it comes to adapting an AI model to new domains or tasks?","[""https://docs.claude.com/en/docs/build-with-claude/prompt-engineering#when-to-prompt-engineer"",""https://docs.claude.com/en/docs/resources/glossary#fine-tuning""]","python:file://eval_retrieval.py"
|
||||
"How can I quickly get started using the Claude for Sheets extension with a pre-made template?","[""https://docs.claude.com/en/docs/build-with-claude/claude-for-sheets#claude-for-sheets-workbook-template"",""https://docs.claude.com/en/docs/build-with-claude/claude-for-sheets#get-started-with-claude-for-sheets""]","python:file://eval_retrieval.py"
|
||||
"How does the ""index"" field in the ""content_block_delta"" event relate to the text being streamed in a response?","[""https://docs.claude.com/en/api/messages-streaming#basic-streaming-request"",""https://docs.claude.com/en/api/messages-streaming#text-delta""]","python:file://eval_retrieval.py"
|
||||
"How can you include an image as part of a Claude API request, and what image formats are currently supported?","[""https://docs.claude.com/en/api/messages-examples#vision"",""https://docs.claude.com/en/docs/build-with-claude/vision#about-the-prompt-examples""]","python:file://eval_retrieval.py"
|
||||
"What is the relationship between time to first token (TTFT) and latency when evaluating a language model's performance?","[""https://docs.claude.com/en/docs/resources/glossary#ttft-time-to-first-token"",""https://docs.claude.com/en/docs/test-and-evaluate/strengthen-guardrails/reduce-latency#how-to-measure-latency"",""https://docs.claude.com/en/docs/resources/glossary#latency""]","python:file://eval_retrieval.py"
|
||||
"How can providing Claude with examples of handling certain edge cases like implicit requests or emotional prioritization help improve its performance in routing support tickets?","[""https://docs.claude.com/en/docs/about-claude/use-cases/ticket-routing#adapting-to-common-scenarios"",""https://docs.claude.com/en/docs/about-claude/use-cases/ticket-routing#prompting-claude-for-ticket-routing""]","python:file://eval_retrieval.py"
|
||||
"How does the stop_reason of ""tool_use"" relate to the overall workflow of integrating external tools with Claude?","[""https://docs.claude.com/en/api/messages-examples#tool-use-and-json-mode"",""https://docs.claude.com/en/docs/build-with-claude/tool-use#how-tool-use-works""]","python:file://eval_retrieval.py"
|
||||
"According to the documentation, what error event and corresponding HTTP error code may be sent during periods of high usage for the Claude API when using streaming responses?","[""https://docs.claude.com/en/api/messages-streaming#error-events"",""https://docs.claude.com/en/api/streaming#error-event-types"",""https://docs.claude.com/en/api/errors#http-errors""]","python:file://eval_retrieval.py"
|
||||
"What are the two types of deltas that can be contained in a content_block_delta event when streaming responses from the Claude API?","[""https://docs.claude.com/en/api/messages-streaming#text-delta"",""https://docs.claude.com/en/api/messages-streaming#delta-types""]","python:file://eval_retrieval.py"
|
||||
"On what date did Claude 3.5 Sonnet and tool use both become generally available across the Claude API, Amazon Bedrock, and Google Vertex AI?","[""https://docs.claude.com/en/release-notes/api#june-20th-2024"",""https://docs.claude.com/en/release-notes/api#may-30th-2024""]","python:file://eval_retrieval.py"
|
||||
"In what order did Anthropic launch Claude.ai and the Claude iOS app in Canada and Europe?","[""https://docs.claude.com/en/release-notes/claude-apps#june-5th-2024"",""https://docs.claude.com/en/release-notes/claude-apps#may-13th-2024""]","python:file://eval_retrieval.py"
|
||||
"When the API response from Claude has a stop_reason of ""tool_use"", what does this indicate and what should be done next to continue the conversation?","[""https://docs.claude.com/en/docs/build-with-claude/tool-use#json-output"",""https://docs.claude.com/en/docs/build-with-claude/tool-use#how-tool-use-works""]","python:file://eval_retrieval.py"
|
||||
"What Python libraries are used in the example code snippet for evaluating tone and style in a customer service chatbot?","[""https://docs.claude.com/en/docs/build-with-claude/develop-tests#example-evals""]","python:file://eval_retrieval.py"
|
||||
"What are the two main ways to authenticate when using the Anthropic Python SDK to access Claude models on Amazon Bedrock?","[""https://docs.claude.com/en/api/claude-on-amazon-bedrock#install-an-sdk-for-accessing-bedrock"",""https://docs.claude.com/en/api/claude-on-amazon-bedrock#making-requests""]","python:file://eval_retrieval.py"
|
||||
"When deciding whether to implement leak-resistant prompt engineering strategies, what two factors should be considered and balanced?","[""https://docs.claude.com/en/docs/test-and-evaluate/strengthen-guardrails/reduce-prompt-leak#strategies-to-reduce-prompt-leak"",""https://docs.claude.com/en/docs/test-and-evaluate/strengthen-guardrails/reduce-prompt-leak#before-you-try-to-reduce-prompt-leak""]","python:file://eval_retrieval.py"
|
||||
"How can selecting the appropriate Claude model based on your specific requirements help reduce latency in your application?","[""https://docs.claude.com/en/docs/test-and-evaluate/strengthen-guardrails/reduce-latency#1-choose-the-right-model"",""https://docs.claude.com/en/docs/intro-to-claude#model-options""]","python:file://eval_retrieval.py"
|
||||
"How can you stream responses from the Claude API using the Python SDK?","[""https://docs.claude.com/en/api/messages-streaming#streaming-with-sdks"",""https://docs.claude.com/en/api/client-sdks#python""]","python:file://eval_retrieval.py"
|
||||
"How can you guide Claude's response by pre-filling part of the response, and what API parameter is used to generate a short response in this case?","[""https://docs.claude.com/en/api/messages-examples#putting-words-in-claudes-mouth"",""https://docs.claude.com/en/api/messages-examples#basic-request-and-response""]","python:file://eval_retrieval.py"
|
||||
"What is more important when building an eval set for an AI system - having a larger number of test cases with automated grading, or having fewer high-quality test cases graded by humans?","[""https://docs.claude.com/en/docs/build-with-claude/develop-tests#eval-design-principles"",""https://docs.claude.com/en/docs/build-with-claude/develop-tests#building-evals-and-test-cases""]","python:file://eval_retrieval.py"
|
||||
"What are the two required fields in a content_block_delta event for a text delta type?","[""https://docs.claude.com/en/api/messages-streaming#delta-types"",""https://docs.claude.com/en/api/messages-streaming#text-delta""]","python:file://eval_retrieval.py"
|
||||
"What are two interactive ways to learn how to use Claude's capabilities, such as uploading PDFs and generating embeddings?","[""https://docs.claude.com/en/docs/quickstart#next-steps"",""https://docs.claude.com/en/docs/welcome#develop-with-claude""]","python:file://eval_retrieval.py"
|
||||
"Why does breaking a task into distinct subtasks for chained prompts help improve Claude's accuracy on the overall task?","[""https://docs.claude.com/en/docs/build-with-claude/prompt-engineering/chain-prompts#how-to-chain-prompts"",""https://docs.claude.com/en/docs/build-with-claude/prompt-engineering/chain-prompts#why-chain-prompts""]","python:file://eval_retrieval.py"
|
||||
"How does the streaming format for Messages responses differ from Text Completions streaming responses?","[""https://docs.claude.com/en/api/migrating-from-text-completions-to-messages#streaming-format""]","python:file://eval_retrieval.py"
|
||||
"What are two ways to start experimenting with Claude as a user, according to Anthropic's documentation?","[""https://docs.claude.com/en/docs/about-claude/models#get-started-with-claude""]","python:file://eval_retrieval.py"
|
||||
"How can using chain prompts help reduce errors and inconsistency in complex tasks handled by Claude?","[""https://docs.claude.com/en/docs/build-with-claude/prompt-engineering/chain-prompts#why-chain-prompts"",""https://docs.claude.com/en/docs/test-and-evaluate/strengthen-guardrails/increase-consistency#chain-prompts-for-complex-tasks""]","python:file://eval_retrieval.py"
|
||||
"What HTTP status code does an overloaded_error event correspond to in a non-streaming context for the Claude API?","[""https://docs.claude.com/en/api/streaming#error-event-types"",""https://docs.claude.com/en/api/messages-streaming#error-events""]","python:file://eval_retrieval.py"
|
||||
"What are the two ways to specify the format in which Voyage AI returns embeddings through its HTTP API?","[""https://docs.claude.com/en/docs/build-with-claude/embeddings#voyage-http-api""]","python:file://eval_retrieval.py"
|
||||
"When streaming API requests that use tools, how are the input JSON deltas for tool_use content blocks sent, and how can they be accumulated and parsed by the client?","[""https://docs.claude.com/en/api/messages-streaming#input-json-delta"",""https://docs.claude.com/en/api/messages-streaming#streaming-request-with-tool-use""]","python:file://eval_retrieval.py"
|
||||
"What are the two interactive prompt engineering tutorials that Anthropic offers, and how do they differ?","[""https://docs.claude.com/en/docs/build-with-claude/claude-for-sheets#prompt-engineering-interactive-tutorial"",""https://docs.claude.com/en/docs/build-with-claude/prompt-engineering#prompt-engineering-tutorial""]","python:file://eval_retrieval.py"
|
||||
"What are some of the key capabilities that make Claude suitable for enterprise use cases requiring integration with specialized applications and processing of large volumes of sensitive data?","[""https://docs.claude.com/en/docs/intro-to-claude#enterprise-considerations""]","python:file://eval_retrieval.py"
|
||||
"As of June 2024, in which regions are Anthropic's Claude.ai API and iOS app available?","[""https://docs.claude.com/en/release-notes/claude-apps#may-1st-2024"",""https://docs.claude.com/en/release-notes/claude-apps#june-5th-2024"",""https://docs.claude.com/en/release-notes/claude-apps#may-13th-2024""]","python:file://eval_retrieval.py"
|
||||
"What are the two main approaches for integrating Claude into a support ticket workflow, and how do they differ in terms of scalability and ease of implementation?","[""https://docs.claude.com/en/docs/about-claude/use-cases/ticket-routing#integrate-claude-into-your-support-workflow"",""https://docs.claude.com/en/docs/about-claude/use-cases/ticket-routing#introduction""]","python:file://eval_retrieval.py"
|
||||
"When did Anthropic release a prompt generator tool to help guide Claude in generating high-quality prompts, and through what interface is it available?","[""https://docs.claude.com/en/release-notes/api#may-10th-2024""]","python:file://eval_retrieval.py"
|
||||
"Which Claude 3 model provides the best balance of intelligence and speed for high-throughput tasks like sales forecasting and targeted marketing?","[""https://docs.claude.com/en/api/claude-on-vertex-ai#api-model-names"",""https://docs.claude.com/en/docs/intro-to-claude#claude-3-family""]","python:file://eval_retrieval.py"
|
||||
"How can you calculate the similarity between two Voyage embedding vectors, and what is this equivalent to since Voyage embeddings are normalized to length 1?","[""https://docs.claude.com/en/docs/build-with-claude/embeddings#faq"",""https://docs.claude.com/en/docs/build-with-claude/embeddings#voyage-embedding-example""]","python:file://eval_retrieval.py"
|
||||
"How can using examples in prompts improve Claude's performance on complex tasks?","[""https://docs.claude.com/en/docs/build-with-claude/prompt-engineering/multishot-prompting#why-use-examples"",""https://docs.claude.com/en/docs/test-and-evaluate/strengthen-guardrails/increase-consistency#chain-prompts-for-complex-tasks""]","python:file://eval_retrieval.py"
|
||||
"What are the two types of content block deltas that can be emitted when streaming responses with tool use, and what does each delta type contain?","[""https://docs.claude.com/en/api/messages-streaming#input-json-delta"",""https://docs.claude.com/en/api/messages-streaming#text-delta"",""https://docs.claude.com/en/api/messages-streaming#streaming-request-with-tool-use"",""https://docs.claude.com/en/api/messages-streaming#delta-types""]","python:file://eval_retrieval.py"
|
||||
"What are two key capabilities of Claude that enable it to build interactive systems and personalized user experiences?","[""https://docs.claude.com/en/docs/build-with-claude/text-generation#text-capabilities-and-use-cases""]","python:file://eval_retrieval.py"
|
||||
"What are the key event types included in a raw HTTP stream response when using message streaming, and what is the typical order they occur in?","[""https://docs.claude.com/en/api/messages-streaming#event-types"",""https://docs.claude.com/en/api/messages-streaming#raw-http-stream-response""]","python:file://eval_retrieval.py"
|
||||
"What is the maximum number of images that can be included in a single request using the Claude API compared to the claude.ai interface?","[""https://docs.claude.com/en/docs/build-with-claude/vision#about-the-prompt-examples"",""https://docs.claude.com/en/docs/build-with-claude/vision#faq""]","python:file://eval_retrieval.py"
|
||||
"When Claude's response is cut off due to hitting the max_tokens limit and contains an incomplete tool use block, what should you do to get the full tool use?","[""https://docs.claude.com/en/docs/build-with-claude/tool-use#troubleshooting-errors""]","python:file://eval_retrieval.py"
|
||||
"What two steps are needed before running a classification evaluation on Claude according to the documentation?","[""https://docs.claude.com/en/docs/about-claude/use-cases/classification#3-run-your-eval"",""https://docs.claude.com/en/docs/about-claude/use-cases/classification#2-develop-your-test-cases""]","python:file://eval_retrieval.py"
|
||||
"How can you use the content parameter in the messages list to influence Claude's response?","[""https://docs.claude.com/en/api/messages-examples#basic-request-and-response"",""https://docs.claude.com/en/api/messages-examples#putting-words-in-claudes-mouth""]","python:file://eval_retrieval.py"
|
||||
"What are two key advantages of prompt engineering over fine-tuning when it comes to model comprehension and general knowledge preservation?","[""https://docs.claude.com/en/docs/build-with-claude/prompt-engineering#when-to-prompt-engineer"",""https://docs.claude.com/en/docs/resources/glossary#fine-tuning""]","python:file://eval_retrieval.py"
|
||||
"What are the two main steps to get started with making requests to Claude models on Anthropic's Bedrock API?","[""https://docs.claude.com/en/api/claude-on-amazon-bedrock#install-and-configure-the-aws-cli"",""https://docs.claude.com/en/api/claude-on-amazon-bedrock#making-requests""]","python:file://eval_retrieval.py"
|
||||
"How can you check which Claude models are available in a specific AWS region using the AWS CLI?","[""https://docs.claude.com/en/api/claude-on-amazon-bedrock#subscribe-to-anthropic-models"",""https://docs.claude.com/en/api/claude-on-amazon-bedrock#list-available-models""]","python:file://eval_retrieval.py"
|
||||
"What argument can be passed to the voyageai.Client.embed() method or the Voyage HTTP API to specify whether the input text is a query or a document?","[""https://docs.claude.com/en/docs/build-with-claude/embeddings#voyage-python-package"",""https://docs.claude.com/en/docs/build-with-claude/embeddings#voyage-http-api""]","python:file://eval_retrieval.py"
|
||||
"How do the streaming API delta formats differ between tool_use content blocks and text content blocks?","[""https://docs.claude.com/en/api/messages-streaming#input-json-delta"",""https://docs.claude.com/en/api/messages-streaming#text-delta""]","python:file://eval_retrieval.py"
|
||||
"What are the image file size limits when uploading images to Claude using the API versus on claude.ai?","[""https://docs.claude.com/en/docs/build-with-claude/vision#faq""]","python:file://eval_retrieval.py"
|
||||
"What is one key consideration when selecting a Claude model for an enterprise use case that needs low latency?","[""https://docs.claude.com/en/docs/intro-to-claude#model-options"",""https://docs.claude.com/en/docs/test-and-evaluate/strengthen-guardrails/reduce-latency#1-choose-the-right-model""]","python:file://eval_retrieval.py"
|
||||
"What embedding model does Anthropic recommend for code retrieval, and how does its performance compare to alternatives according to Voyage AI?","[""https://docs.claude.com/en/docs/build-with-claude/embeddings#how-to-get-embeddings-with-anthropic"",""https://docs.claude.com/en/docs/build-with-claude/embeddings#available-voyage-models""]","python:file://eval_retrieval.py"
|
||||
"What are two ways the Claude Cookbook can help developers learn to use Anthropic's APIs?","[""https://docs.claude.com/en/docs/welcome#develop-with-claude"",""https://docs.claude.com/en/docs/quickstart#next-steps""]","python:file://eval_retrieval.py"
|
||||
"How does the size of the context window impact a language model's ability to utilize retrieval augmented generation (RAG)?","[""https://docs.claude.com/en/docs/resources/glossary#context-window"",""https://docs.claude.com/en/docs/resources/glossary#rag-retrieval-augmented-generation""]","python:file://eval_retrieval.py"
|
||||
"How can the Evaluation tool in Anthropic's Claude platform help improve prompts and build more robust AI applications?","[""https://docs.claude.com/en/docs/test-and-evaluate/eval-tool#understanding-results"",""https://docs.claude.com/en/docs/test-and-evaluate/eval-tool#creating-test-cases""]","python:file://eval_retrieval.py"
|
||||
"Which Claude model has the fastest comparative latency according to the comparison tables?","[""https://docs.claude.com/en/docs/about-claude/models#model-comparison"",""https://docs.claude.com/en/docs/about-claude/models#legacy-model-comparison""]","python:file://eval_retrieval.py"
|
||||
"How can you build up a conversation with multiple turns using the Anthropic Messages API in Python?","[""https://docs.claude.com/en/api/client-sdks#python"",""https://docs.claude.com/en/api/messages-examples#multiple-conversational-turns""]","python:file://eval_retrieval.py"
|
||||
"How can using XML tags to provide a specific role or context help improve Claude's analysis of a legal contract compared to not using a role prompt?","[""https://docs.claude.com/en/docs/build-with-claude/prompt-engineering/use-xml-tags#examples"",""https://docs.claude.com/en/docs/build-with-claude/prompt-engineering/system-prompts#example-1-legal-contract-analysis""]","python:file://eval_retrieval.py"
|
||||
"What are the key differences between how Claude 3 Opus and Claude 3 Sonnet handle missing information when making tool calls?","[""https://docs.claude.com/en/docs/build-with-claude/tool-use#chain-of-thought"",""https://docs.claude.com/en/docs/build-with-claude/tool-use#tool-use-examples""]","python:file://eval_retrieval.py"
|
||||
"What steps should be taken to ensure a reliable deployment of an automated ticket routing system using Claude into a production environment?","[""https://docs.claude.com/en/docs/about-claude/use-cases/ticket-routing#additional-considerations"",""https://docs.claude.com/en/docs/about-claude/use-cases/ticket-routing#integrate-claude-into-your-support-workflow""]","python:file://eval_retrieval.py"
|
||||
"How should you evaluate a model's performance on a ticket routing classifier?","[""https://docs.claude.com/en/docs/about-claude/use-cases/ticket-routing#evaluating-the-performance-of-your-ticket-routing-classifier"",""https://docs.claude.com/en/docs/about-claude/use-cases/ticket-routing#integrate-claude-into-your-support-workflow""]","python:file://eval_retrieval.py"
|
||||
"What two methods does Anthropic recommend for learning how to prompt engineer with Claude before diving into the techniques?","[""https://docs.claude.com/en/docs/build-with-claude/prompt-engineering#how-to-prompt-engineer"",""https://docs.claude.com/en/docs/build-with-claude/prompt-engineering#prompt-engineering-tutorial""]","python:file://eval_retrieval.py"
|
||||
"What are the key differences between a pretrained large language model and Claude in terms of their training and capabilities?","[""https://docs.claude.com/en/docs/resources/glossary#llm"",""https://docs.claude.com/en/docs/resources/glossary#pretraining""]","python:file://eval_retrieval.py"
|
||||
"What are some key advantages of using prompt engineering instead of fine-tuning to adapt a pretrained language model for a specific task or domain?","[""https://docs.claude.com/en/docs/resources/glossary#fine-tuning"",""https://docs.claude.com/en/docs/build-with-claude/prompt-engineering#when-to-prompt-engineer"",""https://docs.claude.com/en/docs/resources/glossary#pretraining""]","python:file://eval_retrieval.py"
|
||||
"How can you authenticate with GCP before running requests to access Claude models on Vertex AI?","[""https://docs.claude.com/en/api/claude-on-vertex-ai#making-requests"",""https://docs.claude.com/en/api/claude-on-vertex-ai#accessing-vertex-ai""]","python:file://eval_retrieval.py"
|
||||
"What new capabilities and features were introduced by Anthropic on May 10th, 2024 and how do they enable users to create and tailor prompts for specific tasks?","[""https://docs.claude.com/en/release-notes/api#may-10th-2024""]","python:file://eval_retrieval.py"
|
||||
"On what date did both the Claude 3.5 Sonnet model and the Artifacts feature in Claude.ai become available?","[""https://docs.claude.com/en/release-notes/api#june-20th-2024"",""https://docs.claude.com/en/release-notes/claude-apps#june-20th-2024""]","python:file://eval_retrieval.py"
|
||||
"When putting words in Claude's mouth to shape the response, what header and value can you use in the request to limit Claude's response to a single token?","[""https://docs.claude.com/en/api/messages-examples#basic-request-and-response"",""https://docs.claude.com/en/api/messages-examples#putting-words-in-claudes-mouth""]","python:file://eval_retrieval.py"
|
||||
"What does the temperature parameter do when working with large language models?","[""https://docs.claude.com/en/docs/resources/glossary#temperature"",""https://docs.claude.com/en/docs/test-and-evaluate/strengthen-guardrails/reduce-latency#2-optimize-prompt-and-output-length""]","python:file://eval_retrieval.py"
|
||||
"What are two ways to specify API parameters when calling the Claude API using Claude for Sheets?","[""https://docs.claude.com/en/docs/test-and-evaluate/eval-tool#tips-for-effective-evaluation"",""https://docs.claude.com/en/docs/build-with-claude/prompt-engineering/prefill-claudes-response#how-to-prefill-claudes-response"",""https://docs.claude.com/en/docs/build-with-claude/claude-for-sheets#enter-your-first-prompt""]","python:file://eval_retrieval.py"
|
||||
"How does prefilling the response with an opening curly brace ({ ) affect Claude's output when extracting structured data from text?","[""https://docs.claude.com/en/docs/build-with-claude/prompt-engineering/prefill-claudes-response#example-1-controlling-output-formatting-and-skipping-the-preamble""]","python:file://eval_retrieval.py"
|
||||
"What are some helpful resources provided by Anthropic to dive deeper into building with images using Claude?","[""https://docs.claude.com/en/docs/build-with-claude/vision#dive-deeper-into-vision"",""https://docs.claude.com/en/docs/build-with-claude/vision#about-the-prompt-examples""]","python:file://eval_retrieval.py"
|
||||
"How do you specify the API key when creating a new Anthropic client in the Python and TypeScript SDK examples?","[""https://docs.claude.com/en/api/client-sdks#typescript"",""https://docs.claude.com/en/api/client-sdks#python""]","python:file://eval_retrieval.py"
|
||||
"What are two key benefits of using the Anthropic Evaluation tool when developing prompts for an AI classification application?","[""https://docs.claude.com/en/docs/about-claude/use-cases/classification#2-develop-your-test-cases"",""https://docs.claude.com/en/docs/test-and-evaluate/eval-tool#understanding-results""]","python:file://eval_retrieval.py"
|
||||
"What are the key differences between a pretrained language model like Claude's underlying model, and the final version of Claude available through Anthropic's API?","[""https://docs.claude.com/en/docs/resources/glossary#pretraining"",""https://docs.claude.com/en/docs/resources/glossary#llm"",""https://docs.claude.com/en/docs/resources/glossary#fine-tuning""]","python:file://eval_retrieval.py"
|
||||
"What is the IPv6 address range used by Anthropic?","[""https://docs.claude.com/en/api/ip-addresses#ipv6""]","python:file://eval_retrieval.py"
|
||||
"When using the Python SDK to create a message with Claude, what are two ways you can specify your API key?","[""https://docs.claude.com/en/api/messages-examples#multiple-conversational-turns"",""https://docs.claude.com/en/api/client-sdks#python""]","python:file://eval_retrieval.py"
|
||||
query,correct_chunks,__expected
|
||||
"How can you create multiple test cases for an evaluation in the Anthropic Evaluation tool?","[""https://docs.claude.com/en/docs/test-and-evaluate/eval-tool#creating-test-cases"",""https://docs.claude.com/en/docs/build-with-claude/develop-tests#building-evals-and-test-cases""]","python:file://eval_retrieval.py"
|
||||
"What embeddings provider does Anthropic recommend for customized domain-specific models, and what capabilities does this provider offer?","[""https://docs.claude.com/en/docs/build-with-claude/embeddings#before-implementing-embeddings"",""https://docs.claude.com/en/docs/build-with-claude/embeddings#how-to-get-embeddings-with-anthropic""]","python:file://eval_retrieval.py"
|
||||
"What are some key success metrics to consider when evaluating Claude's performance on a classification task, and how do they relate to choosing the right model to reduce latency?","[""https://docs.claude.com/en/docs/about-claude/use-cases/classification#evaluation-metrics"",""https://docs.claude.com/en/docs/test-and-evaluate/strengthen-guardrails/reduce-latency#1-choose-the-right-model""]","python:file://eval_retrieval.py"
|
||||
"What are two ways that Claude for Sheets can improve prompt engineering workflows compared to using chained prompts?","[""https://docs.claude.com/en/docs/build-with-claude/claude-for-sheets#why-use-claude-for-sheets"",""https://docs.claude.com/en/docs/build-with-claude/prompt-engineering/chain-prompts#how-to-chain-prompts""]","python:file://eval_retrieval.py"
|
||||
"What happens if a prompt for the Text Completions API is missing the ""\n\nHuman:"" and ""\n\nAssistant:"" turns?","[""https://docs.claude.com/en/api/migrating-from-text-completions-to-messages#system-prompt"",""https://docs.claude.com/en/api/prompt-validation#examples""]","python:file://eval_retrieval.py"
|
||||
"How do the additional tokens required for tool use in Claude API requests impact pricing compared to regular API requests?","[""https://docs.claude.com/en/docs/build-with-claude/tool-use#pricing"",""https://docs.claude.com/en/docs/build-with-claude/tool-use#how-tool-use-works""]","python:file://eval_retrieval.py"
|
||||
"When will the new Anthropic Developer Console features that show API usage, billing details, and rate limits be available?","[""https://docs.claude.com/en/release-notes/api#june-27th-2024""]","python:file://eval_retrieval.py"
|
||||
"When deciding whether to use chain-of-thought (CoT) for a task, what are two key factors to consider in order to strike the right balance between performance and latency?","[""https://docs.claude.com/en/docs/build-with-claude/prompt-engineering/chain-of-thought#why-not-let-claude-think"",""https://docs.claude.com/en/docs/build-with-claude/prompt-engineering/chain-of-thought#before-implementing-cot""]","python:file://eval_retrieval.py"
|
||||
"How can I use Claude to more easily digest the content of long PDF documents?","[""https://docs.claude.com/en/docs/build-with-claude/text-generation#anthropic-cookbook"",""https://docs.claude.com/en/docs/build-with-claude/vision#before-you-upload""]","python:file://eval_retrieval.py"
|
||||
"According to the documentation, where can you view your organization's current API rate limits in the Claude Console?","[""https://docs.claude.com/en/api/rate-limits#about-our-limits"",""https://docs.claude.com/en/release-notes/api#june-27th-2024""]","python:file://eval_retrieval.py"
|
||||
"How can we measure the performance of the ticket classification system implemented using Claude beyond just accuracy?","[""https://docs.claude.com/en/docs/about-claude/use-cases/ticket-routing#evaluation-methodology"",""https://docs.claude.com/en/docs/about-claude/use-cases/ticket-routing#prompting-claude-for-ticket-routing""]","python:file://eval_retrieval.py"
|
||||
"How can you specify a system prompt using the Text Completions API versus the Messages API?","[""https://docs.claude.com/en/api/prompt-validation#examples"",""https://docs.claude.com/en/api/migrating-from-text-completions-to-messages#system-prompt""]","python:file://eval_retrieval.py"
|
||||
"How can you combine XML tags with chain of thought reasoning to create high-performance prompts for Claude?","[""https://docs.claude.com/en/docs/build-with-claude/prompt-engineering/use-xml-tags#tagging-best-practices"",""https://docs.claude.com/en/docs/build-with-claude/tool-use#chain-of-thought""]","python:file://eval_retrieval.py"
|
||||
"When evaluating the Claude model's performance for ticket routing, what three key metrics are calculated and what are the results for the claude-3-haiku-20240307 model on the 91 test samples?","[""https://docs.claude.com/en/docs/about-claude/use-cases/ticket-routing#evaluation-methodology"",""https://docs.claude.com/en/docs/about-claude/use-cases/ticket-routing#example-data""]","python:file://eval_retrieval.py"
|
||||
"Before starting to engineer and improve a prompt in Claude, what key things does Anthropic recommend you have in place first?","[""https://docs.claude.com/en/docs/build-with-claude/define-success#next-steps"",""https://docs.claude.com/en/docs/build-with-claude/prompt-engineering#before-prompt-engineering""]","python:file://eval_retrieval.py"
|
||||
"How does the Messages API handle mid-response prompting compared to the Text Completions API?","[""https://docs.claude.com/en/api/migrating-from-text-completions-to-messages#inputs-and-outputs"",""https://docs.claude.com/en/api/migrating-from-text-completions-to-messages#putting-words-in-claudes-mouth""]","python:file://eval_retrieval.py"
|
||||
"How does Claude's response differ when given a role through a system prompt compared to not having a specific role in the financial analysis example?","[""https://docs.claude.com/en/docs/build-with-claude/prompt-engineering/system-prompts#example-2-financial-analysis""]","python:file://eval_retrieval.py"
|
||||
"What are some quantitative metrics that can be used to measure the success of a sentiment analysis model, and how might specific targets for those metrics be determined?","[""https://docs.claude.com/en/docs/build-with-claude/define-success#building-strong-criteria""]","python:file://eval_retrieval.py"
|
||||
"What is a power user tip mentioned in the documentation for creating high-performance prompts using XML tags?","[""https://docs.claude.com/en/docs/build-with-claude/prompt-engineering#how-to-prompt-engineer"",""https://docs.claude.com/en/docs/build-with-claude/prompt-engineering/use-xml-tags#tagging-best-practices""]","python:file://eval_retrieval.py"
|
||||
"How can you use an LLM like Claude to automatically grade the outputs of other LLMs based on a rubric?","[""https://docs.claude.com/en/docs/build-with-claude/develop-tests#tips-for-llm-based-grading"",""https://docs.claude.com/en/api/messages-examples#multiple-conversational-turns""]","python:file://eval_retrieval.py"
|
||||
"How can you access and deploy Voyage embeddings on AWS Marketplace?","[""https://docs.claude.com/en/docs/build-with-claude/embeddings#voyage-on-the-aws-marketplace""]","python:file://eval_retrieval.py"
|
||||
"When using tools just to get Claude to produce JSON output following a particular schema, what key things should you do in terms of tool setup and prompting?","[""https://docs.claude.com/en/docs/build-with-claude/tool-use#tool-use-examples"",""https://docs.claude.com/en/docs/build-with-claude/tool-use#json-output""]","python:file://eval_retrieval.py"
|
||||
"What are the key differences between the legacy Claude Instant 1.2 model and the Claude 3 Haiku model in terms of capabilities and performance?","[""https://docs.claude.com/en/docs/about-claude/models#legacy-model-comparison"",""https://docs.claude.com/en/docs/about-claude/models#model-comparison"",""https://docs.claude.com/en/docs/about-claude/models#legacy-models""]","python:file://eval_retrieval.py"
|
||||
"What is one key benefit of using examples when prompt engineering with Claude?","[""https://docs.claude.com/en/docs/build-with-claude/prompt-engineering/multishot-prompting#why-use-examples""]","python:file://eval_retrieval.py"
|
||||
"According to the Claude Documentation, what is one key advantage of using prompt engineering instead of fine-tuning when it comes to adapting an AI model to new domains or tasks?","[""https://docs.claude.com/en/docs/build-with-claude/prompt-engineering#when-to-prompt-engineer"",""https://docs.claude.com/en/docs/resources/glossary#fine-tuning""]","python:file://eval_retrieval.py"
|
||||
"How can I quickly get started using the Claude for Sheets extension with a pre-made template?","[""https://docs.claude.com/en/docs/build-with-claude/claude-for-sheets#claude-for-sheets-workbook-template"",""https://docs.claude.com/en/docs/build-with-claude/claude-for-sheets#get-started-with-claude-for-sheets""]","python:file://eval_retrieval.py"
|
||||
"How does the ""index"" field in the ""content_block_delta"" event relate to the text being streamed in a response?","[""https://docs.claude.com/en/api/messages-streaming#basic-streaming-request"",""https://docs.claude.com/en/api/messages-streaming#text-delta""]","python:file://eval_retrieval.py"
|
||||
"How can you include an image as part of a Claude API request, and what image formats are currently supported?","[""https://docs.claude.com/en/api/messages-examples#vision"",""https://docs.claude.com/en/docs/build-with-claude/vision#about-the-prompt-examples""]","python:file://eval_retrieval.py"
|
||||
"What is the relationship between time to first token (TTFT) and latency when evaluating a language model's performance?","[""https://docs.claude.com/en/docs/resources/glossary#ttft-time-to-first-token"",""https://docs.claude.com/en/docs/test-and-evaluate/strengthen-guardrails/reduce-latency#how-to-measure-latency"",""https://docs.claude.com/en/docs/resources/glossary#latency""]","python:file://eval_retrieval.py"
|
||||
"How can providing Claude with examples of handling certain edge cases like implicit requests or emotional prioritization help improve its performance in routing support tickets?","[""https://docs.claude.com/en/docs/about-claude/use-cases/ticket-routing#adapting-to-common-scenarios"",""https://docs.claude.com/en/docs/about-claude/use-cases/ticket-routing#prompting-claude-for-ticket-routing""]","python:file://eval_retrieval.py"
|
||||
"How does the stop_reason of ""tool_use"" relate to the overall workflow of integrating external tools with Claude?","[""https://docs.claude.com/en/api/messages-examples#tool-use-and-json-mode"",""https://docs.claude.com/en/docs/build-with-claude/tool-use#how-tool-use-works""]","python:file://eval_retrieval.py"
|
||||
"According to the documentation, what error event and corresponding HTTP error code may be sent during periods of high usage for the Claude API when using streaming responses?","[""https://docs.claude.com/en/api/messages-streaming#error-events"",""https://docs.claude.com/en/api/streaming#error-event-types"",""https://docs.claude.com/en/api/errors#http-errors""]","python:file://eval_retrieval.py"
|
||||
"What are the two types of deltas that can be contained in a content_block_delta event when streaming responses from the Claude API?","[""https://docs.claude.com/en/api/messages-streaming#text-delta"",""https://docs.claude.com/en/api/messages-streaming#delta-types""]","python:file://eval_retrieval.py"
|
||||
"On what date did Claude 3.5 Sonnet and tool use both become generally available across the Claude API, Amazon Bedrock, and Google Vertex AI?","[""https://docs.claude.com/en/release-notes/api#june-20th-2024"",""https://docs.claude.com/en/release-notes/api#may-30th-2024""]","python:file://eval_retrieval.py"
|
||||
"In what order did Anthropic launch Claude.ai and the Claude iOS app in Canada and Europe?","[""https://docs.claude.com/en/release-notes/claude-apps#june-5th-2024"",""https://docs.claude.com/en/release-notes/claude-apps#may-13th-2024""]","python:file://eval_retrieval.py"
|
||||
"When the API response from Claude has a stop_reason of ""tool_use"", what does this indicate and what should be done next to continue the conversation?","[""https://docs.claude.com/en/docs/build-with-claude/tool-use#json-output"",""https://docs.claude.com/en/docs/build-with-claude/tool-use#how-tool-use-works""]","python:file://eval_retrieval.py"
|
||||
"What Python libraries are used in the example code snippet for evaluating tone and style in a customer service chatbot?","[""https://docs.claude.com/en/docs/build-with-claude/develop-tests#example-evals""]","python:file://eval_retrieval.py"
|
||||
"What are the two main ways to authenticate when using the Anthropic Python SDK to access Claude models on Amazon Bedrock?","[""https://docs.claude.com/en/api/claude-on-amazon-bedrock#install-an-sdk-for-accessing-bedrock"",""https://docs.claude.com/en/api/claude-on-amazon-bedrock#making-requests""]","python:file://eval_retrieval.py"
|
||||
"When deciding whether to implement leak-resistant prompt engineering strategies, what two factors should be considered and balanced?","[""https://docs.claude.com/en/docs/test-and-evaluate/strengthen-guardrails/reduce-prompt-leak#strategies-to-reduce-prompt-leak"",""https://docs.claude.com/en/docs/test-and-evaluate/strengthen-guardrails/reduce-prompt-leak#before-you-try-to-reduce-prompt-leak""]","python:file://eval_retrieval.py"
|
||||
"How can selecting the appropriate Claude model based on your specific requirements help reduce latency in your application?","[""https://docs.claude.com/en/docs/test-and-evaluate/strengthen-guardrails/reduce-latency#1-choose-the-right-model"",""https://docs.claude.com/en/docs/intro-to-claude#model-options""]","python:file://eval_retrieval.py"
|
||||
"How can you stream responses from the Claude API using the Python SDK?","[""https://docs.claude.com/en/api/messages-streaming#streaming-with-sdks"",""https://docs.claude.com/en/api/client-sdks#python""]","python:file://eval_retrieval.py"
|
||||
"How can you guide Claude's response by pre-filling part of the response, and what API parameter is used to generate a short response in this case?","[""https://docs.claude.com/en/api/messages-examples#putting-words-in-claudes-mouth"",""https://docs.claude.com/en/api/messages-examples#basic-request-and-response""]","python:file://eval_retrieval.py"
|
||||
"What is more important when building an eval set for an AI system - having a larger number of test cases with automated grading, or having fewer high-quality test cases graded by humans?","[""https://docs.claude.com/en/docs/build-with-claude/develop-tests#eval-design-principles"",""https://docs.claude.com/en/docs/build-with-claude/develop-tests#building-evals-and-test-cases""]","python:file://eval_retrieval.py"
|
||||
"What are the two required fields in a content_block_delta event for a text delta type?","[""https://docs.claude.com/en/api/messages-streaming#delta-types"",""https://docs.claude.com/en/api/messages-streaming#text-delta""]","python:file://eval_retrieval.py"
|
||||
"What are two interactive ways to learn how to use Claude's capabilities, such as uploading PDFs and generating embeddings?","[""https://docs.claude.com/en/docs/quickstart#next-steps"",""https://docs.claude.com/en/docs/welcome#develop-with-claude""]","python:file://eval_retrieval.py"
|
||||
"Why does breaking a task into distinct subtasks for chained prompts help improve Claude's accuracy on the overall task?","[""https://docs.claude.com/en/docs/build-with-claude/prompt-engineering/chain-prompts#how-to-chain-prompts"",""https://docs.claude.com/en/docs/build-with-claude/prompt-engineering/chain-prompts#why-chain-prompts""]","python:file://eval_retrieval.py"
|
||||
"How does the streaming format for Messages responses differ from Text Completions streaming responses?","[""https://docs.claude.com/en/api/migrating-from-text-completions-to-messages#streaming-format""]","python:file://eval_retrieval.py"
|
||||
"What are two ways to start experimenting with Claude as a user, according to Anthropic's documentation?","[""https://docs.claude.com/en/docs/about-claude/models#get-started-with-claude""]","python:file://eval_retrieval.py"
|
||||
"How can using chain prompts help reduce errors and inconsistency in complex tasks handled by Claude?","[""https://docs.claude.com/en/docs/build-with-claude/prompt-engineering/chain-prompts#why-chain-prompts"",""https://docs.claude.com/en/docs/test-and-evaluate/strengthen-guardrails/increase-consistency#chain-prompts-for-complex-tasks""]","python:file://eval_retrieval.py"
|
||||
"What HTTP status code does an overloaded_error event correspond to in a non-streaming context for the Claude API?","[""https://docs.claude.com/en/api/streaming#error-event-types"",""https://docs.claude.com/en/api/messages-streaming#error-events""]","python:file://eval_retrieval.py"
|
||||
"What are the two ways to specify the format in which Voyage AI returns embeddings through its HTTP API?","[""https://docs.claude.com/en/docs/build-with-claude/embeddings#voyage-http-api""]","python:file://eval_retrieval.py"
|
||||
"When streaming API requests that use tools, how are the input JSON deltas for tool_use content blocks sent, and how can they be accumulated and parsed by the client?","[""https://docs.claude.com/en/api/messages-streaming#input-json-delta"",""https://docs.claude.com/en/api/messages-streaming#streaming-request-with-tool-use""]","python:file://eval_retrieval.py"
|
||||
"What are the two interactive prompt engineering tutorials that Anthropic offers, and how do they differ?","[""https://docs.claude.com/en/docs/build-with-claude/claude-for-sheets#prompt-engineering-interactive-tutorial"",""https://docs.claude.com/en/docs/build-with-claude/prompt-engineering#prompt-engineering-tutorial""]","python:file://eval_retrieval.py"
|
||||
"What are some of the key capabilities that make Claude suitable for enterprise use cases requiring integration with specialized applications and processing of large volumes of sensitive data?","[""https://docs.claude.com/en/docs/intro-to-claude#enterprise-considerations""]","python:file://eval_retrieval.py"
|
||||
"As of June 2024, in which regions are Anthropic's Claude.ai API and iOS app available?","[""https://docs.claude.com/en/release-notes/claude-apps#may-1st-2024"",""https://docs.claude.com/en/release-notes/claude-apps#june-5th-2024"",""https://docs.claude.com/en/release-notes/claude-apps#may-13th-2024""]","python:file://eval_retrieval.py"
|
||||
"What are the two main approaches for integrating Claude into a support ticket workflow, and how do they differ in terms of scalability and ease of implementation?","[""https://docs.claude.com/en/docs/about-claude/use-cases/ticket-routing#integrate-claude-into-your-support-workflow"",""https://docs.claude.com/en/docs/about-claude/use-cases/ticket-routing#introduction""]","python:file://eval_retrieval.py"
|
||||
"When did Anthropic release a prompt generator tool to help guide Claude in generating high-quality prompts, and through what interface is it available?","[""https://docs.claude.com/en/release-notes/api#may-10th-2024""]","python:file://eval_retrieval.py"
|
||||
"Which Claude 3 model provides the best balance of intelligence and speed for high-throughput tasks like sales forecasting and targeted marketing?","[""https://docs.claude.com/en/api/claude-on-vertex-ai#api-model-names"",""https://docs.claude.com/en/docs/intro-to-claude#claude-3-family""]","python:file://eval_retrieval.py"
|
||||
"How can you calculate the similarity between two Voyage embedding vectors, and what is this equivalent to since Voyage embeddings are normalized to length 1?","[""https://docs.claude.com/en/docs/build-with-claude/embeddings#faq"",""https://docs.claude.com/en/docs/build-with-claude/embeddings#voyage-embedding-example""]","python:file://eval_retrieval.py"
|
||||
"How can using examples in prompts improve Claude's performance on complex tasks?","[""https://docs.claude.com/en/docs/build-with-claude/prompt-engineering/multishot-prompting#why-use-examples"",""https://docs.claude.com/en/docs/test-and-evaluate/strengthen-guardrails/increase-consistency#chain-prompts-for-complex-tasks""]","python:file://eval_retrieval.py"
|
||||
"What are the two types of content block deltas that can be emitted when streaming responses with tool use, and what does each delta type contain?","[""https://docs.claude.com/en/api/messages-streaming#input-json-delta"",""https://docs.claude.com/en/api/messages-streaming#text-delta"",""https://docs.claude.com/en/api/messages-streaming#streaming-request-with-tool-use"",""https://docs.claude.com/en/api/messages-streaming#delta-types""]","python:file://eval_retrieval.py"
|
||||
"What are two key capabilities of Claude that enable it to build interactive systems and personalized user experiences?","[""https://docs.claude.com/en/docs/build-with-claude/text-generation#text-capabilities-and-use-cases""]","python:file://eval_retrieval.py"
|
||||
"What are the key event types included in a raw HTTP stream response when using message streaming, and what is the typical order they occur in?","[""https://docs.claude.com/en/api/messages-streaming#event-types"",""https://docs.claude.com/en/api/messages-streaming#raw-http-stream-response""]","python:file://eval_retrieval.py"
|
||||
"What is the maximum number of images that can be included in a single request using the Claude API compared to the claude.ai interface?","[""https://docs.claude.com/en/docs/build-with-claude/vision#about-the-prompt-examples"",""https://docs.claude.com/en/docs/build-with-claude/vision#faq""]","python:file://eval_retrieval.py"
|
||||
"When Claude's response is cut off due to hitting the max_tokens limit and contains an incomplete tool use block, what should you do to get the full tool use?","[""https://docs.claude.com/en/docs/build-with-claude/tool-use#troubleshooting-errors""]","python:file://eval_retrieval.py"
|
||||
"What two steps are needed before running a classification evaluation on Claude according to the documentation?","[""https://docs.claude.com/en/docs/about-claude/use-cases/classification#3-run-your-eval"",""https://docs.claude.com/en/docs/about-claude/use-cases/classification#2-develop-your-test-cases""]","python:file://eval_retrieval.py"
|
||||
"How can you use the content parameter in the messages list to influence Claude's response?","[""https://docs.claude.com/en/api/messages-examples#basic-request-and-response"",""https://docs.claude.com/en/api/messages-examples#putting-words-in-claudes-mouth""]","python:file://eval_retrieval.py"
|
||||
"What are two key advantages of prompt engineering over fine-tuning when it comes to model comprehension and general knowledge preservation?","[""https://docs.claude.com/en/docs/build-with-claude/prompt-engineering#when-to-prompt-engineer"",""https://docs.claude.com/en/docs/resources/glossary#fine-tuning""]","python:file://eval_retrieval.py"
|
||||
"What are the two main steps to get started with making requests to Claude models on Anthropic's Bedrock API?","[""https://docs.claude.com/en/api/claude-on-amazon-bedrock#install-and-configure-the-aws-cli"",""https://docs.claude.com/en/api/claude-on-amazon-bedrock#making-requests""]","python:file://eval_retrieval.py"
|
||||
"How can you check which Claude models are available in a specific AWS region using the AWS CLI?","[""https://docs.claude.com/en/api/claude-on-amazon-bedrock#subscribe-to-anthropic-models"",""https://docs.claude.com/en/api/claude-on-amazon-bedrock#list-available-models""]","python:file://eval_retrieval.py"
|
||||
"What argument can be passed to the voyageai.Client.embed() method or the Voyage HTTP API to specify whether the input text is a query or a document?","[""https://docs.claude.com/en/docs/build-with-claude/embeddings#voyage-python-package"",""https://docs.claude.com/en/docs/build-with-claude/embeddings#voyage-http-api""]","python:file://eval_retrieval.py"
|
||||
"How do the streaming API delta formats differ between tool_use content blocks and text content blocks?","[""https://docs.claude.com/en/api/messages-streaming#input-json-delta"",""https://docs.claude.com/en/api/messages-streaming#text-delta""]","python:file://eval_retrieval.py"
|
||||
"What are the image file size limits when uploading images to Claude using the API versus on claude.ai?","[""https://docs.claude.com/en/docs/build-with-claude/vision#faq""]","python:file://eval_retrieval.py"
|
||||
"What is one key consideration when selecting a Claude model for an enterprise use case that needs low latency?","[""https://docs.claude.com/en/docs/intro-to-claude#model-options"",""https://docs.claude.com/en/docs/test-and-evaluate/strengthen-guardrails/reduce-latency#1-choose-the-right-model""]","python:file://eval_retrieval.py"
|
||||
"What embedding model does Anthropic recommend for code retrieval, and how does its performance compare to alternatives according to Voyage AI?","[""https://docs.claude.com/en/docs/build-with-claude/embeddings#how-to-get-embeddings-with-anthropic"",""https://docs.claude.com/en/docs/build-with-claude/embeddings#available-voyage-models""]","python:file://eval_retrieval.py"
|
||||
"What are two ways the Claude Cookbooks can help developers learn to use Anthropic's APIs?","[""https://docs.claude.com/en/docs/welcome#develop-with-claude"",""https://docs.claude.com/en/docs/quickstart#next-steps""]","python:file://eval_retrieval.py"
|
||||
"How does the size of the context window impact a language model's ability to utilize retrieval augmented generation (RAG)?","[""https://docs.claude.com/en/docs/resources/glossary#context-window"",""https://docs.claude.com/en/docs/resources/glossary#rag-retrieval-augmented-generation""]","python:file://eval_retrieval.py"
|
||||
"How can the Evaluation tool in Anthropic's Claude platform help improve prompts and build more robust AI applications?","[""https://docs.claude.com/en/docs/test-and-evaluate/eval-tool#understanding-results"",""https://docs.claude.com/en/docs/test-and-evaluate/eval-tool#creating-test-cases""]","python:file://eval_retrieval.py"
|
||||
"Which Claude model has the fastest comparative latency according to the comparison tables?","[""https://docs.claude.com/en/docs/about-claude/models#model-comparison"",""https://docs.claude.com/en/docs/about-claude/models#legacy-model-comparison""]","python:file://eval_retrieval.py"
|
||||
"How can you build up a conversation with multiple turns using the Anthropic Messages API in Python?","[""https://docs.claude.com/en/api/client-sdks#python"",""https://docs.claude.com/en/api/messages-examples#multiple-conversational-turns""]","python:file://eval_retrieval.py"
|
||||
"How can using XML tags to provide a specific role or context help improve Claude's analysis of a legal contract compared to not using a role prompt?","[""https://docs.claude.com/en/docs/build-with-claude/prompt-engineering/use-xml-tags#examples"",""https://docs.claude.com/en/docs/build-with-claude/prompt-engineering/system-prompts#example-1-legal-contract-analysis""]","python:file://eval_retrieval.py"
|
||||
"What are the key differences between how Claude 3 Opus and Claude 3 Sonnet handle missing information when making tool calls?","[""https://docs.claude.com/en/docs/build-with-claude/tool-use#chain-of-thought"",""https://docs.claude.com/en/docs/build-with-claude/tool-use#tool-use-examples""]","python:file://eval_retrieval.py"
|
||||
"What steps should be taken to ensure a reliable deployment of an automated ticket routing system using Claude into a production environment?","[""https://docs.claude.com/en/docs/about-claude/use-cases/ticket-routing#additional-considerations"",""https://docs.claude.com/en/docs/about-claude/use-cases/ticket-routing#integrate-claude-into-your-support-workflow""]","python:file://eval_retrieval.py"
|
||||
"How should you evaluate a model's performance on a ticket routing classifier?","[""https://docs.claude.com/en/docs/about-claude/use-cases/ticket-routing#evaluating-the-performance-of-your-ticket-routing-classifier"",""https://docs.claude.com/en/docs/about-claude/use-cases/ticket-routing#integrate-claude-into-your-support-workflow""]","python:file://eval_retrieval.py"
|
||||
"What two methods does Anthropic recommend for learning how to prompt engineer with Claude before diving into the techniques?","[""https://docs.claude.com/en/docs/build-with-claude/prompt-engineering#how-to-prompt-engineer"",""https://docs.claude.com/en/docs/build-with-claude/prompt-engineering#prompt-engineering-tutorial""]","python:file://eval_retrieval.py"
|
||||
"What are the key differences between a pretrained large language model and Claude in terms of their training and capabilities?","[""https://docs.claude.com/en/docs/resources/glossary#llm"",""https://docs.claude.com/en/docs/resources/glossary#pretraining""]","python:file://eval_retrieval.py"
|
||||
"What are some key advantages of using prompt engineering instead of fine-tuning to adapt a pretrained language model for a specific task or domain?","[""https://docs.claude.com/en/docs/resources/glossary#fine-tuning"",""https://docs.claude.com/en/docs/build-with-claude/prompt-engineering#when-to-prompt-engineer"",""https://docs.claude.com/en/docs/resources/glossary#pretraining""]","python:file://eval_retrieval.py"
|
||||
"How can you authenticate with GCP before running requests to access Claude models on Vertex AI?","[""https://docs.claude.com/en/api/claude-on-vertex-ai#making-requests"",""https://docs.claude.com/en/api/claude-on-vertex-ai#accessing-vertex-ai""]","python:file://eval_retrieval.py"
|
||||
"What new capabilities and features were introduced by Anthropic on May 10th, 2024 and how do they enable users to create and tailor prompts for specific tasks?","[""https://docs.claude.com/en/release-notes/api#may-10th-2024""]","python:file://eval_retrieval.py"
|
||||
"On what date did both the Claude 3.5 Sonnet model and the Artifacts feature in Claude.ai become available?","[""https://docs.claude.com/en/release-notes/api#june-20th-2024"",""https://docs.claude.com/en/release-notes/claude-apps#june-20th-2024""]","python:file://eval_retrieval.py"
|
||||
"When putting words in Claude's mouth to shape the response, what header and value can you use in the request to limit Claude's response to a single token?","[""https://docs.claude.com/en/api/messages-examples#basic-request-and-response"",""https://docs.claude.com/en/api/messages-examples#putting-words-in-claudes-mouth""]","python:file://eval_retrieval.py"
|
||||
"What does the temperature parameter do when working with large language models?","[""https://docs.claude.com/en/docs/resources/glossary#temperature"",""https://docs.claude.com/en/docs/test-and-evaluate/strengthen-guardrails/reduce-latency#2-optimize-prompt-and-output-length""]","python:file://eval_retrieval.py"
|
||||
"What are two ways to specify API parameters when calling the Claude API using Claude for Sheets?","[""https://docs.claude.com/en/docs/test-and-evaluate/eval-tool#tips-for-effective-evaluation"",""https://docs.claude.com/en/docs/build-with-claude/prompt-engineering/prefill-claudes-response#how-to-prefill-claudes-response"",""https://docs.claude.com/en/docs/build-with-claude/claude-for-sheets#enter-your-first-prompt""]","python:file://eval_retrieval.py"
|
||||
"How does prefilling the response with an opening curly brace ({ ) affect Claude's output when extracting structured data from text?","[""https://docs.claude.com/en/docs/build-with-claude/prompt-engineering/prefill-claudes-response#example-1-controlling-output-formatting-and-skipping-the-preamble""]","python:file://eval_retrieval.py"
|
||||
"What are some helpful resources provided by Anthropic to dive deeper into building with images using Claude?","[""https://docs.claude.com/en/docs/build-with-claude/vision#dive-deeper-into-vision"",""https://docs.claude.com/en/docs/build-with-claude/vision#about-the-prompt-examples""]","python:file://eval_retrieval.py"
|
||||
"How do you specify the API key when creating a new Anthropic client in the Python and TypeScript SDK examples?","[""https://docs.claude.com/en/api/client-sdks#typescript"",""https://docs.claude.com/en/api/client-sdks#python""]","python:file://eval_retrieval.py"
|
||||
"What are two key benefits of using the Anthropic Evaluation tool when developing prompts for an AI classification application?","[""https://docs.claude.com/en/docs/about-claude/use-cases/classification#2-develop-your-test-cases"",""https://docs.claude.com/en/docs/test-and-evaluate/eval-tool#understanding-results""]","python:file://eval_retrieval.py"
|
||||
"What are the key differences between a pretrained language model like Claude's underlying model, and the final version of Claude available through Anthropic's API?","[""https://docs.claude.com/en/docs/resources/glossary#pretraining"",""https://docs.claude.com/en/docs/resources/glossary#llm"",""https://docs.claude.com/en/docs/resources/glossary#fine-tuning""]","python:file://eval_retrieval.py"
|
||||
"What is the IPv6 address range used by Anthropic?","[""https://docs.claude.com/en/api/ip-addresses#ipv6""]","python:file://eval_retrieval.py"
|
||||
"When using the Python SDK to create a message with Claude, what are two ways you can specify your API key?","[""https://docs.claude.com/en/api/messages-examples#multiple-conversational-turns"",""https://docs.claude.com/en/api/client-sdks#python""]","python:file://eval_retrieval.py"
|
||||
|
||||
|
@@ -1933,7 +1933,7 @@
|
||||
"text": [
|
||||
"\n",
|
||||
"<content>\n",
|
||||
"<explanation>The generated answer is incorrect. While it correctly mentions the Claude Cookbook as one interactive learning resource, it fails to mention the Developer Console and its prompt generator tool, which is a key component mentioned in the correct answer. Instead, it references the \"More Resources\" section and documentation, which weren't identified in the correct answer as interactive learning methods. The generated answer therefore misses one of the two main interactive learning tools specified in the correct answer.</explanation>\n",
|
||||
"<explanation>The generated answer is incorrect. While it correctly mentions the Claude Cookbooks as one interactive learning resource, it fails to mention the Developer Console and its prompt generator tool, which is a key component mentioned in the correct answer. Instead, it references the \"More Resources\" section and documentation, which weren't identified in the correct answer as interactive learning methods. The generated answer therefore misses one of the two main interactive learning tools specified in the correct answer.</explanation>\n",
|
||||
"<is_correct>false</is_correct>\n",
|
||||
"</content>\n",
|
||||
"\n"
|
||||
@@ -3804,7 +3804,7 @@
|
||||
"text": [
|
||||
"\n",
|
||||
"<content>\n",
|
||||
"<explanation>The Generated Answer is correct as it conveys the same core message as the Correct Answer. Both answers emphasize that Claude can be used to summarize PDF documents, making it easier to understand long documents without reading everything. While the Generated Answer provides additional details about text analysis capabilities and mentions the Claude Cookbook, these are supplementary details that don't contradict the core message. The essential functionality - uploading PDFs and getting summaries to more easily digest long documents - is accurately captured in both answers.</explanation>\n",
|
||||
"<explanation>The Generated Answer is correct as it conveys the same core message as the Correct Answer. Both answers emphasize that Claude can be used to summarize PDF documents, making it easier to understand long documents without reading everything. While the Generated Answer provides additional details about text analysis capabilities and mentions the Claude Cookbooks, these are supplementary details that don't contradict the core message. The essential functionality - uploading PDFs and getting summaries to more easily digest long documents - is accurately captured in both answers.</explanation>\n",
|
||||
"<is_correct>true</is_correct>\n",
|
||||
"</content>\n",
|
||||
"\n"
|
||||
@@ -4633,7 +4633,7 @@
|
||||
"text": [
|
||||
"\n",
|
||||
"<content>\n",
|
||||
"<explanation>The Generated Answer is incorrect because it misses a critical piece of information from the Correct Answer. While it correctly mentions the Claude Cookbook as one interactive way to learn Claude's capabilities, it completely fails to mention the Developer Console and its prompt generator tool, which is the second key interactive learning method specified in the Correct Answer. Instead, it incorrectly references \"Claude for Sheets usage examples\" as the second method, which wasn't mentioned in the Correct Answer at all. The omission of the Developer Console and the inclusion of incorrect information makes this answer incomplete and partially inaccurate.</explanation>\n",
|
||||
"<explanation>The Generated Answer is incorrect because it misses a critical piece of information from the Correct Answer. While it correctly mentions the Claude Cookbooks as one interactive way to learn Claude's capabilities, it completely fails to mention the Developer Console and its prompt generator tool, which is the second key interactive learning method specified in the Correct Answer. Instead, it incorrectly references \"Claude for Sheets usage examples\" as the second method, which wasn't mentioned in the Correct Answer at all. The omission of the Developer Console and the inclusion of incorrect information makes this answer incomplete and partially inaccurate.</explanation>\n",
|
||||
"<is_correct>false</is_correct>\n",
|
||||
"</content>\n",
|
||||
"\n"
|
||||
@@ -5298,7 +5298,7 @@
|
||||
"text": [
|
||||
"\n",
|
||||
"<content>\n",
|
||||
"<explanation>The Generated Answer is essentially correct. Both answers highlight that the Claude Cookbook provides interactive Jupyter notebooks that demonstrate API functionality, specifically mentioning PDF uploads and embeddings. While the Generated Answer splits this into two points and adds some additional context about hands-on learning, the core information matches the Correct Answer. There are no contradictions or missing critical pieces of information between the two answers - they're conveying the same fundamental message about how the Cookbook helps developers learn through interactive notebooks and demonstrations.</explanation>\n",
|
||||
"<explanation>The Generated Answer is essentially correct. Both answers highlight that the Claude Cookbooks provides interactive Jupyter notebooks that demonstrate API functionality, specifically mentioning PDF uploads and embeddings. While the Generated Answer splits this into two points and adds some additional context about hands-on learning, the core information matches the Correct Answer. There are no contradictions or missing critical pieces of information between the two answers - they're conveying the same fundamental message about how the Cookbook helps developers learn through interactive notebooks and demonstrations.</explanation>\n",
|
||||
"<is_correct>true</is_correct>\n",
|
||||
"</content>\n",
|
||||
"\n"
|
||||
@@ -8845,7 +8845,7 @@
|
||||
"<content>\n",
|
||||
"<explanation>The Generated Answer is correct. It captures the two key interactive ways to learn Claude's capabilities that were mentioned in the Correct Answer:\n",
|
||||
"\n",
|
||||
"1. The Claude Cookbook with its interactive Jupyter notebooks\n",
|
||||
"1. The Claude Cookbooks with its interactive Jupyter notebooks\n",
|
||||
"2. The Developer Console with its prompt generator tool\n",
|
||||
"\n",
|
||||
"The Generated Answer actually provides slightly more detail than the Correct Answer, but the core substance is the same. The mention of VoyageAI and additional details about the Developer Console don't contradict the Correct Answer - they're just supplementary information. Both answers focus on the same two main interactive learning methods, and there are no critical omissions or contradictions between them.</explanation>\n",
|
||||
|
||||
Reference in New Issue
Block a user