5 What else can AI generate?

 

This chapter covers

  • Using generative AI for code creation and code-related tasks
  • Tools that allow code generation and how to use them
  • Best code generation practices
  • Generating video and related tools
  • Generating audio, music, and related tools

Code that writes itself with little prompting and without much input seems magical, resembling a holy grail, at least to those working in computing. Given the advancements in artificial intelligence (AI) with generative AI, this endeavor seems possible today. We have seen some amazing and interesting things AI can generate—from language to images to holding an ongoing back-and-forth multiturn conversation—and many of them have strong use cases in enterprises. This chapter outlines the remaining things we can generate using AI.

We will first talk about code generation, what it means, how one should go about it, and the tools enterprises use. For example, Andrej Karpathy, one of the OpenAI cofounders, who used to lead Tesla’s AI and Vision team, recently said that GitHub Copilot helps him write approximately 80% of his code, which is a huge boost in productivity. Then, we will cover a few very early generations and explore application in videos and music. Let’s see how code generation works.

5.1 Code generation

 
 

5.1.1 Can I trust the code?

 
 
 
 

5.1.2 GitHub Copilot

 
 
 

5.1.3 How Copilot works

 
 
 

5.2 Additional code-related tasks

 

5.2.1 Code explanation

 
 
 

5.2.2 Generate tests

 

5.2.3 Code referencing

 

5.2.4 Code refactoring

 

5.3 Other code generation tools

 
 
 

5.3.1 Amazon CodeWhisperer

 
 
 

5.3.2 Code Llama

 
 
 

5.3.3 Tabnine

 
 

5.3.4 Check yourself

 

5.3.5 Best practices for code generation

 
 
 

5.4 Video generation

 

5.5 Audio and music generation

 
 
 

Summary

 
 
sitemap

Unable to load book!

The book could not be loaded.

(try again in a couple of minutes)

manning.com homepage
test yourself with a liveTest