SlideShare a Scribd company logo
1 of 3
Download to read offline
What is chat gpt ?
GPT (short for "Generative Pre-training Transformer")
is a type of language processing AI model developed by OpenAI. It is a large, deep
learning model that has been trained on a diverse range of texts and can generate
human-like text when given a prompt.
There are several versions of GPT, with the most recent version being
GPT-3 (short for "Generative Pre-training Transformer 3").
• GPT-3 is one of the most advanced language processing AI models currently available,
and it is capable of performing a wide range of language-related tasks, including
translation, summarization, and text generation.
One potential use of GPT-3 is in chatbots, where it can be used to generate responses to
user input in real-time. This can allow chatbots to have more natural and human-like
conversations with users, making them more useful and user-friendly.
How to use Chat gpt?
To use GPT-3 for chatbot applications, you will need to have an API key from OpenAI and
access to a programming language such as Python or Java.
Here is an example of how you might use GPT-3 in a chatbot application using Python:
1. First, you will need to install the openai module, which will allow you to access
the GPT-3 API. You can do this by running the following command:
Copy code
pip install openaipip install openai
2. Next, you will need to import the openai module and use it to authenticate your
API key:
Copy code
import openai openai.api_key = "YOUR_API_KEY"
3. Now, you can use the openai.Completion class to generate text using GPT-3. For
example, to generate a response to a user's message, you could do the following:
Copy code
prompt = "User: Hello, how are you today?nBot:" model = "text-davinci-002"
completion = openai.Completion.create(engine=model, prompt=prompt,
max_tokens=1024, n=1,stop=None,temperature=0.5) response =
completion.choices[0].text print(response)
This will generate a response to the user's message using the GPT-3 model specified by
the model variable. The temperature parameter controls the randomness of the
generated text, with higher values resulting in more random responses.
Keep in mind that this is just a basic example, and there are many other parameters and
options that you can use when working with GPT-3. For more information, you can refer
to the OpenAI API documentation.

More Related Content

What's hot

What's hot (20)

ChatGPT Deck.pptx
ChatGPT Deck.pptxChatGPT Deck.pptx
ChatGPT Deck.pptx
 
Revolutionary-ChatGPT
Revolutionary-ChatGPTRevolutionary-ChatGPT
Revolutionary-ChatGPT
 
ChatGPT.pptx
ChatGPT.pptxChatGPT.pptx
ChatGPT.pptx
 
Introduction to ChatGPT and Overview of its capabilities and functionality.pdf
Introduction to ChatGPT and Overview of its capabilities and functionality.pdfIntroduction to ChatGPT and Overview of its capabilities and functionality.pdf
Introduction to ChatGPT and Overview of its capabilities and functionality.pdf
 
Introduction to ChatGPT
Introduction to ChatGPTIntroduction to ChatGPT
Introduction to ChatGPT
 
Chatgpt.pptx
Chatgpt.pptxChatgpt.pptx
Chatgpt.pptx
 
ChatGPT.pptx
ChatGPT.pptxChatGPT.pptx
ChatGPT.pptx
 
Uses of AI text bot.pdf
Uses of AI text bot.pdfUses of AI text bot.pdf
Uses of AI text bot.pdf
 
ChatGPT Use- Cases
ChatGPT Use- Cases ChatGPT Use- Cases
ChatGPT Use- Cases
 
OpenAI Chatgpt.pptx
OpenAI Chatgpt.pptxOpenAI Chatgpt.pptx
OpenAI Chatgpt.pptx
 
How AI is going to change the world _M.Mujeeb Riaz.pdf
How AI is going to change the world _M.Mujeeb Riaz.pdfHow AI is going to change the world _M.Mujeeb Riaz.pdf
How AI is going to change the world _M.Mujeeb Riaz.pdf
 
ChatGPT and OpenAI.pdf
ChatGPT and OpenAI.pdfChatGPT and OpenAI.pdf
ChatGPT and OpenAI.pdf
 
Jawad's presentation on GPT.pptx
Jawad's presentation on GPT.pptxJawad's presentation on GPT.pptx
Jawad's presentation on GPT.pptx
 
ChatGPT.pdf
ChatGPT.pdfChatGPT.pdf
ChatGPT.pdf
 
What is chat gpt advance guide.docx
What is chat gpt advance guide.docxWhat is chat gpt advance guide.docx
What is chat gpt advance guide.docx
 
ChatGPT 101 - Vancouver ChatGPT Experts
ChatGPT 101 - Vancouver ChatGPT ExpertsChatGPT 101 - Vancouver ChatGPT Experts
ChatGPT 101 - Vancouver ChatGPT Experts
 
Deep dive into ChatGPT
Deep dive into ChatGPTDeep dive into ChatGPT
Deep dive into ChatGPT
 
Chatbot ppt
Chatbot pptChatbot ppt
Chatbot ppt
 
Chat GPT Intoduction.pdf
Chat GPT Intoduction.pdfChat GPT Intoduction.pdf
Chat GPT Intoduction.pdf
 
Prompt Engineering
Prompt EngineeringPrompt Engineering
Prompt Engineering
 

Similar to What is chat gpt

Unleashing The Power Of CHAT-GPT
Unleashing The Power Of CHAT-GPTUnleashing The Power Of CHAT-GPT
Unleashing The Power Of CHAT-GPT
Demetris D-Papa
 
SPOTLIGHT IGNITE (10 MINUTES): THE FUTURE OF DEVELOPER TOOLS: FROM STACKOVERF...
SPOTLIGHT IGNITE (10 MINUTES): THE FUTURE OF DEVELOPER TOOLS: FROM STACKOVERF...SPOTLIGHT IGNITE (10 MINUTES): THE FUTURE OF DEVELOPER TOOLS: FROM STACKOVERF...
SPOTLIGHT IGNITE (10 MINUTES): THE FUTURE OF DEVELOPER TOOLS: FROM STACKOVERF...
DevOpsDays Tel Aviv
 
ChatGPT- E-Learning.pdf
ChatGPT- E-Learning.pdfChatGPT- E-Learning.pdf
ChatGPT- E-Learning.pdf
Maddy Baig
 

Similar to What is chat gpt (20)

The World of ChatGPT.pdf
The World of ChatGPT.pdfThe World of ChatGPT.pdf
The World of ChatGPT.pdf
 
Artificial Intelligence Innovation The Future With OpenAI GPT-3 ARTiBA.pdf
Artificial Intelligence Innovation The Future With OpenAI GPT-3 ARTiBA.pdfArtificial Intelligence Innovation The Future With OpenAI GPT-3 ARTiBA.pdf
Artificial Intelligence Innovation The Future With OpenAI GPT-3 ARTiBA.pdf
 
MuleSoft + Augmented Reality & ChatGPT
MuleSoft + Augmented Reality & ChatGPTMuleSoft + Augmented Reality & ChatGPT
MuleSoft + Augmented Reality & ChatGPT
 
MuleSoft + Augmented Reality & ChatGPT
MuleSoft + Augmented Reality & ChatGPTMuleSoft + Augmented Reality & ChatGPT
MuleSoft + Augmented Reality & ChatGPT
 
Unleashing The Power Of CHAT-GPT
Unleashing The Power Of CHAT-GPTUnleashing The Power Of CHAT-GPT
Unleashing The Power Of CHAT-GPT
 
kecs105.pdf
kecs105.pdfkecs105.pdf
kecs105.pdf
 
ChatGPT and AI for Web Developers
ChatGPT and AI for Web DevelopersChatGPT and AI for Web Developers
ChatGPT and AI for Web Developers
 
SPOTLIGHT IGNITE (10 MINUTES): THE FUTURE OF DEVELOPER TOOLS: FROM STACKOVERF...
SPOTLIGHT IGNITE (10 MINUTES): THE FUTURE OF DEVELOPER TOOLS: FROM STACKOVERF...SPOTLIGHT IGNITE (10 MINUTES): THE FUTURE OF DEVELOPER TOOLS: FROM STACKOVERF...
SPOTLIGHT IGNITE (10 MINUTES): THE FUTURE OF DEVELOPER TOOLS: FROM STACKOVERF...
 
Increase Productivity with ChatGPT
Increase Productivity with ChatGPTIncrease Productivity with ChatGPT
Increase Productivity with ChatGPT
 
chatgpt how it works
chatgpt how it workschatgpt how it works
chatgpt how it works
 
What is Chat Gpt_.pptx
What is Chat Gpt_.pptxWhat is Chat Gpt_.pptx
What is Chat Gpt_.pptx
 
How to Build an App with ChatGPT.pdf
How to Build an App with ChatGPT.pdfHow to Build an App with ChatGPT.pdf
How to Build an App with ChatGPT.pdf
 
Introduction to Python
Introduction to Python Introduction to Python
Introduction to Python
 
clicks2conversations.pdf
clicks2conversations.pdfclicks2conversations.pdf
clicks2conversations.pdf
 
Implications of GPT-3
Implications of GPT-3Implications of GPT-3
Implications of GPT-3
 
MuleSoft Integration with ChatGPT — Part 1 | MuleSoft Mysore Meetup #27
MuleSoft Integration with ChatGPT — Part 1 | MuleSoft Mysore Meetup #27MuleSoft Integration with ChatGPT — Part 1 | MuleSoft Mysore Meetup #27
MuleSoft Integration with ChatGPT — Part 1 | MuleSoft Mysore Meetup #27
 
Case study on ChatGPT.pdf
Case study on ChatGPT.pdfCase study on ChatGPT.pdf
Case study on ChatGPT.pdf
 
Building custom kernels for IPython
Building custom kernels for IPythonBuilding custom kernels for IPython
Building custom kernels for IPython
 
ChatGPT- E-Learning.pdf
ChatGPT- E-Learning.pdfChatGPT- E-Learning.pdf
ChatGPT- E-Learning.pdf
 
BotConf..pptx
BotConf..pptxBotConf..pptx
BotConf..pptx
 

Recently uploaded

Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Victor Rentea
 

Recently uploaded (20)

Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
 
MS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectorsMS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectors
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
 
Ransomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdfRansomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdf
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
 
Cyberprint. Dark Pink Apt Group [EN].pdf
Cyberprint. Dark Pink Apt Group [EN].pdfCyberprint. Dark Pink Apt Group [EN].pdf
Cyberprint. Dark Pink Apt Group [EN].pdf
 
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
 
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 AmsterdamDEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
 
[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
 
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWEREMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 

What is chat gpt

  • 1. What is chat gpt ? GPT (short for "Generative Pre-training Transformer") is a type of language processing AI model developed by OpenAI. It is a large, deep learning model that has been trained on a diverse range of texts and can generate human-like text when given a prompt. There are several versions of GPT, with the most recent version being GPT-3 (short for "Generative Pre-training Transformer 3"). • GPT-3 is one of the most advanced language processing AI models currently available, and it is capable of performing a wide range of language-related tasks, including translation, summarization, and text generation. One potential use of GPT-3 is in chatbots, where it can be used to generate responses to user input in real-time. This can allow chatbots to have more natural and human-like conversations with users, making them more useful and user-friendly. How to use Chat gpt?
  • 2. To use GPT-3 for chatbot applications, you will need to have an API key from OpenAI and access to a programming language such as Python or Java. Here is an example of how you might use GPT-3 in a chatbot application using Python: 1. First, you will need to install the openai module, which will allow you to access the GPT-3 API. You can do this by running the following command: Copy code pip install openaipip install openai 2. Next, you will need to import the openai module and use it to authenticate your API key: Copy code import openai openai.api_key = "YOUR_API_KEY" 3. Now, you can use the openai.Completion class to generate text using GPT-3. For example, to generate a response to a user's message, you could do the following: Copy code prompt = "User: Hello, how are you today?nBot:" model = "text-davinci-002" completion = openai.Completion.create(engine=model, prompt=prompt, max_tokens=1024, n=1,stop=None,temperature=0.5) response = completion.choices[0].text print(response) This will generate a response to the user's message using the GPT-3 model specified by the model variable. The temperature parameter controls the randomness of the generated text, with higher values resulting in more random responses.
  • 3. Keep in mind that this is just a basic example, and there are many other parameters and options that you can use when working with GPT-3. For more information, you can refer to the OpenAI API documentation.