Artificial Intelligence All-in-One For Dummies
by Chris Minnick, John Paul Mueller, Luca Massaron, Stephanie Diamond, Pam Baker, Daniel Stanton, Shiv Singh, Paul Mladjenovic, Sheryl Lindsell-Roberts, Jeffrey Allan
Chapter 3
Coding with Chatbots
IN THIS CHAPTER
Engineering prompts
Chatting with Copilot
Talking code with ChatGPT
Getting schooled on the OpenAI Playground
Large language models (LLMs) enable computers to understand and generate human languages with astonishing accuracy. Chatbots are easy-to-use interfaces to LLMs that enable conversations with a generative AI model. Using a chatbot, anyone can converse with an LLM in a way that’s similar to how you would message a friend or coworker. (To learn about how machine learning and LLMs work, check out Book 2.)
Because the generative AI models that underlie AI chatbots have been trained on an enormous amount of text, it can sometimes seem like the chatbots are omniscient. However, after some time working with chatbots and sometimes getting responses that are incoherent or plainly wrong, you’ll realize that they’re not.
In this chapter, you learn how to use several popular AI chatbots to generate programming code. You also learn how to get better results by improving the inputs, or prompts, that you give an LLM.
Improving Your Prompts ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access