SlideShare a Scribd company logo
“Artificial
intelligence is
based on the
assumption that
the process of
human thought can
be mechanized”
Exploring ChatGPT Prompt Hacks To Maximally Optimise Your Queries
Brief History
Of AI
• Ancient roots
• Philosophical
• Invention of computers
• Dartmouth Workshop
• 21st century boom
• Big data
• AI and Quantum computing
• Advance Robotics and space
exploration
The first robot
• “Shakey” was the first mobile
robot with the ability to perceive
and reason about its
surroundings. The subject of SRI's
Artificial Intelligence Center
research from 1966 to 1972,
Shakey could perform tasks that
required planning, route-finding,
and the rearranging of simple
objects.
The first
chatbot
• ELIZA was a natural language
processing program written
sometime in the mid-1960s by
German-American computer
scientist Joseph Wizenbaum at the
MIT Artificial Laboratory. Widely
acknowledged as the first-ever
chatbot, ELIZA used pattern-
matching and substitution methods
to stimulate conversations.
First self
driving car
• In 1986 Ernst Dickmanns and his team developed
a Mercedes van called VaMoRs. It was capable of
self-driving at the top speed of the vehicle,
around 60 mph. The van was fitted with a master
computer and a parallel-processing system
consisting of 10 Intel 8086 CPU which processed
32x32 pixel areas determined to be interesting.
In 1987 the van was capable of collision
avoidance and obstacle detection. A vehicle that
could "see" and drive itself at a normal speed ...
35 years ago ! It explains why Dickmanns is
considered as a pioneer for autonomous driving.
Chess
Grandmaster,
defeated, 1997!
My personal favorite,
story of AlphaGo
• AlphaGo is a computer program
that plays the board game Go. It
was developed by the London-
based DeepMind Technologies, an
acquired subsidiary of Google.
Subsequent versions of AlphaGo
became increasingly powerful,
including a version that competed
under the name Master.
• https://www.youtube.com/watch
?v=WXuK6gekU1Y
Types of AI
Types of
AI
https://www.neilsahota.com/what-is-artificial-intelligence-how-does-it-work/
Types of
Machine
Learning
Overview of ChatGPT
• ChatGPT History
• By OpenAI
• Public release in Nov 2022
• Touted as the fastest app to reach 100M users (in 2 months)
• Other products include DALE-E, Whisper, GPT4, Jukebox, Musenet
• What in the name …ChatGPT
• Two parts, CHAT and GPT
• Chat is the application of GPT
• GPT means – Generative Pre-Trained Transformer
Some ChatGPT facts
• It is a Large Language Model trained using Reinforcement Learning From
Human Feedback (RLHF) – a sort of non-supervised pre-trained model
• Has over 175 Billion parameters and trained on a dataset of over 300B
words
• Cost US100,000 to run/day, approximately US3M/month
• Gets approximately 1B queries/day
• Has a “Plus” version at US20/month
• Has API access for free and for US5/month
• Official apps for iOS and now Android worldwide
• Android: https://play.google.com/store/apps/details?id=com.openai.chatgpt&hl=en_US
• iOS: https://apps.apple.com/my/app/chatgpt/id6448311069
• Important: Do not use other 3rd party apps that do the same as above!
ChatGPT
Versions
https://zeball.com/6430/chatgpt-free-vs-chatgpt-plus-whats-the-difference/
What is ChatGPT good at
• All things text related and language agnostic
• Coding (Mainly javascript, python and java ..also C++, PHP and
Ruby/ROR)
• Different languages (100+, including BM)
• Can be used to translate
• Sentiment analysis
• Mimic your writing style
• Write different types of topics and scenarios
• And many more…(we’ll explore some interesting ones)
Some of the latest in ChatGPT
• Custom instructions
• GPT4 api (paid)
• Higher message limits for GPT ¾
• Free = 30 / hour
• Paid = 50 / hour for GPT4 (its unspecified for GPT3)
• Code interpreter
• Browsing (now disabled )
• Disable chat history
• Many other model improvements
ChatGPT Schematic Approach
• Techniques for refining
• Role playing
• Writing style
• Defining output
• Chain a conversation
• Inject relatable data to further tune the output to your whim
Define personality
Define
Requests/Constraints
Define scope or
provide examples
Produce additional
data if exist
Define output type
Provide extra data
examples to further
enhance your output
Increase Effectiveness
• Use new chat sessions to reduce convolution from previous topics
• Confusing or ambiguous prompts
• Provide context as much as possible to garner best responses
• Use examples when you require specifics (follow the schematic guide
for best outcome)
• Remember: GIGO
Increase Effectiveness
• The Better Your Input, The Better The Output
• The ability to “produce better outcome” will requires further clarification on
the question, right? Maybe we can tell ChatGPT to seek clarification?
• Reset
• Forget everything above and start anew
• Derive Knowledge from Information
• Explain to me how you deduced this
• Create deviation
• Don’t answer like typical ChatGPT (not all the time effective, works for bigger
text)
ChatGPT Extensions
• Extensions
• Plugin store (100s!)
• Code interpreter
• Image generator
• Data analysis and visualization
• Files conversion
• Write and execute code
• Solve math problems (same as Mixbox)
• Plugin store examples
• Pdf plugin – AI PDF
• Travel – KAYAK
• Google related ChatGPT
• Mixbox: Math
• And with Zapier, 5000+ functions/integrations
Prompts That Could Be Useful To You
• Summarizing Content
• Especially useful when dealing with large text
• If you have large text above 8k/16k characters, put them into “pages”
• E.g., I have 10 pages of data exceeding 80,000 words, i will place them
here in 10 pages, denoting page 1 through page 10. At the end, when i
am done, i want you to summarise the entire content when i enter the
keyword "Summ”
• Page 1
• <Text>
• Page 2
• <Text>
Common Criteria License
Prompts That Could Be Useful To You
• Splitting perspectives
• Ask it to give opinions of points in your presentation deck from multiple
perspectives, e.g., from a perspective of an expert vs perspective of a novice
user
Common Criteria License
Prompts That Could Be Useful To You
• Figuring out your customers to invite
• “You are an expert marketeer with 20 years expertise in online and offline
marketing and you are especially good at audience relationship. You are
planning to run an event to introduce ZeeWall, the world’s most advance
firewall. Please produce a list of customer profiles that you will consider
inviting”
Common Criteria License
Prompts That Could Be Useful To You
• Model thinking
• Getting best models for given task
• “You are an expert project management consultant using strategic models to
achieve better thinking in doing tasks in deploying NagiosXI monitoring
solution for customers. Also state the benefits of this model and create a
detailed writeup how to use it”
Common Criteria License
Prompts That Could Be Useful To You
• Google expert search criteria
• Getting best Google / Bing search questions
• You are expert in Google searches and have over 10 years helping businesses
succeed by training them to use Google search effectively. Give me 10 search
ideas for
How to create a hugely successful chef association here in Malaysia.
Make the search terms specific and powerful to help us get to the information
we need faster. Present your response in a table, using the columns "Search
Term" and "Information we're looking for"
Common Criteria License
Prompts That Could Be Useful To You
• Google expert search criteria
• Getting best Google / Bing search questions
• You are expert in Google searches and have over 10 years helping businesses
succeed by training them to use Google search effectively. Give me 10 search
ideas for
How to create a hugely successful chef association here in Malaysia.
Make the search terms specific and powerful to help us get to the information
we need faster. Present your response in a table, using the columns "Search
Term" and "Information we're looking for"
Common Criteria License
Prompts That Could Be Useful To You
• Build great SEO topics for your blog (then create blogs, see next slide)
• Blogging/Article helps companies achieve better SEO
• “You are an SEO expert and working for a top consulting company here in
Malaysia. Come up with 5 hot blog topics that will help with my company’s
SEO for the product I carry and that is Woocommerce Pro. Also ensure the
topics are professional and unique”
Common Criteria License
Prompts That Could Be Useful To You
• Improve any text
• Copy and paste and just enter “Improve the following text and make it sound
more profession
• Emails
• WhatsApp text
• Website text
• Documentation
• Etc etc.
Common Criteria License
Prompts That Could Be Useful To You
• Look at life from both sides ….
• Get ChatGPT to give alternative views on your <strong> opinion about
something
• This is also a good method for objection handling
• Or seeing viewpoints of others
Common Criteria License
Prompts That Could Be Useful To You
• Sales ninja
• Try this kind of prompt for your next Sales Pitch
You are a highly successful and experienced sales professional. You know
what it is that encourages people to spend money on a product with a smile
on their face. I want you to help me find and articulate the reasons why
people would buy my product, Zendesk. Please ask me questions one by one
to learn about the product and the audience. Once you have enough
information, please create a numbered table listing the selling points, how
they can be articulated and whether they are of primary, secondary or
tertiary importance.
Common Criteria License
Other cool prompts and what they do
The prompt The purpose
Act as <insert profession> Gives you articulation based on that profession
Act as <linux terminal, sql server, javascript console> To test out and play with code (aside from using
codeinterpreter)
Compare <data 1> and <data 2> and come up with
your interpretation as a <insert profession>
To take two or more data points and summarize or
interpret them, e.g. interpret them as a cybersecurity
professional
Give advice as <profession> for <scenario> E.g. as mental health professional ..
Build <code> to do <function, feature> written in
<programming language>
To build specific code snippets, or you can also ask it
to check the code, optimize it etc
Get medical advice I’ve got this burning sensation when I pee….
Provide ideas for doing <business type> Provide ideas related to business to try and start
“right”
Solve this problem i have with my boss
<problem>
Self explanatory
Other cool prompts
• What can you further add to the plate and share with the audience
here?
Ethical considerations
• Copyright? Who does the prompt output belong to?
• Privacy concerns – Can it infiltrate private or personal info?
• AI Biases – It may not have sentience to deduce what’s right from wrong
• Source corruption/misinformation? - Must check the output every time,
do not just copy/paste.
• Jailbreaking? – Force it to do things deemed contraband/illegal
• There aren’t laws to govern use of AI or building AI models
• Cybersecurity threats?
• Job security?
• ChatGPT is outdated.
What is ChatGPT API?
A tool that enables you to integrate the power of ChatGPT into
your applications, products, or services. It gives you access to
ChatGPT’s ability to generate human-like responses to
questions and engage in casual conversation.
What is an API?
Application Programming Interface - is a way for two or more
computer programs to communicate with each other.
Slide by ML Scientist Aiman@orencloud.com
INTEGRATING CHATGPT
Before integrating ChatGPT into your system, you will need 3 things:
OpenAI API Key
API key is basically an encrypted text that a
developer must obtain in order to access the
API. It is obtainable via creating an OpenAI
account
Token
Tokens can be thought of as pieces of words.
Before the API processes the prompts, the
input is broken down into tokens.
Model
Models are basically the brain for the AI,
each model has it different used for fine-
tuning with different price range.
Slide by ML Scientist Aiman@orencloud.com
Sign up or log in to the official OpenAI
platform.
(https://platform.openai.com/signup)
Login/Signup OpenAI
Click On Personal Tab select View API
Keys and you will lend on API Key page
Go To OpenAI API Tab
Click On Create New Secret Key.
you are all set to integrate ChatGPT into
your system!
Generate API Key
CHATGPT API KEY ACCESS
01 02 03
Slide by ML Scientist Aiman@orencloud.com
"You miss 100% of the shots you don't take"
- Wayne Gretzky
*This quote cost 11 tokens
CHATGPT API TOKEN
• 1 token ~= 4 chars in English
• 1 token ~= ¾ words
• 100 tokens ~= 75 words
• 1-2 sentence ~= 30 tokens
• 1 paragraph ~= 100 tokens
• 1,500 words ~= 2048 tokens
Model Input Output
8K context $0.03 / 1K tokens $0.06 / 1K tokens
32K context $0.06 / 1K tokens $0.12 / 1K tokens
Model Training Usage
Ada $0.0004 / 1K tokens $0.0016 / 1K tokens
Babbage $0.0006 / 1K tokens $0.0024 / 1K tokens
Curie $0.0030 / 1K tokens $0.0120 / 1K tokens
Davinci $0.0300 / 1K tokens $0.1200 / 1K tokens
Slide by ML Scientist Aiman@orencloud.com
Extending ChatGPT (with free tools)
• DocsGPT (GH - https://github.com/arc53/DocsGPT )
• Quivr (GH - https://github.com/StanGirard/quivr )
• Many more in Github which you can try
https://github.com/search?q=ChatGPT&type=repositories&s=stars&o
=desc
• Dumb code example with python
ChatGPT APIs (hello-world sample in python)
#!/usr/bin/python3
import openai
import os
openai.api_key = ‘<redacted>’
os.system('clear')
user_content = input("Please enter your question: ")
response = openai.ChatCompletion.create(
model="gpt-3.5-turbo",
messages=[
{"role": "system", "content": "You are IA Champion BOT"},
{"role": "user", "content": user_content},
]
)
print(response['choices'][0]['message']['content'])
https://platform.openai.com/docs/api-reference/chat/create
Other cool
AI tools
“From Yearning
for Human-Like
Computers to
Aspiring to
Compute Like
Them!”

More Related Content

Similar to Exploring ChatGPT Prompt Hacks To Maximally Optimise Your Queries

Top to Bottom: SEO for Small Businesses
Top to Bottom: SEO for Small BusinessesTop to Bottom: SEO for Small Businesses
Top to Bottom: SEO for Small Businesses
George Freitag
 
Романа Косцик “New project begins. Jump in and keep calm. Everything will be ...
Романа Косцик “New project begins. Jump in and keep calm. Everything will be ...Романа Косцик “New project begins. Jump in and keep calm. Everything will be ...
Романа Косцик “New project begins. Jump in and keep calm. Everything will be ...
Dakiry
 
Full-on DITA Strategies Beyond Technical Publications with Rob Hanna, ECMs
Full-on DITA Strategies Beyond Technical Publications with Rob Hanna, ECMsFull-on DITA Strategies Beyond Technical Publications with Rob Hanna, ECMs
Full-on DITA Strategies Beyond Technical Publications with Rob Hanna, ECMs
Information Development World
 
Website Planning 101 with Jen McKibben
Website Planning 101 with Jen McKibbenWebsite Planning 101 with Jen McKibben
Website Planning 101 with Jen McKibben
John Coonen
 
ChatGPT-and-Generative-AI-Landscape Working of generative ai search
ChatGPT-and-Generative-AI-Landscape Working of generative ai searchChatGPT-and-Generative-AI-Landscape Working of generative ai search
ChatGPT-and-Generative-AI-Landscape Working of generative ai search
rohitcse52
 
How Can Your IT Business Succeed Internationally?
How Can Your IT Business Succeed Internationally?How Can Your IT Business Succeed Internationally?
How Can Your IT Business Succeed Internationally?
Milena Milicevic
 
Writing For Semantic Search
Writing For Semantic SearchWriting For Semantic Search
Writing For Semantic Search
Zara Altair
 
Writing for Semantic Search
Writing for Semantic SearchWriting for Semantic Search
Writing for Semantic Search
Zara Altair
 
Jumpstart - 02/01/2015
Jumpstart - 02/01/2015Jumpstart - 02/01/2015
Jumpstart - 02/01/2015
Tom Hartman
 
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
Mujeeb Riaz
 
Inbound Marketing Conference 2016 Summary
Inbound Marketing Conference 2016 SummaryInbound Marketing Conference 2016 Summary
Inbound Marketing Conference 2016 Summary
Jimmy Smith
 
User acquisition myths tips and tricks
User acquisition   myths tips and tricksUser acquisition   myths tips and tricks
User acquisition myths tips and tricks
Bonny Lai
 
Optimizing DITA Content for Search Engine Optimization tekom tcworld 2016
Optimizing DITA Content for Search Engine Optimization tekom tcworld 2016Optimizing DITA Content for Search Engine Optimization tekom tcworld 2016
Optimizing DITA Content for Search Engine Optimization tekom tcworld 2016
IXIASOFT
 
Brooklyn Center for Media Education: Basic Marketing Techniques 2012
Brooklyn Center for Media Education: Basic Marketing Techniques 2012Brooklyn Center for Media Education: Basic Marketing Techniques 2012
Brooklyn Center for Media Education: Basic Marketing Techniques 2012
briccommunitymedia
 
9 Tips on How to hire Tech Talent when you are not a Techie
9 Tips on How to hire Tech Talent when you are not a Techie9 Tips on How to hire Tech Talent when you are not a Techie
9 Tips on How to hire Tech Talent when you are not a Techie
Interview Mocha
 
SEO & Content Marketing Master Class - Anil Kumar Singh, NEO Media World
SEO & Content Marketing Master Class - Anil Kumar Singh, NEO Media WorldSEO & Content Marketing Master Class - Anil Kumar Singh, NEO Media World
SEO & Content Marketing Master Class - Anil Kumar Singh, NEO Media World
DigiMarCon - Digital Marketing, Media and Advertising Conferences & Exhibitions
 
How to Use ChatGPT to Create Personalized Experiences for Customers
How to Use ChatGPT to Create Personalized Experiences for CustomersHow to Use ChatGPT to Create Personalized Experiences for Customers
How to Use ChatGPT to Create Personalized Experiences for Customers
Vbout.com
 
DITA and SEO
DITA and SEODITA and SEO
DITA and SEO
IXIASOFT
 
Ektron London Conference: Realise Digital - Old Dogs, New Tricks
Ektron London Conference: Realise Digital - Old Dogs, New TricksEktron London Conference: Realise Digital - Old Dogs, New Tricks
Ektron London Conference: Realise Digital - Old Dogs, New Tricks
Ektron
 
Superfast Business: Digital Leadership October 2014
Superfast Business: Digital Leadership October 2014Superfast Business: Digital Leadership October 2014
Superfast Business: Digital Leadership October 2014
Superfast Business
 

Similar to Exploring ChatGPT Prompt Hacks To Maximally Optimise Your Queries (20)

Top to Bottom: SEO for Small Businesses
Top to Bottom: SEO for Small BusinessesTop to Bottom: SEO for Small Businesses
Top to Bottom: SEO for Small Businesses
 
Романа Косцик “New project begins. Jump in and keep calm. Everything will be ...
Романа Косцик “New project begins. Jump in and keep calm. Everything will be ...Романа Косцик “New project begins. Jump in and keep calm. Everything will be ...
Романа Косцик “New project begins. Jump in and keep calm. Everything will be ...
 
Full-on DITA Strategies Beyond Technical Publications with Rob Hanna, ECMs
Full-on DITA Strategies Beyond Technical Publications with Rob Hanna, ECMsFull-on DITA Strategies Beyond Technical Publications with Rob Hanna, ECMs
Full-on DITA Strategies Beyond Technical Publications with Rob Hanna, ECMs
 
Website Planning 101 with Jen McKibben
Website Planning 101 with Jen McKibbenWebsite Planning 101 with Jen McKibben
Website Planning 101 with Jen McKibben
 
ChatGPT-and-Generative-AI-Landscape Working of generative ai search
ChatGPT-and-Generative-AI-Landscape Working of generative ai searchChatGPT-and-Generative-AI-Landscape Working of generative ai search
ChatGPT-and-Generative-AI-Landscape Working of generative ai search
 
How Can Your IT Business Succeed Internationally?
How Can Your IT Business Succeed Internationally?How Can Your IT Business Succeed Internationally?
How Can Your IT Business Succeed Internationally?
 
Writing For Semantic Search
Writing For Semantic SearchWriting For Semantic Search
Writing For Semantic Search
 
Writing for Semantic Search
Writing for Semantic SearchWriting for Semantic Search
Writing for Semantic Search
 
Jumpstart - 02/01/2015
Jumpstart - 02/01/2015Jumpstart - 02/01/2015
Jumpstart - 02/01/2015
 
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
 
Inbound Marketing Conference 2016 Summary
Inbound Marketing Conference 2016 SummaryInbound Marketing Conference 2016 Summary
Inbound Marketing Conference 2016 Summary
 
User acquisition myths tips and tricks
User acquisition   myths tips and tricksUser acquisition   myths tips and tricks
User acquisition myths tips and tricks
 
Optimizing DITA Content for Search Engine Optimization tekom tcworld 2016
Optimizing DITA Content for Search Engine Optimization tekom tcworld 2016Optimizing DITA Content for Search Engine Optimization tekom tcworld 2016
Optimizing DITA Content for Search Engine Optimization tekom tcworld 2016
 
Brooklyn Center for Media Education: Basic Marketing Techniques 2012
Brooklyn Center for Media Education: Basic Marketing Techniques 2012Brooklyn Center for Media Education: Basic Marketing Techniques 2012
Brooklyn Center for Media Education: Basic Marketing Techniques 2012
 
9 Tips on How to hire Tech Talent when you are not a Techie
9 Tips on How to hire Tech Talent when you are not a Techie9 Tips on How to hire Tech Talent when you are not a Techie
9 Tips on How to hire Tech Talent when you are not a Techie
 
SEO & Content Marketing Master Class - Anil Kumar Singh, NEO Media World
SEO & Content Marketing Master Class - Anil Kumar Singh, NEO Media WorldSEO & Content Marketing Master Class - Anil Kumar Singh, NEO Media World
SEO & Content Marketing Master Class - Anil Kumar Singh, NEO Media World
 
How to Use ChatGPT to Create Personalized Experiences for Customers
How to Use ChatGPT to Create Personalized Experiences for CustomersHow to Use ChatGPT to Create Personalized Experiences for Customers
How to Use ChatGPT to Create Personalized Experiences for Customers
 
DITA and SEO
DITA and SEODITA and SEO
DITA and SEO
 
Ektron London Conference: Realise Digital - Old Dogs, New Tricks
Ektron London Conference: Realise Digital - Old Dogs, New TricksEktron London Conference: Realise Digital - Old Dogs, New Tricks
Ektron London Conference: Realise Digital - Old Dogs, New Tricks
 
Superfast Business: Digital Leadership October 2014
Superfast Business: Digital Leadership October 2014Superfast Business: Digital Leadership October 2014
Superfast Business: Digital Leadership October 2014
 

More from Sanjay Willie

WordPress CLI in-depth
WordPress CLI in-depthWordPress CLI in-depth
WordPress CLI in-depth
Sanjay Willie
 
The Role of Governments In Sustaining The 4th Industrial Revolution
The Role of Governments In Sustaining The 4th Industrial RevolutionThe Role of Governments In Sustaining The 4th Industrial Revolution
The Role of Governments In Sustaining The 4th Industrial Revolution
Sanjay Willie
 
Enhancing Contact Centers Through Open Source Digital Workplace Solutions
Enhancing Contact Centers Through Open Source Digital Workplace SolutionsEnhancing Contact Centers Through Open Source Digital Workplace Solutions
Enhancing Contact Centers Through Open Source Digital Workplace Solutions
Sanjay Willie
 
Open Source Driving Digital Workplace Collaboration
Open Source Driving Digital Workplace CollaborationOpen Source Driving Digital Workplace Collaboration
Open Source Driving Digital Workplace Collaboration
Sanjay Willie
 
Functionality, security and performance monitoring of web assets (e.g. Joomla...
Functionality, security and performance monitoring of web assets (e.g. Joomla...Functionality, security and performance monitoring of web assets (e.g. Joomla...
Functionality, security and performance monitoring of web assets (e.g. Joomla...
Sanjay Willie
 
Build HA Asterisk on Microsoft Azure using DRBD/Heartbeat
Build HA Asterisk on Microsoft Azure using DRBD/HeartbeatBuild HA Asterisk on Microsoft Azure using DRBD/Heartbeat
Build HA Asterisk on Microsoft Azure using DRBD/Heartbeat
Sanjay Willie
 
High Availability Asterisk and FreePBX on Microsoft Azure
High Availability Asterisk and FreePBX on Microsoft AzureHigh Availability Asterisk and FreePBX on Microsoft Azure
High Availability Asterisk and FreePBX on Microsoft Azure
Sanjay Willie
 
NagiosXI - Astiostech NagiosXI Event with NTT MSC Cyberjaya
NagiosXI - Astiostech NagiosXI Event with NTT MSC CyberjayaNagiosXI - Astiostech NagiosXI Event with NTT MSC Cyberjaya
NagiosXI - Astiostech NagiosXI Event with NTT MSC Cyberjaya
Sanjay Willie
 
What is Nagios XI and how is it different from Nagios Core
What is Nagios XI and how is it different from Nagios CoreWhat is Nagios XI and how is it different from Nagios Core
What is Nagios XI and how is it different from Nagios Core
Sanjay Willie
 
WebRTC & Asterisk 11
WebRTC & Asterisk 11WebRTC & Asterisk 11
WebRTC & Asterisk 11
Sanjay Willie
 

More from Sanjay Willie (10)

WordPress CLI in-depth
WordPress CLI in-depthWordPress CLI in-depth
WordPress CLI in-depth
 
The Role of Governments In Sustaining The 4th Industrial Revolution
The Role of Governments In Sustaining The 4th Industrial RevolutionThe Role of Governments In Sustaining The 4th Industrial Revolution
The Role of Governments In Sustaining The 4th Industrial Revolution
 
Enhancing Contact Centers Through Open Source Digital Workplace Solutions
Enhancing Contact Centers Through Open Source Digital Workplace SolutionsEnhancing Contact Centers Through Open Source Digital Workplace Solutions
Enhancing Contact Centers Through Open Source Digital Workplace Solutions
 
Open Source Driving Digital Workplace Collaboration
Open Source Driving Digital Workplace CollaborationOpen Source Driving Digital Workplace Collaboration
Open Source Driving Digital Workplace Collaboration
 
Functionality, security and performance monitoring of web assets (e.g. Joomla...
Functionality, security and performance monitoring of web assets (e.g. Joomla...Functionality, security and performance monitoring of web assets (e.g. Joomla...
Functionality, security and performance monitoring of web assets (e.g. Joomla...
 
Build HA Asterisk on Microsoft Azure using DRBD/Heartbeat
Build HA Asterisk on Microsoft Azure using DRBD/HeartbeatBuild HA Asterisk on Microsoft Azure using DRBD/Heartbeat
Build HA Asterisk on Microsoft Azure using DRBD/Heartbeat
 
High Availability Asterisk and FreePBX on Microsoft Azure
High Availability Asterisk and FreePBX on Microsoft AzureHigh Availability Asterisk and FreePBX on Microsoft Azure
High Availability Asterisk and FreePBX on Microsoft Azure
 
NagiosXI - Astiostech NagiosXI Event with NTT MSC Cyberjaya
NagiosXI - Astiostech NagiosXI Event with NTT MSC CyberjayaNagiosXI - Astiostech NagiosXI Event with NTT MSC Cyberjaya
NagiosXI - Astiostech NagiosXI Event with NTT MSC Cyberjaya
 
What is Nagios XI and how is it different from Nagios Core
What is Nagios XI and how is it different from Nagios CoreWhat is Nagios XI and how is it different from Nagios Core
What is Nagios XI and how is it different from Nagios Core
 
WebRTC & Asterisk 11
WebRTC & Asterisk 11WebRTC & Asterisk 11
WebRTC & Asterisk 11
 

Recently uploaded

Cookies program to display the information though cookie creation
Cookies program to display the information though cookie creationCookies program to display the information though cookie creation
Cookies program to display the information though cookie creation
shanthidl1
 
20240702 QFM021 Machine Intelligence Reading List June 2024
20240702 QFM021 Machine Intelligence Reading List June 202420240702 QFM021 Machine Intelligence Reading List June 2024
20240702 QFM021 Machine Intelligence Reading List June 2024
Matthew Sinclair
 
論文紹介:A Systematic Survey of Prompt Engineering on Vision-Language Foundation ...
論文紹介:A Systematic Survey of Prompt Engineering on Vision-Language Foundation ...論文紹介:A Systematic Survey of Prompt Engineering on Vision-Language Foundation ...
論文紹介:A Systematic Survey of Prompt Engineering on Vision-Language Foundation ...
Toru Tamaki
 
Quality Patents: Patents That Stand the Test of Time
Quality Patents: Patents That Stand the Test of TimeQuality Patents: Patents That Stand the Test of Time
Quality Patents: Patents That Stand the Test of Time
Aurora Consulting
 
Manual | Product | Research Presentation
Manual | Product | Research PresentationManual | Product | Research Presentation
Manual | Product | Research Presentation
welrejdoall
 
BT & Neo4j: Knowledge Graphs for Critical Enterprise Systems.pptx.pdf
BT & Neo4j: Knowledge Graphs for Critical Enterprise Systems.pptx.pdfBT & Neo4j: Knowledge Graphs for Critical Enterprise Systems.pptx.pdf
BT & Neo4j: Knowledge Graphs for Critical Enterprise Systems.pptx.pdf
Neo4j
 
20240704 QFM023 Engineering Leadership Reading List June 2024
20240704 QFM023 Engineering Leadership Reading List June 202420240704 QFM023 Engineering Leadership Reading List June 2024
20240704 QFM023 Engineering Leadership Reading List June 2024
Matthew Sinclair
 
Quantum Communications Q&A with Gemini LLM
Quantum Communications Q&A with Gemini LLMQuantum Communications Q&A with Gemini LLM
Quantum Communications Q&A with Gemini LLM
Vijayananda Mohire
 
Research Directions for Cross Reality Interfaces
Research Directions for Cross Reality InterfacesResearch Directions for Cross Reality Interfaces
Research Directions for Cross Reality Interfaces
Mark Billinghurst
 
Best Practices for Effectively Running dbt in Airflow.pdf
Best Practices for Effectively Running dbt in Airflow.pdfBest Practices for Effectively Running dbt in Airflow.pdf
Best Practices for Effectively Running dbt in Airflow.pdf
Tatiana Al-Chueyr
 
RPA In Healthcare Benefits, Use Case, Trend And Challenges 2024.pptx
RPA In Healthcare Benefits, Use Case, Trend And Challenges 2024.pptxRPA In Healthcare Benefits, Use Case, Trend And Challenges 2024.pptx
RPA In Healthcare Benefits, Use Case, Trend And Challenges 2024.pptx
SynapseIndia
 
Recent Advancements in the NIST-JARVIS Infrastructure
Recent Advancements in the NIST-JARVIS InfrastructureRecent Advancements in the NIST-JARVIS Infrastructure
Recent Advancements in the NIST-JARVIS Infrastructure
KAMAL CHOUDHARY
 
Mitigating the Impact of State Management in Cloud Stream Processing Systems
Mitigating the Impact of State Management in Cloud Stream Processing SystemsMitigating the Impact of State Management in Cloud Stream Processing Systems
Mitigating the Impact of State Management in Cloud Stream Processing Systems
ScyllaDB
 
What’s New in Teams Calling, Meetings and Devices May 2024
What’s New in Teams Calling, Meetings and Devices May 2024What’s New in Teams Calling, Meetings and Devices May 2024
What’s New in Teams Calling, Meetings and Devices May 2024
Stephanie Beckett
 
How Social Media Hackers Help You to See Your Wife's Message.pdf
How Social Media Hackers Help You to See Your Wife's Message.pdfHow Social Media Hackers Help You to See Your Wife's Message.pdf
How Social Media Hackers Help You to See Your Wife's Message.pdf
HackersList
 
Choose our Linux Web Hosting for a seamless and successful online presence
Choose our Linux Web Hosting for a seamless and successful online presenceChoose our Linux Web Hosting for a seamless and successful online presence
Choose our Linux Web Hosting for a seamless and successful online presence
rajancomputerfbd
 
find out more about the role of autonomous vehicles in facing global challenges
find out more about the role of autonomous vehicles in facing global challengesfind out more about the role of autonomous vehicles in facing global challenges
find out more about the role of autonomous vehicles in facing global challenges
huseindihon
 
Scaling Connections in PostgreSQL Postgres Bangalore(PGBLR) Meetup-2 - Mydbops
Scaling Connections in PostgreSQL Postgres Bangalore(PGBLR) Meetup-2 - MydbopsScaling Connections in PostgreSQL Postgres Bangalore(PGBLR) Meetup-2 - Mydbops
Scaling Connections in PostgreSQL Postgres Bangalore(PGBLR) Meetup-2 - Mydbops
Mydbops
 
Fluttercon 2024: Showing that you care about security - OpenSSF Scorecards fo...
Fluttercon 2024: Showing that you care about security - OpenSSF Scorecards fo...Fluttercon 2024: Showing that you care about security - OpenSSF Scorecards fo...
Fluttercon 2024: Showing that you care about security - OpenSSF Scorecards fo...
Chris Swan
 
How to Build a Profitable IoT Product.pptx
How to Build a Profitable IoT Product.pptxHow to Build a Profitable IoT Product.pptx
How to Build a Profitable IoT Product.pptx
Adam Dunkels
 

Recently uploaded (20)

Cookies program to display the information though cookie creation
Cookies program to display the information though cookie creationCookies program to display the information though cookie creation
Cookies program to display the information though cookie creation
 
20240702 QFM021 Machine Intelligence Reading List June 2024
20240702 QFM021 Machine Intelligence Reading List June 202420240702 QFM021 Machine Intelligence Reading List June 2024
20240702 QFM021 Machine Intelligence Reading List June 2024
 
論文紹介:A Systematic Survey of Prompt Engineering on Vision-Language Foundation ...
論文紹介:A Systematic Survey of Prompt Engineering on Vision-Language Foundation ...論文紹介:A Systematic Survey of Prompt Engineering on Vision-Language Foundation ...
論文紹介:A Systematic Survey of Prompt Engineering on Vision-Language Foundation ...
 
Quality Patents: Patents That Stand the Test of Time
Quality Patents: Patents That Stand the Test of TimeQuality Patents: Patents That Stand the Test of Time
Quality Patents: Patents That Stand the Test of Time
 
Manual | Product | Research Presentation
Manual | Product | Research PresentationManual | Product | Research Presentation
Manual | Product | Research Presentation
 
BT & Neo4j: Knowledge Graphs for Critical Enterprise Systems.pptx.pdf
BT & Neo4j: Knowledge Graphs for Critical Enterprise Systems.pptx.pdfBT & Neo4j: Knowledge Graphs for Critical Enterprise Systems.pptx.pdf
BT & Neo4j: Knowledge Graphs for Critical Enterprise Systems.pptx.pdf
 
20240704 QFM023 Engineering Leadership Reading List June 2024
20240704 QFM023 Engineering Leadership Reading List June 202420240704 QFM023 Engineering Leadership Reading List June 2024
20240704 QFM023 Engineering Leadership Reading List June 2024
 
Quantum Communications Q&A with Gemini LLM
Quantum Communications Q&A with Gemini LLMQuantum Communications Q&A with Gemini LLM
Quantum Communications Q&A with Gemini LLM
 
Research Directions for Cross Reality Interfaces
Research Directions for Cross Reality InterfacesResearch Directions for Cross Reality Interfaces
Research Directions for Cross Reality Interfaces
 
Best Practices for Effectively Running dbt in Airflow.pdf
Best Practices for Effectively Running dbt in Airflow.pdfBest Practices for Effectively Running dbt in Airflow.pdf
Best Practices for Effectively Running dbt in Airflow.pdf
 
RPA In Healthcare Benefits, Use Case, Trend And Challenges 2024.pptx
RPA In Healthcare Benefits, Use Case, Trend And Challenges 2024.pptxRPA In Healthcare Benefits, Use Case, Trend And Challenges 2024.pptx
RPA In Healthcare Benefits, Use Case, Trend And Challenges 2024.pptx
 
Recent Advancements in the NIST-JARVIS Infrastructure
Recent Advancements in the NIST-JARVIS InfrastructureRecent Advancements in the NIST-JARVIS Infrastructure
Recent Advancements in the NIST-JARVIS Infrastructure
 
Mitigating the Impact of State Management in Cloud Stream Processing Systems
Mitigating the Impact of State Management in Cloud Stream Processing SystemsMitigating the Impact of State Management in Cloud Stream Processing Systems
Mitigating the Impact of State Management in Cloud Stream Processing Systems
 
What’s New in Teams Calling, Meetings and Devices May 2024
What’s New in Teams Calling, Meetings and Devices May 2024What’s New in Teams Calling, Meetings and Devices May 2024
What’s New in Teams Calling, Meetings and Devices May 2024
 
How Social Media Hackers Help You to See Your Wife's Message.pdf
How Social Media Hackers Help You to See Your Wife's Message.pdfHow Social Media Hackers Help You to See Your Wife's Message.pdf
How Social Media Hackers Help You to See Your Wife's Message.pdf
 
Choose our Linux Web Hosting for a seamless and successful online presence
Choose our Linux Web Hosting for a seamless and successful online presenceChoose our Linux Web Hosting for a seamless and successful online presence
Choose our Linux Web Hosting for a seamless and successful online presence
 
find out more about the role of autonomous vehicles in facing global challenges
find out more about the role of autonomous vehicles in facing global challengesfind out more about the role of autonomous vehicles in facing global challenges
find out more about the role of autonomous vehicles in facing global challenges
 
Scaling Connections in PostgreSQL Postgres Bangalore(PGBLR) Meetup-2 - Mydbops
Scaling Connections in PostgreSQL Postgres Bangalore(PGBLR) Meetup-2 - MydbopsScaling Connections in PostgreSQL Postgres Bangalore(PGBLR) Meetup-2 - Mydbops
Scaling Connections in PostgreSQL Postgres Bangalore(PGBLR) Meetup-2 - Mydbops
 
Fluttercon 2024: Showing that you care about security - OpenSSF Scorecards fo...
Fluttercon 2024: Showing that you care about security - OpenSSF Scorecards fo...Fluttercon 2024: Showing that you care about security - OpenSSF Scorecards fo...
Fluttercon 2024: Showing that you care about security - OpenSSF Scorecards fo...
 
How to Build a Profitable IoT Product.pptx
How to Build a Profitable IoT Product.pptxHow to Build a Profitable IoT Product.pptx
How to Build a Profitable IoT Product.pptx
 

Exploring ChatGPT Prompt Hacks To Maximally Optimise Your Queries

  • 1. “Artificial intelligence is based on the assumption that the process of human thought can be mechanized”
  • 3. Brief History Of AI • Ancient roots • Philosophical • Invention of computers • Dartmouth Workshop • 21st century boom • Big data • AI and Quantum computing • Advance Robotics and space exploration
  • 4. The first robot • “Shakey” was the first mobile robot with the ability to perceive and reason about its surroundings. The subject of SRI's Artificial Intelligence Center research from 1966 to 1972, Shakey could perform tasks that required planning, route-finding, and the rearranging of simple objects.
  • 5. The first chatbot • ELIZA was a natural language processing program written sometime in the mid-1960s by German-American computer scientist Joseph Wizenbaum at the MIT Artificial Laboratory. Widely acknowledged as the first-ever chatbot, ELIZA used pattern- matching and substitution methods to stimulate conversations.
  • 6. First self driving car • In 1986 Ernst Dickmanns and his team developed a Mercedes van called VaMoRs. It was capable of self-driving at the top speed of the vehicle, around 60 mph. The van was fitted with a master computer and a parallel-processing system consisting of 10 Intel 8086 CPU which processed 32x32 pixel areas determined to be interesting. In 1987 the van was capable of collision avoidance and obstacle detection. A vehicle that could "see" and drive itself at a normal speed ... 35 years ago ! It explains why Dickmanns is considered as a pioneer for autonomous driving.
  • 8. My personal favorite, story of AlphaGo • AlphaGo is a computer program that plays the board game Go. It was developed by the London- based DeepMind Technologies, an acquired subsidiary of Google. Subsequent versions of AlphaGo became increasingly powerful, including a version that competed under the name Master. • https://www.youtube.com/watch ?v=WXuK6gekU1Y
  • 12. Overview of ChatGPT • ChatGPT History • By OpenAI • Public release in Nov 2022 • Touted as the fastest app to reach 100M users (in 2 months) • Other products include DALE-E, Whisper, GPT4, Jukebox, Musenet • What in the name …ChatGPT • Two parts, CHAT and GPT • Chat is the application of GPT • GPT means – Generative Pre-Trained Transformer
  • 13. Some ChatGPT facts • It is a Large Language Model trained using Reinforcement Learning From Human Feedback (RLHF) – a sort of non-supervised pre-trained model • Has over 175 Billion parameters and trained on a dataset of over 300B words • Cost US100,000 to run/day, approximately US3M/month • Gets approximately 1B queries/day • Has a “Plus” version at US20/month • Has API access for free and for US5/month • Official apps for iOS and now Android worldwide • Android: https://play.google.com/store/apps/details?id=com.openai.chatgpt&hl=en_US • iOS: https://apps.apple.com/my/app/chatgpt/id6448311069 • Important: Do not use other 3rd party apps that do the same as above!
  • 15. What is ChatGPT good at • All things text related and language agnostic • Coding (Mainly javascript, python and java ..also C++, PHP and Ruby/ROR) • Different languages (100+, including BM) • Can be used to translate • Sentiment analysis • Mimic your writing style • Write different types of topics and scenarios • And many more…(we’ll explore some interesting ones)
  • 16. Some of the latest in ChatGPT • Custom instructions • GPT4 api (paid) • Higher message limits for GPT ¾ • Free = 30 / hour • Paid = 50 / hour for GPT4 (its unspecified for GPT3) • Code interpreter • Browsing (now disabled ) • Disable chat history • Many other model improvements
  • 17. ChatGPT Schematic Approach • Techniques for refining • Role playing • Writing style • Defining output • Chain a conversation • Inject relatable data to further tune the output to your whim Define personality Define Requests/Constraints Define scope or provide examples Produce additional data if exist Define output type Provide extra data examples to further enhance your output
  • 18. Increase Effectiveness • Use new chat sessions to reduce convolution from previous topics • Confusing or ambiguous prompts • Provide context as much as possible to garner best responses • Use examples when you require specifics (follow the schematic guide for best outcome) • Remember: GIGO
  • 19. Increase Effectiveness • The Better Your Input, The Better The Output • The ability to “produce better outcome” will requires further clarification on the question, right? Maybe we can tell ChatGPT to seek clarification? • Reset • Forget everything above and start anew • Derive Knowledge from Information • Explain to me how you deduced this • Create deviation • Don’t answer like typical ChatGPT (not all the time effective, works for bigger text)
  • 20. ChatGPT Extensions • Extensions • Plugin store (100s!) • Code interpreter • Image generator • Data analysis and visualization • Files conversion • Write and execute code • Solve math problems (same as Mixbox) • Plugin store examples • Pdf plugin – AI PDF • Travel – KAYAK • Google related ChatGPT • Mixbox: Math • And with Zapier, 5000+ functions/integrations
  • 21. Prompts That Could Be Useful To You • Summarizing Content • Especially useful when dealing with large text • If you have large text above 8k/16k characters, put them into “pages” • E.g., I have 10 pages of data exceeding 80,000 words, i will place them here in 10 pages, denoting page 1 through page 10. At the end, when i am done, i want you to summarise the entire content when i enter the keyword "Summ” • Page 1 • <Text> • Page 2 • <Text> Common Criteria License
  • 22. Prompts That Could Be Useful To You • Splitting perspectives • Ask it to give opinions of points in your presentation deck from multiple perspectives, e.g., from a perspective of an expert vs perspective of a novice user Common Criteria License
  • 23. Prompts That Could Be Useful To You • Figuring out your customers to invite • “You are an expert marketeer with 20 years expertise in online and offline marketing and you are especially good at audience relationship. You are planning to run an event to introduce ZeeWall, the world’s most advance firewall. Please produce a list of customer profiles that you will consider inviting” Common Criteria License
  • 24. Prompts That Could Be Useful To You • Model thinking • Getting best models for given task • “You are an expert project management consultant using strategic models to achieve better thinking in doing tasks in deploying NagiosXI monitoring solution for customers. Also state the benefits of this model and create a detailed writeup how to use it” Common Criteria License
  • 25. Prompts That Could Be Useful To You • Google expert search criteria • Getting best Google / Bing search questions • You are expert in Google searches and have over 10 years helping businesses succeed by training them to use Google search effectively. Give me 10 search ideas for How to create a hugely successful chef association here in Malaysia. Make the search terms specific and powerful to help us get to the information we need faster. Present your response in a table, using the columns "Search Term" and "Information we're looking for" Common Criteria License
  • 26. Prompts That Could Be Useful To You • Google expert search criteria • Getting best Google / Bing search questions • You are expert in Google searches and have over 10 years helping businesses succeed by training them to use Google search effectively. Give me 10 search ideas for How to create a hugely successful chef association here in Malaysia. Make the search terms specific and powerful to help us get to the information we need faster. Present your response in a table, using the columns "Search Term" and "Information we're looking for" Common Criteria License
  • 27. Prompts That Could Be Useful To You • Build great SEO topics for your blog (then create blogs, see next slide) • Blogging/Article helps companies achieve better SEO • “You are an SEO expert and working for a top consulting company here in Malaysia. Come up with 5 hot blog topics that will help with my company’s SEO for the product I carry and that is Woocommerce Pro. Also ensure the topics are professional and unique” Common Criteria License
  • 28. Prompts That Could Be Useful To You • Improve any text • Copy and paste and just enter “Improve the following text and make it sound more profession • Emails • WhatsApp text • Website text • Documentation • Etc etc. Common Criteria License
  • 29. Prompts That Could Be Useful To You • Look at life from both sides …. • Get ChatGPT to give alternative views on your <strong> opinion about something • This is also a good method for objection handling • Or seeing viewpoints of others Common Criteria License
  • 30. Prompts That Could Be Useful To You • Sales ninja • Try this kind of prompt for your next Sales Pitch You are a highly successful and experienced sales professional. You know what it is that encourages people to spend money on a product with a smile on their face. I want you to help me find and articulate the reasons why people would buy my product, Zendesk. Please ask me questions one by one to learn about the product and the audience. Once you have enough information, please create a numbered table listing the selling points, how they can be articulated and whether they are of primary, secondary or tertiary importance. Common Criteria License
  • 31. Other cool prompts and what they do The prompt The purpose Act as <insert profession> Gives you articulation based on that profession Act as <linux terminal, sql server, javascript console> To test out and play with code (aside from using codeinterpreter) Compare <data 1> and <data 2> and come up with your interpretation as a <insert profession> To take two or more data points and summarize or interpret them, e.g. interpret them as a cybersecurity professional Give advice as <profession> for <scenario> E.g. as mental health professional .. Build <code> to do <function, feature> written in <programming language> To build specific code snippets, or you can also ask it to check the code, optimize it etc Get medical advice I’ve got this burning sensation when I pee…. Provide ideas for doing <business type> Provide ideas related to business to try and start “right” Solve this problem i have with my boss <problem> Self explanatory
  • 32. Other cool prompts • What can you further add to the plate and share with the audience here?
  • 33. Ethical considerations • Copyright? Who does the prompt output belong to? • Privacy concerns – Can it infiltrate private or personal info? • AI Biases – It may not have sentience to deduce what’s right from wrong • Source corruption/misinformation? - Must check the output every time, do not just copy/paste. • Jailbreaking? – Force it to do things deemed contraband/illegal • There aren’t laws to govern use of AI or building AI models • Cybersecurity threats? • Job security? • ChatGPT is outdated.
  • 34. What is ChatGPT API? A tool that enables you to integrate the power of ChatGPT into your applications, products, or services. It gives you access to ChatGPT’s ability to generate human-like responses to questions and engage in casual conversation. What is an API? Application Programming Interface - is a way for two or more computer programs to communicate with each other. Slide by ML Scientist Aiman@orencloud.com
  • 35. INTEGRATING CHATGPT Before integrating ChatGPT into your system, you will need 3 things: OpenAI API Key API key is basically an encrypted text that a developer must obtain in order to access the API. It is obtainable via creating an OpenAI account Token Tokens can be thought of as pieces of words. Before the API processes the prompts, the input is broken down into tokens. Model Models are basically the brain for the AI, each model has it different used for fine- tuning with different price range. Slide by ML Scientist Aiman@orencloud.com
  • 36. Sign up or log in to the official OpenAI platform. (https://platform.openai.com/signup) Login/Signup OpenAI Click On Personal Tab select View API Keys and you will lend on API Key page Go To OpenAI API Tab Click On Create New Secret Key. you are all set to integrate ChatGPT into your system! Generate API Key CHATGPT API KEY ACCESS 01 02 03 Slide by ML Scientist Aiman@orencloud.com
  • 37. "You miss 100% of the shots you don't take" - Wayne Gretzky *This quote cost 11 tokens CHATGPT API TOKEN • 1 token ~= 4 chars in English • 1 token ~= ¾ words • 100 tokens ~= 75 words • 1-2 sentence ~= 30 tokens • 1 paragraph ~= 100 tokens • 1,500 words ~= 2048 tokens Model Input Output 8K context $0.03 / 1K tokens $0.06 / 1K tokens 32K context $0.06 / 1K tokens $0.12 / 1K tokens Model Training Usage Ada $0.0004 / 1K tokens $0.0016 / 1K tokens Babbage $0.0006 / 1K tokens $0.0024 / 1K tokens Curie $0.0030 / 1K tokens $0.0120 / 1K tokens Davinci $0.0300 / 1K tokens $0.1200 / 1K tokens Slide by ML Scientist Aiman@orencloud.com
  • 38. Extending ChatGPT (with free tools) • DocsGPT (GH - https://github.com/arc53/DocsGPT ) • Quivr (GH - https://github.com/StanGirard/quivr ) • Many more in Github which you can try https://github.com/search?q=ChatGPT&type=repositories&s=stars&o =desc • Dumb code example with python
  • 39. ChatGPT APIs (hello-world sample in python) #!/usr/bin/python3 import openai import os openai.api_key = ‘<redacted>’ os.system('clear') user_content = input("Please enter your question: ") response = openai.ChatCompletion.create( model="gpt-3.5-turbo", messages=[ {"role": "system", "content": "You are IA Champion BOT"}, {"role": "user", "content": user_content}, ] ) print(response['choices'][0]['message']['content']) https://platform.openai.com/docs/api-reference/chat/create
  • 41. “From Yearning for Human-Like Computers to Aspiring to Compute Like Them!”

Editor's Notes

  1. pip install --upgrade openai
  2. pip install --upgrade openai