liveBook · Manning

Generation

As explained in Build AI-Enhanced Web Apps

The production of natural-language text by a computational model from an input or context.

Text generation produces new natural-language content from a prompt or conversational context. In web applications, it supports content creation, marketing copy, product descriptions, conversational agents, customer support, and personalized feedback responses. section 1.1.1 section 1.1.2

A typical implementation connects a user interface, backend processing pipeline, selected model, and response interface. The backend receives input, preprocesses it, selects a model, calls internal or external services, returns generated content, and may accept feedback or follow-up questions. section 1.2.2

Generation differs from traditional predictive AI and depends on several connected ideas:

  • Generative models learn patterns deeply enough to produce new content rather than only classify or recognize existing data. section 1.5
  • Transformer architectures use self-attention to process sequences in parallel and capture relationships across long contexts. section 1.5
  • Applications can use external APIs and models such as GPT-4 or Llama instead of hosting every generation component themselves. section 1.1.2

Marketing-copy generator

A digital marketing application can accept a product description or campaign prompt, send it through a backend to a language model, and display generated advertising copy. Users can refine the result through follow-up prompts or feedback. section 1.1.2 section 1.2.2

Figure 1.2 How an AI web app works: the user inputs data, and then the app processes it, selects a model, generates content, delivers it, and, optionally, collects feedback.
A screenshot of a computer screen

AI-generated content may be incorrect.

Trace the complete generation loop from user input through backend processing and model selection to content delivery and optional feedback. section 1.2.2

How Build AI-Enhanced Web Apps covers it

How deep it goes
Explains the generation workflow and transformer foundations but stops short of implementation code, training procedures, and detailed model internals.
Examples
Uses marketing copy, product descriptions, customer-support chatbots, feedback responses, and conversational follow-up as examples.
What it assumes
Assumes basic web-application components while teaching the distinction between content generation, classification, and recognition from foundational concepts.
What you can do after
Build it into web applications by routing user prompts through backend services and language-model APIs to deliver generated content.
How it connects
Connects generative AI with machine learning, deep learning, transformers, self-attention, external APIs, and retrieval-augmented generation.

Also explained in

Compare how 20 books explain generation →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Build AI-Enhanced Web Apps. The section links point to the parts of the book it draws on.