Few Shot Prompting for Engineering Questions using ChatGPT | Scribe

    Few Shot Prompting for Engineering Questions using ChatGPT

    • Patrick Law |
    • 7 steps |
    • 17 seconds
    1
    In this guide. I will demonstrate how to use the "few shot prompting technique" to calculate the required pipe diameter given flow rate and velocity.
    2
    Navigate to [https://chatgpt.com/?model=gpt-4o](https://chatgpt.com/?model=gpt-4o)
    3
    Click a new conversation.
    4
    Enter this Prompt to calculate the pipe diameter using the few shot prompting technique: "*Calculate the pipe diameter for a flow rate of 0.1 m³/s at a velocity of 1 m/s.\ D = √(4Q/πv)\ D = √(4 × 0.1 / π × 1)\ D = 0.357 m.* *Example 2: Calculate the pipe diameter for a flow rate of 0.3 m³/s at a velocity of 3 m/s.\ D = √(4Q/πv)\ D = √(4 × 0.3 / π × 3)\ D = 0.357 m.* *Now calculate the pipe diameter for a flow rate of 0.2 m³/s at a velocity of 2 m/s."*\ \ [[By providing structured examples, Few-shot Prompting gives the AI context, helping it understand the problem better and produce more consistent results."]]
    5
    Click this icon.
    6
    Review the result
    7
    [[Few-shot Prompting improves the AI’s accuracy by guiding it with examples. It’s especially helpful for complex or less familiar problems but requires careful selection of examples.]]\ [[Few-shot Prompting helps bridge the gap between basic and advanced AI responses. In the next video, we’ll explore Expert Prompting, a method to simulate domain expertise in engineering calculations. Subscribe to our youtube channel and the udemy course to learn more about using AI in your engineering workflow. ]]