Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Book Overview & Buying Practical Generative AI with ChatGPT
  • Table Of Contents Toc
  • Feedback & Rating feedback
Practical Generative AI with ChatGPT

Practical Generative AI with ChatGPT

By : Valentina Alto
4 (1)
close
close
Practical Generative AI with ChatGPT

Practical Generative AI with ChatGPT

4 (1)
By: Valentina Alto

Overview of this book

Unlock ChatGPT's potential to make your working life better with this comprehensive guide. This book is about getting the most out of ChatGPT by creating AI assistants, learning prompt engineering, analyzing documents and images, and kickstarting your journey into generative AI. Whether you’re looking to free up your time, improve the way you work, or are eager to harness the power of AI, this book provides the tools and knowledge you need. Learn to craft precise prompts, utilize ChatGPT for daily productivity, and develop custom AI assistants. Go further by creating images with DALL-E. You’ll even see how to generate code from an image using GPT-4V. Harnessing ChatGPT’s capabilities doesn’t stop there. This ChatGPT book shows you how to design personalized custom GPTs and incorporate OpenAI model APIs into your applications. Explore how businesses use OpenAI models, from building AI applications, such as semantic search, to creating an AI roadmap. Each chapter is packed with practical examples, ensuring you can apply the techniques immediately. Enhance your marketing strategies, streamline research processes, and leverage AI for enterprise-scale applications. This book is your ultimate resource for maximizing productivity, creativity, and efficiency with ChatGPT.
Table of Contents (18 chapters)
close
close
Free Chapter
1
Fundamentals of Generative AI and OpenAI
4
ChatGPT in Action
12
OpenAI for Enterprises
15
Other Books You May Enjoy
16
Index

Generating, optimizing, and debugging code

The primary capability you should leverage is ChatGPT code generation. How many times have you looked for a pre-built piece of code to start from? Or looked for code that could generate functions, sample datasets, SQL schemas, and so on? ChatGPT is able to generate code based on input in natural language:

Figure 5.1: Example of ChatGPT generating a Python function to write into CSV files

As you can see, not only was ChatGPT able to generate the function but it was also able to explain what the function does, how to use it, and what to substitute in generic placeholders such as my_folder.

Now let’s raise the difficulty bar. If ChatGPT is capable of generating a Python function, could it generate an entire video game as well? Let’s try. What I want to do is provide ChatGPT with an illustration of the type of game I want to develop and ask it to replicate it with code. The following is an illustration of my desired...

Unlock full access

Continue reading for free

A Packt free trial gives you instant online access to our library of over 7000 practical eBooks and videos, constantly updated with the latest in tech
bookmark search playlist download font-size

Change the font size

margin-width

Change margin width

day-mode

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Delete Bookmark

Modal Close icon
Are you sure you want to delete it?
Cancel
Yes, Delete

Confirmation

Modal Close icon
claim successful

Buy this book with your credits?

Modal Close icon
Are you sure you want to buy this book with one of your credits?
Close
YES, BUY