chapter five

5 What else can AI generate?

 

This chapter covers

  • Using Generative AI for code creation and code-related tasks
  • Understanding what tools allow for generation of code and how to use them
  • Best practices for code generation
  • Generating Video and related tools
  • Generating Audio and music and associated tools

Code that writes itself with little prompting and without much input seems magical and the holy grail, at least for those working in computing. And given the advancements in AI with Generative AI, this seems possible now. We have seen some amazing and interesting things AI can generate – from language to images to holding an ongoing back-and-forth multi-turn conversation – many of these have strong use cases in enterprises. In this chapter, we outline the remaining things one can generate.

We will start by covering code generation, what it means, how one should go about it, and what tools enterprises use. For example, Andrej Karpathy, one of the co-founders of OpenAI, who was leading Tesla’s AI and Vision team, recently said that he is finding GitHub Copilot helping write approximately 80% of his code, which is a huge productivity boost. Then, we will cover a few still very early generations and research videos and music. Let us 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 does Copilot work – Codex and beyond

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

5.6 Summary