هوش مصنوعی تولیدی برای توسعه وب: ساخت برنامههای وب با قدرت APIهای OpenAI و Next.js
Generative AI for Web Development: Building Web Applications Powered by OpenAI APIs and Next. js
معرفی کتاب «هوش مصنوعی تولیدی برای توسعه وب: ساخت برنامههای وب با قدرت APIهای OpenAI و Next.js» (با عنوان لاتین Generative AI for Web Development: Building Web Applications Powered by OpenAI APIs and Next. js) نوشتهٔ Tom Auger, Emma Saroyan، منتشرشده توسط نشر Apress L. P. در سال 2024. این کتاب در فرمت pdf، زبان انگلیسی ارائه شده است.
Explore the world of Generative AI and understand why it matters. This book is divided into two parts, introducing tools such as ChatGPT, DALL-E, and will show you how to use them to build AI-powered web apps.The first part of the book describes Generative AI and covers the essential models and APIs from OpenAI. Legal, ethical, and security considerations are discussed to help you decide whether it is an appropriate tool for your projects. You'll then review ChatGPT and see how to use it effectively for generating code. This is followed by a review of best practices, and tips and techniques for getting around the limitations of ChatGPT and other OpenAI APIs.The second part of the book provides practical guide to building a series of web apps with Next.js that showcase how to use the OpenAI APIs. For example, you'll learn how to build a Story/Poetry generator, a language learning app, and a blog site with a custom Chatbot widget. The code for the web apps is generated using ChatGPT.When done with this book, you'll have a clear understanding of Generative AI and be well on your way to building web applications powered by OpenAI APIs and Next.js. Table of Contents About the Authors About the Technical Reviewer Acknowledgments Introduction Chapter 1: What Is Generative AI? 1.1 Introduction 1.2 In the Beginning 1.3 The Research Transforming AI 1.4 The Birth of ChatGPT 1.5 Imagining New Worlds 1.6 Web Development in the AI Era 1.7 Summary Chapter 2: Legal, Ethical, and Security Considerations 2.1 Introduction 2.2 Copyright and Liability 2.3 Veracity and Deepfakes 2.4 Bias and Fairness 2.5 Security and Safety 2.6 Summary Chapter 3: Introduction to ChatGPT 3.1 Introduction 3.2 What Is ChatGPT? 3.3 Hello ChatGPT 3.3.1 Prompting with Chains of Thought 3.3.2 Multimodal Prompting 3.4 How Does ChatGPT Work? 3.4.1 Tokenization and Text Prediction 3.4.2 System Prompt and Custom Instructions 3.5 Summary Chapter 4: Introduction to DALL-E 4.1 Introduction 4.2 What Is DALL-E? 4.3 Generating Images with DALL-E 3 4.4 Edits and Variations of Images 4.5 Summary Chapter 5: Building Web Apps with ChatGPT and DALL-E 5.1 Introduction 5.2 Setting Up the Project 5.2.1 Installing Prerequisites 5.2.2 Creating the Next.js App 5.2.3 Cleaning the Project Template 5.3 Building the Home Page 5.4 Building the Product Pages 5.5 Building the Contact Page 5.6 Summary Chapter 6: Overview of the OpenAI APIs 6.1 Introduction 6.2 What Are the OpenAI APIs? 6.3 Pricing and Usage 6.3.1 Chat API Pricing 6.3.2 Image API Pricing 6.3.3 Pricing of Other OpenAI APIs 6.3.4 Batch Pricing 6.3.5 Pay-As-You-Go with Credits 6.3.6 Usage Limits 6.4 Creating an API Account and API Key 6.4.1 Creating an API Account 6.4.2 Creating an API Key 6.4.3 Keeping Your API Key Secure 6.5 Experimenting with the API Playground 6.5.1 Adjusting Parameters 6.6 Using the OpenAI APIs with Next.js 6.6.1 Setting Up the Next.js Project 6.6.2 Generating the UI 6.6.3 Adding an OpenAI API Key 6.6.4 Generating Content with the OpenAI APIs 6.7 Summary Chapter 7: Alternative Models to OpenAI 7.1 Introduction 7.2 Alternative Text Generation Models 7.2.1 Google Gemini 7.2.2 Anthropic Claude 7.2.3 Meta LLama 7.2.4 Mistral 7.3 Alternative Image Generation Models 7.3.1 Stable Diffusion 7.3.2 Midjourney 7.4 Summary Chapter 8: Building a Story/Poetry Generator 8.1 Introduction 8.2 Setting Up the Project 8.2.1 Configuring an OpenAI API Key 8.3 Creating the UI 8.4 Creating the Backend 8.4.1 Generating the Story 8.5 Generating Different Types of Literature 8.5.1 Generating Different Genres 8.5.2 Generating Poetry 8.6 Generating Illustrations 8.7 Adding a Library Page 8.7.1 Saving the Stories 8.7.2 Building the Library UI 8.8 Creating a Home Page 8.9 Summary Chapter 9: Building a Language Learning App 9.1 Introduction 9.2 Setting Up the Project 9.2.1 Configuring an OpenAI API Key 9.3 Creating a Vocabulary Translating Quiz 9.3.1 Building the Backend 9.3.2 Implementing the UI 9.4 Creating a Vocabulary Spelling Quiz 9.4.1 Building the Backend 9.4.2 Implementing the UI 9.5 Creating a Home Page 9.6 Summary Chapter 10: Building a Blog with a Custom Chatbot 10.1 Introduction 10.2 Setting Up the Project 10.2.1 Configuring an OpenAI API Key 10.3 Creating a Basic Blog 10.3.1 Creating the Blog Skeleton 10.3.2 Adding Content 10.3.3 Adding Styles 10.4 Creating an Assistant 10.4.1 Fine-Tuning and RAG 10.4.2 Building and Testing an Assistant 10.5 Adding a Chat Interface 10.5.1 Building the Backend 10.5.2 Building the UI 10.5.3 Adding a Pop-Up Chat 10.6 Summary Chapter 11: The Future of Generative AI 11.1 Introduction 11.2 The Future of Generative AI 11.2.1 Open Source vs. Closed Source 11.2.2 Generalist vs. Specialized LLMs 11.2.3 Regulated vs. Unregulated 11.2.4 Transformers vs. Another Architecture 11.3 Further Reading 11.4 Summary
دانلود کتاب هوش مصنوعی تولیدی برای توسعه وب: ساخت برنامههای وب با قدرت APIهای OpenAI و Next.js