Build AI-Enhanced Web Apps
eBook - ePub

Build AI-Enhanced Web Apps

How to get reliable results with React, Next.js, and Vercel

  1. English
  2. ePUB (mobile friendly)
  3. Available on iOS & Android
eBook - ePub

Build AI-Enhanced Web Apps

How to get reliable results with React, Next.js, and Vercel

About this book

This book shows you step-by-step and example-by-example how to build sites and applications that take advantage of large language models (LLMs) like GPT, Claude, and Llama. Written especially for web developers comfortable with React or Next.js, this book introduces the tools and techniques you need to add sophisticated AI features like Retrieval Augmented Generation (RAG), document summarization, chatbots, and more to your web-based projects.

It guides you through AI development using only JavaScript and other common web dev skills–no Python or Machine Learning experience required. You’ll learn by working with full-scale AI projects that solve actual business problems. You’ll soon be delivering user-friendly, efficient interfaces that make the absolute best use of AI tech.

In Build AI-Enhanced Web Apps you'll learn how to:

• Integrate AI models into React and Next.js applications
• Implement streaming responses and real-time AI interactions
• Manage conversation history and context in chat applications
• Implement LangChain.js for complex AI workflows and reasoning
• Build a web application for summarizing documents using LangChain.js
• Utilize Retrieval-Augmented Generation (RAG) systems for knowledge management
• Develop an AI-powered interview preparation system with voice feedback

About the technology

The users have spoken! Agents, personalized responses, and other LLM-powered features are required in modern web applications. Build AI-Enhanced Web Apps presents the end-to-end architecture of AI web apps, including UI, backend infrastructure, data processing, API integration, deployment, and scaling, with examples and language perfect for professional web developers.

About the book

This accessible book shows you how to ship real AI features—not just toy demos—using a JavaScript stack you already know: React for UI, Next.js for backend integration, and the Vercel AI SDK to connect to LLMs like Gemini and GPT. In it, you’ll acquire the skills you need to complete two portfolio-ready projects: a voice-based interview assistant and a RAG-powered corporate knowledge system. You’ll also learn how to design workflows that balance latency, cost, and UX and implement responsible guardrails for security, quality control, hallucinations, and bias.

What's inside

• Build AI features using a professional stack
• Ship production-ready features
• Learn from concrete projects

About the reader

For web developers familiar with JavaScript and React.

About the author

Theo Despoudis is a Senior Engineer at WP Engine specializing in AI-powered search and headless WordPress. He is an expert in integrating LLMs, RAG, and Vercel AI SDK into React and Next.js apps.

Table of Contents

Part 1
1 Using generative AI in web apps
2 Building your first generative AI web application
3 Connecting AI models with the Vercel AI SDK
4 Managing conversation and state in your application
Part 2
5 Prompt engineering in web applications
6 Building AI workflows with LangChain.js
7 Document summarization and RAG with LangChain.js
8 Testing and debugging techniques
9 Deployment and security
Part 3
10 Building an AI interview assistant: Project walk-through
11 Building an AI RAG agent: Project walk-through
Part 4
12 Integrating web apps with the Model Context Protocol
A Running the examples

Trusted by 375,005 students

Access to over 1.5 million titles for a fair monthly price.

Study more efficiently using our study tools.

Information

Table of contents

  1. Build AI-Enhanced Web Apps
  2. copyright
  3. contents
  4. preface
  5. acknowledgments
  6. about this book
  7. about the author
  8. about the cover illustration
  9. Part 1 Building basic generative AI web apps
  10. 1 Using generative AI in web apps
  11. 2 Building your first generative AI web application
  12. 3 Connecting AI models with the Vercel AI SDK
  13. 4 Managing conversation and state in your application
  14. Part 2 Advanced generative AI techniques and deployment
  15. 5 Prompt engineering in web applications
  16. 6 Building AI workflows with LangChain.js
  17. 7 Document summarization and RAG with LangChain.js
  18. 8 Testing and debugging techniques
  19. 9 Deployment and security
  20. Part 3 Hands-on projects
  21. 10 Building an AI interview assistant: Project walk-through
  22. 11 Building an AI RAG agent: Project walk-through
  23. Part 4 Advanced integrations and the future of AI
  24. 12 Integrating web apps with the Model Context Protocol
  25. Appendix. Running the examples

Frequently asked questions

Yes, you can cancel anytime from the Subscription tab in your account settings on the Perlego website. Your subscription will stay active until the end of your current billing period. Learn how to cancel your subscription
No, books cannot be downloaded as external files, such as PDFs, for use outside of Perlego. However, you can download books within the Perlego app for offline reading on mobile or tablet. Learn how to download books offline
Perlego offers two plans: Essential and Complete
  • Essential is ideal for learners and professionals who enjoy exploring a wide range of subjects. Access the Essential Library with 800,000+ trusted titles and best-sellers across business, personal growth, and the humanities. Includes unlimited reading time and Standard Read Aloud voice.
  • Complete: Perfect for advanced learners and researchers needing full, unrestricted access. Unlock 1.5M+ books across hundreds of subjects, including academic and specialized titles. The Complete Plan also includes advanced features like Premium Read Aloud and Research Assistant.
Both plans are available with monthly, semester, or annual billing cycles.
We are an online textbook subscription service, where you can get access to an entire online library for less than the price of a single book per month. With over 1.5 million books across 990+ topics, we’ve got you covered! Learn about our mission
Look out for the read-aloud symbol on your next book to see if you can listen to it. The read-aloud tool reads text aloud for you, highlighting the text as it is being read. You can pause it, speed it up and slow it down. Learn more about Read Aloud
Yes! You can use the Perlego app on both iOS and Android devices to read anytime, anywhere — even offline. Perfect for commutes or when you’re on the go.
Please note we cannot support devices running on iOS 13 and Android 7 or earlier. Learn more about using the app
Yes, you can access Build AI-Enhanced Web Apps by Theo Despoudis in PDF and/or ePUB format, as well as other popular books in Computer Science & Artificial Intelligence (AI) & Semantics. We have over 1.5 million books available in our catalogue for you to explore.