Home >Technology peripherals >AI >Everyone can be a prompt engineer! New in Claude: Generate, test and evaluate prompts with one click

Everyone can be a prompt engineer! New in Claude: Generate, test and evaluate prompts with one click

王林
王林Original
2024-07-15 20:13:31683browse
If you don’t know how to write prompt, check it out.

When building AI applications, prompt quality has a significant impact on the results. However, producing high-quality prompts is challenging and requires researchers to have an in-depth understanding of application requirements and expertise in large-scale language models. To speed up development and improve results, AI startup Anthropic has streamlined this process to make it easier for users to create high-quality prompts.

Specifically, the researchers added new functions to the Anthropic Console to generate, test and evaluate prompts.

Anthropic prompt engineer Alex Albert said: This is the result of a lot of work they have put in over the past few weeks, and now Claude is doing very well in prompt engineering.
Everyone can be a prompt engineer! New in Claude: Generate, test and evaluate prompts with one click
Leave the difficult prompt to Claude

In Claude, writing a good prompt is as easy as describing the task. The console provides a built-in prompt generator, powered by Claude 3.5 Sonnet, allowing users to describe tasks and have Claude generate high-quality prompts.

Generate prompt. First click Generate Prompt to enter the prompt generation interface:
Everyone can be a prompt engineer! New in Claude: Generate, test and evaluate prompts with one click
Then enter the task description, Claude 3.5 Sonnet will convert the task description into a high-quality prompt. For example, "Write a prompt for reviewing inbound messages...", just click to generate the prompt.
Everyone can be a prompt engineer! New in Claude: Generate, test and evaluate prompts with one click
Generate test data. If the user has a prompt, some test cases may be needed to run it. Claude can generate those test cases.
Everyone can be a prompt engineer! New in Claude: Generate, test and evaluate prompts with one click
Users can modify test cases as needed and run all test cases with one click. They can also view and adjust Claude's understanding of each variable's generation requirements to achieve more fine-grained control over Claude's generated test cases.

These features make optimizing prompt easy, as users can create new versions of prompt and rerun test suites to quickly iterate and improve results.

Additionally, Anthropic rated the quality of Claude's responses on a 5-point scale.
Everyone can be a prompt engineer! New in Claude: Generate, test and evaluate prompts with one click
Evaluate the model. If the user is satisfied with the prompt, they can later run it against various test cases at once in the Assessment tab. Users can import test data from CSV or directly use Claude to generate synthetic test data for users.
Everyone can be a prompt engineer! New in Claude: Generate, test and evaluate prompts with one click
Compare. Users can also test multiple prompts against each other in a test case and rate better responses to track which prompt performs best.
Everyone can be a prompt engineer! New in Claude: Generate, test and evaluate prompts with one click
AI blogger @elvis said: Anthropic Console is an excellent piece of research that can save a lot of time by automating the process of designing and optimizing prompts. While the generated prompts may not be perfect, they give users a starting point for rapid iteration. Additionally, the ability to generate test cases is helpful since developers may not have data to test against.
Everyone can be a prompt engineer! New in Claude: Generate, test and evaluate prompts with one click
It seems that in the future, the task of writing prompts can be left to Anthropic.

To learn more, check out the documentation: https://docs.anthropic.com/en/docs/build-with-claude/prompt-engineering/overview

The above is the detailed content of Everyone can be a prompt engineer! New in Claude: Generate, test and evaluate prompts with one click. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn