<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Generative AI on TECHFOR by Suriya Sonphu</title><link>http://suriyasonphu.com/en/tags/generative-ai/</link><description>Recent content in Generative AI on TECHFOR by Suriya Sonphu</description><generator>Hugo -- gohugo.io</generator><language>en</language><lastBuildDate>Fri, 26 Dec 2025 00:00:00 +0000</lastBuildDate><atom:link href="http://suriyasonphu.com/en/tags/generative-ai/index.xml" rel="self" type="application/rss+xml"/><item><title>Chain of Thought (CoT) prompting</title><link>http://suriyasonphu.com/en/post/chain-of-thought-prompting/</link><pubDate>Fri, 26 Dec 2025 00:00:00 +0000</pubDate><guid>http://suriyasonphu.com/en/post/chain-of-thought-prompting/</guid><description>&lt;img src="http://suriyasonphu.com/post/chain-of-thought-prompting/cover.png" alt="Featured image of post Chain of Thought (CoT) prompting" />&lt;p>&lt;strong>Chain of Thought (CoT)&lt;/strong> is a technique in Prompt Engineering designed to &lt;strong>enhance the reasoning capabilities&lt;/strong> of Large Language Models (LLMs), particularly for complex tasks. Instead of asking the model to provide an answer immediately, this technique instructs the model to display its thinking process step-by-step before reaching a final conclusion. This approach helps reduce errors caused by the model attempting to answer instantly without planning the problem-solving process.&lt;/p>
&lt;h3 id="types-of-cot-prompting">Types of CoT Prompting
&lt;/h3>&lt;p>Key usage patterns identified in resources include:&lt;/p>
&lt;ul>
&lt;li>&lt;strong>Zero-shot CoT:&lt;/strong> Instructing the model to &amp;ldquo;think step-by-step&amp;rdquo; (e.g., using the command &amp;ldquo;explain your answer step-by-step&amp;rdquo;) without the user needing to provide examples of thinking beforehand.&lt;/li>
&lt;li>&lt;strong>Few-shot (Exemplar-based):&lt;/strong> Providing examples (Exemplars) that demonstrate how to break down a problem into steps, allowing the model to mimic that reasoning style.&lt;/li>
&lt;li>&lt;strong>Automatic CoT:&lt;/strong> The system automatically generates reasoning steps to reduce the burden on the user in writing prompts.&lt;/li>
&lt;li>&lt;strong>Multimodal CoT:&lt;/strong> Expanding the scope of reasoning by using multiple forms of data together, such as &lt;strong>text and images&lt;/strong>, to solve more complex problems.&lt;/li>
&lt;/ul>
&lt;h3 id="benefits-and-advantages">Benefits and Advantages
&lt;/h3>&lt;ul>
&lt;li>&lt;strong>Higher Accuracy:&lt;/strong> Significantly improves the model&amp;rsquo;s ability to solve mathematical problems (Arithmetic reasoning) and logical reasoning tasks.&lt;/li>
&lt;li>&lt;strong>Transparency:&lt;/strong> Showing the thinking steps helps users understand how the model arrived at an answer, making it easier to debug errors.&lt;/li>
&lt;li>&lt;strong>Enhancing Smaller Models:&lt;/strong> Research suggests that CoT can enable smaller or cheaper models to have reasoning capabilities comparable to larger, more complex models.&lt;/li>
&lt;/ul>
&lt;h3 id="limitations-and-considerations">Limitations and Considerations
&lt;/h3>&lt;ul>
&lt;li>&lt;strong>Resource Costs:&lt;/strong> Generating multi-step thought sequences requires more processing power and takes longer, impacting costs.&lt;/li>
&lt;li>&lt;strong>Prompt Quality:&lt;/strong> The effectiveness of CoT depends on the quality of the prompts and examples provided. Poor prompts can lead to plausible but incorrect reasoning (Misleading reasoning).&lt;/li>
&lt;li>&lt;strong>Risk of Overfitting:&lt;/strong> The model might memorize the response patterns from examples too closely, leading to a lack of flexibility in solving diverse problems.&lt;/li>
&lt;/ul>
&lt;h3 id="real-world-applications">Real-world Applications
&lt;/h3>&lt;p>CoT is widely used in various fields, such as:&lt;/p>
&lt;ul>
&lt;li>&lt;strong>Education:&lt;/strong> Creating detailed explanations for solving math or science problems.&lt;/li>
&lt;li>&lt;strong>Customer Service:&lt;/strong> Helping chatbots understand complex issues and provide more targeted answers.&lt;/li>
&lt;li>&lt;strong>Research:&lt;/strong> Assisting researchers in structuring thought sequences for scientific problem-solving.&lt;/li>
&lt;li>&lt;strong>AI Ethics:&lt;/strong> Explaining the reasoning behind AI decisions in situations where ethics must be considered.&lt;/li>
&lt;/ul>
&lt;p>&lt;strong>Comparison:&lt;/strong>
To visualize this clearly, &lt;strong>Chain of Thought is like a student showing their work on a math exam&lt;/strong> instead of just writing the final answer. Showing the work ensures that each calculation step is correct, and if the final answer is wrong, the teacher (or user) can trace back to see where the error began.&lt;/p>
&lt;h2 id="example-applying-cot-in-product-development-strategy">Example: Applying CoT in Product Development Strategy
&lt;/h2>&lt;h3 id="1-step-by-step-prompting">1. Step-by-Step Prompting
&lt;/h3>&lt;p>Instead of asking &amp;ldquo;How should we develop a hotel booking app to beat competitors?&amp;rdquo;, use &lt;strong>Instruction-based CoT&lt;/strong> by ordering the model to separate its thinking into a sequence:&lt;/p>
&lt;ul>
&lt;li>&lt;strong>Step 1:&lt;/strong> Analyze the Pain Points of users in the current market.&lt;/li>
&lt;li>&lt;strong>Step 2:&lt;/strong> Compare the Pros and Cons of key competitors in the market.&lt;/li>
&lt;li>&lt;strong>Step 3:&lt;/strong> Identify key features (MVP) that can solve problems better than competitors.&lt;/li>
&lt;li>&lt;strong>Step 4:&lt;/strong> Plan a development Roadmap prioritized by impact on users.&lt;/li>
&lt;/ul>
&lt;h3 id="2-using-the-thinking-process-for-transparency">2. Using the Thinking Process for Transparency
&lt;/h3>&lt;p>Using CoT helps the development team understand the &lt;strong>&amp;ldquo;origin&amp;rdquo;&lt;/strong> of a strategy. For example, if the model suggests emphasizing an AI Chatbot feature, CoT will make the model show supporting reasons (Reasoning steps) such as:&lt;/p>
&lt;ul>
&lt;li>&amp;ldquo;Analysis indicates that users often cancel bookings if they don&amp;rsquo;t receive an answer within 5 minutes.&amp;rdquo;&lt;/li>
&lt;li>&amp;ldquo;Therefore, adding a Chatbot will help reduce the Churn rate and save on customer service costs.&amp;rdquo;&lt;/li>
&lt;li>&lt;strong>Result:&lt;/strong> This strategy is logically more sound than just suggesting a feature name.&lt;/li>
&lt;/ul>
&lt;h3 id="3-applying-various-cot-patterns-variants">3. Applying Various CoT Patterns (Variants)
&lt;/h3>&lt;ul>
&lt;li>&lt;strong>Zero-shot CoT:&lt;/strong> Users can use short commands like &lt;em>&amp;ldquo;Strategize expanding the app&amp;rsquo;s user base by thinking through it step-by-step in detail&amp;rdquo;&lt;/em> to let the model use its internal knowledge to build a thought sequence.&lt;/li>
&lt;li>&lt;strong>Few-shot (Exemplar-based):&lt;/strong> Users provide examples of successful past strategies along with the thinking behind them, so the model mimics that reasoning pattern for a new product.&lt;/li>
&lt;li>&lt;strong>Multimodal CoT:&lt;/strong> If there are app UI mockups, images can be used with text for the model to analyze and propose UX strategy improvements based on visual data.&lt;/li>
&lt;/ul>
&lt;h3 id="4-benefits-for-digital-product-development">4. Benefits for Digital Product Development
&lt;/h3>&lt;ul>
&lt;li>&lt;strong>Reduced Errors:&lt;/strong> Prevents jumping to strategic conclusions that might not fit the actual market (Avoiding jumping to an answer).&lt;/li>
&lt;li>&lt;strong>Deep Problem Solving (Multistep Reasoning):&lt;/strong> Helps visualize the connection between technology (Backend) and business needs (Business Goal) more clearly.&lt;/li>
&lt;li>&lt;strong>Precision:&lt;/strong> Breaking a large problem into small parts (Manageable steps) helps make the plan detailed and actionable.&lt;/li>
&lt;/ul>
&lt;hr>
&lt;p>Using CoT in digital strategy is like &lt;strong>a team whiteboarding session&lt;/strong> where we don&amp;rsquo;t just talk about the final goal, but we sketch out the sequence of events, from understanding the customer to selecting the technology, so everyone sees clearly why we chose that strategy.&lt;/p>
&lt;p>&lt;strong>Chain of Thought (CoT) prompting&lt;/strong> is not just a technique for writing commands to get answers, but a crucial mechanism for &lt;strong>elevating the reasoning potential&lt;/strong> of AI to be closer to human thought processes.&lt;/p>
&lt;ol>
&lt;li>
&lt;p>&lt;strong>Transforming AI from an &amp;ldquo;Answerer&amp;rdquo; to a &amp;ldquo;Thinking Partner&amp;rdquo;:&lt;/strong> The core of CoT is shifting from letting the model jump to what seems like the correct answer (jumping to an answer) to displaying a transparent, sequential problem-solving process, which significantly reduces reasoning errors.&lt;/p>
&lt;/li>
&lt;li>
&lt;p>&lt;strong>Creating Transparency &amp;amp; Observability:&lt;/strong> Having the model &amp;ldquo;think out loud&amp;rdquo; in steps allows users to verify errors and understand the logic behind the AI, making it less of a Black Box.&lt;/p>
&lt;/li>
&lt;li>
&lt;p>&lt;strong>Expanding Capabilities Without Limiting Model Size:&lt;/strong> CoT allows smaller models to process complex tasks like math problems or ethical decisions similarly to larger models.&lt;/p>
&lt;/li>
&lt;li>
&lt;p>&lt;strong>The Trade-off:&lt;/strong> Despite the benefits, users must trade off &lt;strong>higher computational costs&lt;/strong> and longer processing times, as well as the risk of generating plausible yet incorrect reasoning if prompts are not rigorous enough.&lt;/p>
&lt;/li>
&lt;/ol>
&lt;p>Therefore, using CoT in work, whether for business strategy or technical problem-solving, is like &lt;strong>&amp;ldquo;forcing AI to show its work on scratch paper.&amp;rdquo;&lt;/strong> This not only helps obtain more accurate answers but also helps us as users learn systematic problem analysis methods along with the AI.&lt;/p>
&lt;p>&lt;img src="http://suriyasonphu.com/post/chain-of-thought-prompting/info-en.png"
width="1024"
height="571"
srcset="http://suriyasonphu.com/post/chain-of-thought-prompting/info-en_hu_dd066ae6f92cd2e5.png 480w, http://suriyasonphu.com/post/chain-of-thought-prompting/info-en_hu_16a00eb22d83c626.png 1024w"
loading="lazy"
class="gallery-image"
data-flex-grow="179"
data-flex-basis="430px"
>&lt;/p>
&lt;h2 id="references">References
&lt;/h2>&lt;ol>
&lt;li>Microsoft Learn. (2025, May 29). Chain of Thought Prompting - .NET. Retrieved from &lt;a class="link" href="https://learn.microsoft.com" target="_blank" rel="noopener"
>https://learn.microsoft.com&lt;/a>
&lt;ul>
&lt;li>&lt;strong>Key Focus:&lt;/strong> Focuses on using Prompt Engineering to display sequential steps and intermediate results to reduce model errors.&lt;/li>
&lt;/ul>
&lt;/li>
&lt;li>Coursera Staff. (2025, April 18). Chain of Thought Prompting: Enhancing AI Reasoning and Decision-Making. Retrieved from &lt;a class="link" href="https://www.coursera.org" target="_blank" rel="noopener"
>https://www.coursera.org&lt;/a>
&lt;ul>
&lt;li>&lt;strong>Key Focus:&lt;/strong> Explains types of CoT (Zero-shot, Automatic, Multimodal) and its application in arithmetic and commonsense reasoning tasks.&lt;/li>
&lt;/ul>
&lt;/li>
&lt;li>Gadesha, V., Kavlakoglu, E., &amp;amp; Winland, V. (IBM Research). What is chain of thought (CoT) prompting? Retrieved from &lt;a class="link" href="https://www.ibm.com" target="_blank" rel="noopener"
>https://www.ibm.com&lt;/a>
&lt;ul>
&lt;li>&lt;strong>Key Focus:&lt;/strong> Details advantages regarding transparency and limitations concerning high computational power costs.&lt;/li>
&lt;/ul>
&lt;/li>
&lt;/ol></description></item></channel></rss>