Large Language Model (LLM) Prompt

From GM-RKB
(Redirected from LLM prompt)
Jump to navigation Jump to search

A Large Language Model (LLM) Prompt is a text-to-text prompt that provides structured instructions to guide the behavior and output of a large language model.



References

2024

  • (Wikipedia, 2024) ⇒ https://en.wikipedia.org/wiki/Prompt_engineering Retrieved: 2024-6-12.
    • Prompt engineering is the process of structuring an instruction that can be interpreted and understood by a generative AI model. A prompt is natural language text describing the task that an AI should perform.[1] A prompt for a text-to-text language model can be a query such as "what is Fermat's little theorem?", a command such as "write a poem about leaves falling", or a longer statement including context, instructions, and conversation history. Prompt engineering may involve phrasing a query, specifying a style,[2] providing relevant context or assigning a role to the AI such as "Act as a native French speaker". A prompt may include a few examples for a model to learn from, such as asking the model to complete "maison house, chat cat, chien " (the expected response being dog), an approach called few-shot learning. When communicating with a text-to-image or a text-to-audio model, a typical prompt is a description of a desired output such as "a high-quality photo of an astronaut riding a horse" or "Lo-fi slow BPM electro chill with organic samples". Prompting a text-to-image model may involve adding, removing, emphasizing and re-ordering words to achieve a desired subject, style,[3] layout, lighting, and aesthetic.
    • NOTE:
      • LLM Prompts involve creating natural language instructions that a generative AI model can interpret and act upon. These prompts guide the AI to perform specific tasks by providing context, style, and directives.
      • An LLM Prompt can range from simple queries like "What is Fermat's little theorem?" to complex commands such as "Write a poem about leaves falling." They can also include detailed context, instructions, and conversation history to help the AI understand the task better.
      • LLM Prompts can be enhanced through various techniques, including phrasing queries, specifying styles, providing context, or assigning roles to the AI. For instance, few-shot learning prompts provide a few examples for the model to learn from.
      • An LLM Prompt for text-to-image or text-to-audio models typically describes the desired output, such as "a high-quality photo of an astronaut riding a horse" or "Lo-fi slow BPM electro chill with organic samples." Adjusting the wording can impact the generated content's style, layout, and aesthetics.
      • LLM Prompts have evolved with advancements in AI. Initially, they focused on converting various NLP tasks into a question-answering format. Recent techniques like chain-of-thought prompting and generated knowledge prompting have further enhanced the model's reasoning and performance on complex tasks.

2023


  1. Cite error: Invalid <ref> tag; no text was provided for refs named language-models-are-multitask
  2. Cite error: Invalid <ref> tag; no text was provided for refs named zapier20230803
  3. Cite error: Invalid <ref> tag; no text was provided for refs named diab