Golden logo
    Create a WorkspaceQuery ToolSaved QueriesData RequestsListsPipelinesExploreFollowed Topics
    Invite MembersWorkspace SettingsUpgrade to ProPricingAPI AccessHelp & Support
Log in
Sign up
NEW: You can now make knowledge queries using our new natural language prompt. Try it out now!
⟶
Prompt engineering

Prompt engineering

Prompt engineering is the process of creating inputs for AI models to improve the output for a given task.

OverviewStructured DataIssuesContributorsActivity
Contents
Overview

Prompt engineering is the process of creating inputs for AI models to improve the output for a given task. A prompt is a broad instruction that triggers an AI model to generate content; it could be a statement, a block of code, or a string of words. After receiving the prompt or input, an AI model produces an output in response. The quality of the output can vary considerably depending on the prompt provided. Prompt engineering aims to improve the use of AI models by determining the best way to write or structure prompts for specific tasks. This process includes selecting the appropriate data type and formatting it so the model can understand and use it to learn. Prompt engineering creates higher-quality training data to enable the AI model to make accurate outputs. With the wider adoption of generative AI models, prompt engineering is becoming an important field, determining input methods that yield desirable and useful results.

Prompts

The primary means of communication between users and generative AI models is text, and prompt engineering is closely linked to natural language processing (NLP) and how machines decipher the meaning behind a piece of text. Prompts typically have an instruction or question, and they may also contain input data and examples. Successful prompt engineering determines the best way to combine these elements for a given task.

Principles

While prompt engineering varies depending on the model and the type of content it generates (e.g., text, image, etc.), prompt engineers have developed a general set of principles to improve the output quality from generative AI models. These include the following:

  • Trying multiple formulations of the prompt to get the best results
  • Providing context and examples
  • Making sure the instructions come before the context
  • Using clear and brief prompts and avoiding unnecessary words

Timeline

Companies in this industry

Open in Query Tool

Further Resources

Title
Author
Link
Type
Date

Prompt-Engineering-Guide: Guides, papers, lecture, and resources for prompt engineering

https://github.com/dair-ai/Prompt-Engineering-Guide

Web

References

Is a
Industry
Industry

Industry attributes

Parent Industry
Artificial Intelligence (AI)
Artificial Intelligence (AI)

Other attributes

Wikidata ID
Q108941486
Related Industries
Generative AI
Generative AI
Natural language processing (NLP)
Natural language processing (NLP)
Golden logo
Company
HomePress & MediaBlogCareers
We're hiring
Products
OverviewKnowledge GraphQuery ToolData RequestsKnowledge StorageAPIPricingEnterpriseProtocolChatGPT Plugin
Legal
Terms of ServiceEnterprise Terms of ServicePrivacy Policy
Help
Help centerAPI DocumentationContact Us
By using this site, you agree to our Terms of Service.