Artificial Intelligence

ChatGPT: Unlocking the Power of Large Language Models (A.I) with Examples

Hello there! Today, I’m going to talk about OpenAI’s ChatGPT, a large language model that can generate human-like text responses. I’ll provide different examples of ChatGPT and explain how it works.

In this example, I asked ChatGPT to creatre a simple calculator app in Python.

P.S. As a sales coach, my understanding of programming languages is limited to a basic level that I acquired over 10 years ago (C/C++)

The calculator app example is a great demonstration of how ChatGPT can be used to generate code based on a user’s request. To create the calculator app, I asked ChatGPT to “write a python code for a calculator app”. Here’s the code that ChatGPT generated:

ChatGPT Screenshot for calculator app

The code generated by ChatGPT is straightforward and easy to understand. It uses the input function to get the numbers and the operator from the user, and the if statement to determine the operator and perform the corresponding calculation. The result is then printed to the console using the print function. I used Google Colab to compile and check if it actually works. Guess what ? It works !!!

Python Code Testing on Google Colab

For my next example, I asked ChatGPT to “draft an email to a customer apologizing for the delay in delivering their Laptop on time and offer them a $100 coupon for their next purchase”. Here are the results:

Chat GPT Response 1

ChatGPT also gives an option to “Regenerate response” if you’re not satisfied with the first response. Here’s a regenerated response to the same question:

ChatGPT Response 2

For my next example, I asked ChatGPT to “explain NFT like I’m a 7 year old”. I shared the result with a 7 year old and his response was “I already know what an NFT is !” 😂

ChatGPT Response 3

In conclusion, ChatGPT is a versatile language model that can generate text based on user inputs. It can be used for a variety of applications, such as code generation, text summarization, and question answering. Whether you’re a developer, writer, or just need help with a task, ChatGPT is a tool worth exploring.

Follow me for more ! 😊

More content at PlainEnglish.io.

Sign up for our free weekly newsletter. Follow us on Twitter, LinkedIn, YouTube, and Discord.


ChatGPT: Unlocking the Power of Large Language Models (A.I) with Examples was originally published in Artificial Intelligence in Plain English on Medium, where people are continuing the conversation by highlighting and responding to this story.

https://ai.plainenglish.io/chatgpt-unlocking-the-power-of-large-language-models-a-i-76ec8b3328ce?source=rss—-78d064101951—4
By: Suryansh Srivastava
Title: ChatGPT: Unlocking the Power of Large Language Models (A.I) with Examples
Sourced From: ai.plainenglish.io/chatgpt-unlocking-the-power-of-large-language-models-a-i-76ec8b3328ce?source=rss—-78d064101951—4
Published Date: Mon, 24 Jul 2023 03:54:20 GMT

Did you miss our previous article…
https://e-bookreadercomparison.com/are-we-driving-straight-to-the-ai-gap/

Leave a Reply

Your email address will not be published. Required fields are marked *