Changes between Version 7 and Version 8 of Public/WhitePaperChatForOne


Ignore:
Timestamp:
Apr 16, 2023, 12:15:05 AM (20 months ago)
Author:
Boris Horner
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Public/WhitePaperChatForOne

    v7 v8  
    7575
    7676
    77 ==
     77== DITA
     78Knowing that ChatGPT was able to extract information from an unstructured text and to transform it into a step-by-step procedure with warnings, I tried whether it was able to express this in DITA. I knew ChatGPT was able to create program code, or fixe code that does not work correctly. DITA is nothing entirely diffent. So I tried.
     79
     80I started out with simple cooking recipes. First, I retrieved instructions for pancakes. When I was satisfied with the recipe itself, I asked ChatGPT to create a DITA topic. It created a syntactically and grammatically correct DITA topic, but it was a topic, not a task. So I asked it to create a task. At first, it was invalid, but I was able to teach it how to perform the task correctly and ended up with a valid DITA task.
     81
     82In the next iteration, I asked it to place the ingredients as {{{prereq}}} and the warnings as {{{hazardstatement}}}. At first, the {{{hazardstatement}}} was wrongly structured, but I was also able to teach it how to write correct warning messages.
     83
     84To keep ChatGPT from just repeating what I tought it, I asked it to apply what it learned to a different task, resetting a Google Pixel 7 phone to factory settings. Here's the result:
     85{{{
     86<?xml version="1.0" encoding="UTF-8"?>
     87<!DOCTYPE task PUBLIC "-//OASIS//DTD DITA Task//EN" "task.dtd">
     88<task id="factory-reset-pixel-7">
     89  <title>Performing a Factory Reset on Google Pixel 7</title>
     90  <taskbody>
     91    <prereq>Before starting, make sure your Google Pixel 7 is fully charged and backed up. Performing a factory reset will erase all data on your phone.</prereq>
     92    <steps>
     93      <step>
     94        <hazardstatement type="warning">
     95          <messagepanel>
     96            <typeofhazard>Data loss.</typeofhazard>
     97            <consequence>Performing a factory reset will erase all data on your phone.</consequence>
     98            <howtoavoid>Make sure you have backed up all important data before proceeding.</howtoavoid>
     99          </messagepanel>
     100        </hazardstatement>
     101        <cmd>Go to the Settings app on your phone.</cmd>
     102      </step>
     103      <step>
     104        <cmd>Scroll down and tap on System.</cmd>
     105      </step>
     106      <step>
     107        <cmd>Tap on Advanced.</cmd>
     108      </step>
     109      <step>
     110        <cmd>Tap on Reset options.</cmd>
     111      </step>
     112      <step>
     113        <cmd>Tap on Erase all data (factory reset).</cmd>
     114      </step>
     115      <step>
     116        <cmd>Follow the on-screen instructions to complete the reset process.</cmd>
     117      </step>
     118    </steps>
     119  </taskbody>
     120</task>
     121}}}
     122
     123A similar task of explaining how to remove old paint using NaOH solution can be found [wiki:Public/StartPageAi here].
    78124
    79125// By Boris Horner, April 2023//