Konferenzseminar-ML-PAL/PAL Example Expanded.drawio

65 lines
14 KiB
Plaintext
Raw Permalink Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<mxfile host="Electron" modified="2023-11-18T18:08:40.966Z" agent="Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) draw.io/21.7.5 Chrome/114.0.5735.289 Electron/25.8.1 Safari/537.36" etag="bgGioe3vAgUXMqkOKeQ4" version="21.7.5" type="device">
<diagram name="Seite-1" id="3Sw_KYT27iZ8JMehEK1P">
<mxGraphModel dx="1456" dy="734" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="827" pageHeight="1169" math="0" shadow="0">
<root>
<mxCell id="0" />
<mxCell id="1" parent="0" />
<mxCell id="7yxbpYrR7u7Zo4rXAfb2-31" value="&lt;h2&gt;&lt;br&gt;&lt;/h2&gt;" style="rounded=1;whiteSpace=wrap;html=1;labelPosition=center;verticalLabelPosition=top;align=center;verticalAlign=bottom;spacingTop=11;" vertex="1" parent="1">
<mxGeometry x="550" y="230" width="270" height="740" as="geometry" />
</mxCell>
<mxCell id="7yxbpYrR7u7Zo4rXAfb2-32" value="&lt;h2&gt;ChatGPT 4 Example&lt;/h2&gt;" style="text;html=1;strokeColor=none;fillColor=none;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;" vertex="1" parent="1">
<mxGeometry x="580" y="240" width="210" height="30" as="geometry" />
</mxCell>
<mxCell id="7yxbpYrR7u7Zo4rXAfb2-29" value="&lt;h2&gt;&lt;br&gt;&lt;/h2&gt;" style="rounded=1;whiteSpace=wrap;html=1;labelPosition=center;verticalLabelPosition=top;align=center;verticalAlign=bottom;spacingTop=11;" vertex="1" parent="1">
<mxGeometry x="280" y="230" width="270" height="740" as="geometry" />
</mxCell>
<mxCell id="7yxbpYrR7u7Zo4rXAfb2-30" value="&lt;h2&gt;PAL Example&lt;/h2&gt;" style="text;html=1;strokeColor=none;fillColor=none;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;" vertex="1" parent="1">
<mxGeometry x="347.5" y="240" width="135" height="30" as="geometry" />
</mxCell>
<mxCell id="7yxbpYrR7u7Zo4rXAfb2-25" value="&lt;h2&gt;&lt;br&gt;&lt;/h2&gt;" style="rounded=1;whiteSpace=wrap;html=1;labelPosition=center;verticalLabelPosition=top;align=center;verticalAlign=bottom;spacingTop=11;" vertex="1" parent="1">
<mxGeometry x="10" y="230" width="270" height="740" as="geometry" />
</mxCell>
<mxCell id="7yxbpYrR7u7Zo4rXAfb2-1" value="&lt;b&gt;Q&lt;/b&gt;: Roger has 5 tennis balls. He buys 2 more cans of tennis balls. Each can has 3 tennis balls. How many tennis balls does he have now?&lt;br&gt;&lt;br&gt;&lt;b&gt;A&lt;/b&gt;: Roger started with 5 tennis balls. 2 cans of 3 tennis&lt;br&gt;balls each is 6 tennis balls. 5 + 6 = 11. The answer is 11.&lt;br&gt;&lt;br&gt;&lt;b&gt;Q&lt;/b&gt;: The bakers at the Beverly Hills Bakery baked 200 loaves of bread on Monday morning. They sold 93 loaves in the morning and 39 loaves in the afternoon. A grocery&lt;br&gt;store returned 6 unsold loaves. How many loaves of bread did they have left?" style="rounded=1;whiteSpace=wrap;html=1;align=left;spacingTop=0;spacingLeft=10;" vertex="1" parent="1">
<mxGeometry x="20" y="290" width="250" height="300" as="geometry" />
</mxCell>
<mxCell id="7yxbpYrR7u7Zo4rXAfb2-2" value="Eingabe" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#dae8fc;strokeColor=#6c8ebf;" vertex="1" parent="1">
<mxGeometry x="50" y="280" width="50" height="20" as="geometry" />
</mxCell>
<mxCell id="7yxbpYrR7u7Zo4rXAfb2-8" value="&lt;div&gt;&lt;b&gt;Q&lt;/b&gt;: Roger has 5 tennis balls. He buys 2 more cans of&amp;nbsp;&lt;span style=&quot;background-color: initial;&quot;&gt;tennis balls. Each can has 3 tennis balls. How many&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: initial;&quot;&gt;tennis balls does he have now?&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;A&lt;/b&gt;:&amp;nbsp;&lt;/div&gt;&lt;div style=&quot;font-size: 10px;&quot;&gt;&lt;pre class=&quot;python&quot;&gt;&lt;i&gt;# Roger started with 5 tennis balls.&lt;/i&gt;&lt;br&gt;tennis_balls &lt;span style=&quot;color: #66cc66;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #ff4500;&quot;&gt;5&lt;/span&gt;&lt;br&gt;&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;# 2 cans of 3 tennis balls each is&lt;/span&gt;&lt;br&gt;bought_balls &lt;span style=&quot;color: #66cc66;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #ff4500;&quot;&gt;2&lt;/span&gt; * &lt;span style=&quot;color: #ff4500;&quot;&gt;3&lt;/span&gt;&lt;br&gt;&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;# tennis balls. The answer is&lt;/span&gt;&lt;br&gt;answer &lt;span style=&quot;color: #66cc66;&quot;&gt;=&lt;/span&gt; tennis_balls + bought_balls&lt;/pre&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: initial;&quot;&gt;&lt;b&gt;Q&lt;/b&gt;: The bakers at the Beverly Hills Bakery baked 200&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: initial;&quot;&gt;loaves of bread on Monday morning. They sold 93 loaves&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: initial;&quot;&gt;in the morning and 39 loaves in the afternoon. A grocery&lt;/span&gt;&lt;/div&gt;&lt;div&gt;store returned 6 unsold loaves. How many loaves of bread&amp;nbsp;&lt;span style=&quot;background-color: initial;&quot;&gt;did they have left?&lt;/span&gt;&lt;/div&gt;" style="rounded=1;whiteSpace=wrap;html=1;align=left;spacingTop=0;spacingLeft=10;" vertex="1" parent="1">
<mxGeometry x="289" y="290" width="250" height="300" as="geometry" />
</mxCell>
<mxCell id="7yxbpYrR7u7Zo4rXAfb2-9" value="Eingabe" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#dae8fc;strokeColor=#6c8ebf;" vertex="1" parent="1">
<mxGeometry x="330" y="280" width="50" height="20" as="geometry" />
</mxCell>
<mxCell id="7yxbpYrR7u7Zo4rXAfb2-10" value="&lt;b&gt;Q&lt;/b&gt;: The bakers at the Beverly Hills Bakery baked 200 loaves of bread on Monday morning. They sold 93 loaves in the morning and 39 loaves in the afternoon. A grocery&amp;nbsp;store returned 6 unsold loaves. How many loaves of bread did they have left?" style="rounded=1;whiteSpace=wrap;html=1;align=left;spacingTop=0;spacingLeft=10;" vertex="1" parent="1">
<mxGeometry x="560" y="290" width="250" height="300" as="geometry" />
</mxCell>
<mxCell id="7yxbpYrR7u7Zo4rXAfb2-11" value="Eingabe" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#dae8fc;strokeColor=#6c8ebf;" vertex="1" parent="1">
<mxGeometry x="600" y="280" width="50" height="20" as="geometry" />
</mxCell>
<mxCell id="7yxbpYrR7u7Zo4rXAfb2-12" value="&lt;b&gt;A&lt;/b&gt;: The bakers started with 200 loaves. They sold 93 in&lt;br&gt;the morning and 39 in the afternoon. So they sold 93 +&lt;br&gt;39 = 132 loaves. The grocery store returned 6 loaves. So&lt;br&gt;they had 200 - 132 - 6 = 62 loaves left.&lt;br&gt;The answer is 62." style="rounded=1;whiteSpace=wrap;html=1;align=left;spacingTop=0;spacingLeft=10;fontSize=12;fillColor=#f8cecc;strokeColor=#b85450;" vertex="1" parent="1">
<mxGeometry x="20" y="610" width="250" height="345" as="geometry" />
</mxCell>
<mxCell id="7yxbpYrR7u7Zo4rXAfb2-13" value="&lt;div style=&quot;&quot;&gt;&lt;b&gt;A&lt;/b&gt;:&amp;nbsp;&lt;span style=&quot;background-color: initial;&quot;&gt;&lt;font face=&quot;monospace&quot;&gt;# The bakers started with 200&amp;nbsp;&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;&quot;&gt;&lt;div style=&quot;&quot; class=&quot;row mt-2&quot; id=&quot;preview&quot;&gt;&lt;pre style=&quot;&quot; class=&quot;python&quot;&gt;&lt;font style=&quot;font-size: 12px;&quot;&gt;# loaves&lt;/font&gt;&lt;/pre&gt;&lt;pre style=&quot;&quot; class=&quot;python&quot;&gt;&lt;font style=&quot;font-size: 12px;&quot;&gt;loaves_baked &lt;span style=&quot;color: #66cc66;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #ff4500;&quot;&gt;200&lt;/span&gt;&lt;br&gt;&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;# They sold 93 in the morning &lt;br&gt;# and 39 in the afternoon&lt;/span&gt;&lt;br&gt;loaves_sold_morning &lt;span style=&quot;color: #66cc66;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #ff4500;&quot;&gt;93&lt;/span&gt;&lt;br&gt;loaves_sold_afternoon &lt;span style=&quot;color: #66cc66;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #ff4500;&quot;&gt;39&lt;/span&gt;&lt;br&gt;&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;# The grocery store returned &lt;br&gt;# 6 loaves.&lt;/span&gt;&lt;br&gt;loaves_returned &lt;span style=&quot;color: #66cc66;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #ff4500;&quot;&gt;6&lt;/span&gt;&lt;br&gt;&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;# The answer is&lt;/span&gt;&lt;br&gt;answer &lt;span style=&quot;color: #66cc66;&quot;&gt;=&lt;/span&gt; (&lt;br&gt;&lt;/font&gt; loaves_baked &lt;br&gt; - loaves_sold_morning&lt;br&gt; - loaves_sold_afternoon &lt;br&gt; + loaves_returned&lt;br&gt;&lt;/pre&gt;&lt;pre style=&quot;&quot; class=&quot;python&quot;&gt;&lt;font style=&quot;font-size: 12px;&quot;&gt;&lt;span style=&quot;color: #ff7700;font-weight:bold;&quot;&gt;print&lt;/span&gt;(answer) &lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;# -&amp;gt; 74&lt;/span&gt;&lt;/font&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;When the script is executed 74 is printed." style="rounded=1;whiteSpace=wrap;html=1;align=left;spacingTop=0;spacingLeft=10;fontSize=12;fillColor=#d5e8d4;strokeColor=#82b366;" vertex="1" parent="1">
<mxGeometry x="289" y="610" width="250" height="345" as="geometry" />
</mxCell>
<mxCell id="7yxbpYrR7u7Zo4rXAfb2-18" value="&lt;div style=&quot;font-size: 11px;&quot;&gt;&lt;div&gt;&lt;font style=&quot;font-size: 11px;&quot;&gt;&lt;b&gt;A&lt;/b&gt;: &lt;/font&gt;&lt;font style=&quot;font-size: 11px;&quot;&gt;The Beverly Hills Bakery had 74 loaves of bread left after their sales and the return of unsold loaves. &lt;/font&gt;&lt;font face=&quot;monospace&quot; style=&quot;font-size: 11px;&quot;&gt;&lt;br&gt;&lt;/font&gt;&lt;span style=&quot;background-color: initial;&quot;&gt;&lt;b style=&quot;&quot;&gt;&lt;i&gt;Internal executed Analysis:&lt;/i&gt;&lt;/b&gt;&lt;/span&gt;&lt;font face=&quot;monospace&quot; style=&quot;font-size: 11px;&quot;&gt;&lt;br&gt;&lt;/font&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;font-size: 11px;&quot;&gt;&lt;pre class=&quot;python&quot;&gt;&lt;pre class=&quot;python&quot;&gt;# Number of loaves baked&lt;br&gt;loaves_baked &lt;span style=&quot;color: #66cc66;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #ff4500;&quot;&gt;200&lt;/span&gt;&lt;br&gt;&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;# Number of loaves sold in the &lt;/span&gt;&lt;br&gt;&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;# morning and afternoon&lt;/span&gt;&lt;br&gt;loaves_sold_morning &lt;span style=&quot;color: #66cc66;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #ff4500;&quot;&gt;93&lt;/span&gt;&lt;br&gt;loaves_sold_afternoon &lt;span style=&quot;color: #66cc66;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #ff4500;&quot;&gt;39&lt;/span&gt;&lt;br&gt;&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;# Number of loaves returned &lt;/span&gt;&lt;br&gt;&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;# from the grocery store&lt;/span&gt;&lt;br&gt;loaves_returned &lt;span style=&quot;color: #66cc66;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #ff4500;&quot;&gt;6&lt;/span&gt;&lt;br&gt;&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;# Calculating the remaining loaves&lt;/span&gt;&lt;br&gt;remaining_loaves &lt;span style=&quot;color: #66cc66;&quot;&gt;=&lt;/span&gt; (&lt;br&gt; loaves_baked&lt;br&gt; - (&lt;br&gt; loaves_sold_morning&lt;br&gt; + loaves_sold_afternoon&lt;br&gt; ) &lt;br&gt; + loaves_returned&lt;br&gt;remaining_loaves&lt;/pre&gt;&lt;/pre&gt;&lt;/div&gt;&lt;div class=&quot;flex justify-between empty:hidden gizmo:mt-1 gizmo:justify-start gizmo:gap-3 lg:block gizmo:lg:flex&quot;&gt;&lt;div class=&quot;text-gray-400 flex self-end lg:self-center justify-center gizmo:lg:justify-start mt-2 gizmo:mt-0 visible gap-1&quot;&gt;&lt;/div&gt;&lt;/div&gt;" style="rounded=1;whiteSpace=wrap;html=1;align=left;spacingTop=0;spacingLeft=10;fillColor=#d5e8d4;strokeColor=#82b366;" vertex="1" parent="1">
<mxGeometry x="560" y="610" width="250" height="345" as="geometry" />
</mxCell>
<mxCell id="7yxbpYrR7u7Zo4rXAfb2-20" value="Ausgabe" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#60a917;fontColor=#ffffff;strokeColor=#2D7600;" vertex="1" parent="1">
<mxGeometry x="50" y="600" width="50" height="20" as="geometry" />
</mxCell>
<mxCell id="7yxbpYrR7u7Zo4rXAfb2-21" value="Ausgabe" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#60a917;fontColor=#ffffff;strokeColor=#2D7600;" vertex="1" parent="1">
<mxGeometry x="330" y="600" width="50" height="20" as="geometry" />
</mxCell>
<mxCell id="7yxbpYrR7u7Zo4rXAfb2-22" value="Ausgabe" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#60a917;fontColor=#ffffff;strokeColor=#2D7600;" vertex="1" parent="1">
<mxGeometry x="600" y="600" width="50" height="20" as="geometry" />
</mxCell>
<mxCell id="7yxbpYrR7u7Zo4rXAfb2-28" value="&lt;h2&gt;CoT Example&lt;/h2&gt;" style="text;html=1;strokeColor=none;fillColor=none;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;" vertex="1" parent="1">
<mxGeometry x="77.5" y="240" width="135" height="30" as="geometry" />
</mxCell>
</root>
</mxGraphModel>
</diagram>
</mxfile>