Prompting Basics

AI assistants like ChatGPT offer incredibly diverse opportunities for managing the challenges in a scientific working environment. When used skillfully, they can be a great support in conveying complex content and reaching a broad audience. This worksheet aims to provide some suggestions on how AI can be used as an assistant for a number of tasks.

Prompting Short Tutorial

  • Formulate your prompt clearly and precisely, according to your goal. In many cases, the following instructions can be very helpful:
    • Explain the goal of the prompt or the task you want it to perform. e.g., „I would like a summary of a scientific article for a lay audience.“ It can be very helpful to give the AI a persona, e.g., „I want you to act as a science journalist who is specialized in the field of …“
    • Provide all necessary background and context information. Add all relevant details or context information needed for understanding and processing the prompt. Tell it how you will use the output, who the target audience is, and give all necessary additional background information.
    • If possible, provide an example of what you expect.
    • Provide constraints, such as word count, format, language, readability, etc.
    • Ask a clear question or give a clear instruction. Formulate a precise question or instruction that directly targets the goal of the prompt, e.g., „Please summarize the article for me so that my audience can easily understand the main points.“
  • Iterative Approach: Test the prompt and adjust it based on the responses received. Often, it’s better to proceed step by step, e.g., first issuing a plan of action and then working through it step by step.

For more information on building effective prompts, check out the tutorial by OpenAI, the company behind ChatGPT:

OpenAI Prompt Engineering Tutorial

Frameworks for Prompting

It is helpful to think in terms of „frameworks“.

Some examples are:

  • Task Sender Context Example Constraint
    • „I’d like you to [WHAT YOU WANT CHATGPT TO DO]“
    • Imagine you are [TELL IT WHO YOU ARE FOR THIS TASK TO MAKE IT WORK THROUGH THE APPROPRIATE PERSPECTIVE].
    • For context, [TELL IT HOW YOU WILL USE THE OUTPUT, WHO THE TARGET AUDIENCE IS, ADDITIONAL BACKGROUND INFORMATION]. Here you can also give it information to read.
    • To [DO THE TASK], please follow the example of what kind of output I would like to have: [EXAMPLE].
    • Constraints: [PROVIDE CONSTRAINTS SUCH AS WORD COUNT, FORMAT, LANGUAGE, READABILITY, etc.]
  • APE (Action, Purpose, Expectation)
  • RACE (Role, Action, Context, Expectation)
  • COAST (Context, Objective, Actions, Scenario, Task)
  • TAG (Task, Action, Goal)
  • TRACE (Task, Request, Action, Context, Example)
  • ERA (Expectation, Role, Action)
  • CARE (Context, Action, Result, Example)
  • ROSES (Role, Objective, Scenario, Expected Solution, Steps)
  • RTF (Request, Task, Format)


Prompting Grundlagen

 

KI-Assistenten wie ChatGPT bieten unglaublich vielfältige Möglichkeiten, die Herausforderungen in einem wissenschaftlichen Arbeitsumfeld zu bewältigen. Bei geschickter Nutzung können sie eine großartige Unterstützung bei der Vermittlung komplexer Inhalte und beim Erreichen eines breiten Publikums sein. Dieses Arbeitsblatt soll einige Vorschläge liefern, wie KI als Assistent für verschiedene Aufgaben eingesetzt werden kann.

Kurz-Tutorial zum Prompting

  • Formulieren Sie Ihr Prompt klar und präzise, basierend auf Ihrem Ziel. In vielen Fällen können die folgenden Anweisungen sehr hilfreich sein:
    • Erklären Sie das Ziel des Prompts oder die Aufgabe, die es ausführen soll. Z. B.: „Ich möchte eine Zusammenfassung eines wissenschaftlichen Artikels für ein Laienpublikum.“ Es kann hilfreich sein, der KI eine Persona zu geben, z. B.: „Ich möchte, dass Sie als Wissenschaftsjournalist agieren, der auf das Fachgebiet … spezialisiert ist.“
    • Geben Sie alle notwendigen Hintergrund- und Kontextinformationen an. Fügen Sie alle relevanten Details oder Kontextinformationen hinzu, die für das Verständnis und die Bearbeitung des Prompts erforderlich sind. Erklären Sie, wie Sie die Ausgabe verwenden werden, wer die Zielgruppe ist, und geben Sie alle zusätzlichen Hintergrundinformationen.
    • Falls möglich, geben Sie ein Beispiel dessen an, was Sie erwarten.
    • Geben Sie Einschränkungen vor, wie z. B. Wortanzahl, Format, Sprache, Lesbarkeit usw.
    • Stellen Sie eine klare Frage oder geben Sie eine klare Anweisung. Formulieren Sie eine präzise Frage oder Anweisung, die direkt auf das Ziel des Prompts abzielt, z. B.: „Bitte fassen Sie den Artikel so zusammen, dass mein Publikum die Hauptpunkte leicht verstehen kann.“
  • Iterativer Ansatz: Testen Sie das Prompt und passen Sie es basierend auf den erhaltenen Antworten an. Oft ist es besser, schrittweise vorzugehen, z. B. zunächst einen Aktionsplan vorzulegen und diesen dann Schritt für Schritt abzuarbeiten.

Für weitere Informationen zur Erstellung effektiver Prompts sehen Sie sich das Tutorial von OpenAI, dem Unternehmen hinter ChatGPT, an:

OpenAI Prompt Engineering Tutorial

Frameworks für das Prompting

Es ist hilfreich, in „Frameworks“ zu denken.

Einige Beispiele sind:

  • Task Sender Context Example Constraint
    • „Ich möchte, dass Sie [WAS SIE VON CHATGPT ERWARTEN]“
    • Stellen Sie sich vor, Sie sind [SAGEN SIE DER KI, WELCHE ROLLE SIE FÜR DIESE AUFGABE EINNEHMEN SOLL, UM AUS DER RICHTIGEN PERSPEKTIVE ZU ARBEITEN].
    • Zum Kontext: [ERKLÄREN SIE, WIE SIE DIE AUSGABE VERWENDEN, WER DIE ZIELGRUPPE IST, ZUSÄTZLICHE HINTERGRUNDINFORMATIONEN]. Hier können Sie auch Informationen zur Verfügung stellen, die die KI lesen soll.
    • Um [DIE AUFGABE ZU ERLEDIGEN], folgen Sie bitte dem Beispiel, welches die Art der gewünschten Ausgabe zeigt: [BEISPIEL].
    • Einschränkungen: [GEBEN SIE EINSCHRÄNKUNGEN WIE WORTANZAHL, FORMAT, SPRACHE, LESBARKEIT, ETC. AN].
  • APE (Action, Purpose, Expectation)
  • RACE (Role, Action, Context, Expectation)
  • COAST (Context, Objective, Actions, Scenario, Task)
  • TAG (Task, Action, Goal)
  • TRACE (Task, Request, Action, Context, Example)
  • ERA (Expectation, Role, Action)
  • CARE (Context, Action, Result, Example)
  • ROSES (Role, Objective, Scenario, Expected Solution, Steps)
  • RTF (Request, Task, Format)