liveBook · Manning

Generative approach

As explained in Natural Language Processing in Action, Second Edition

A conversational generation technique that produces responses dynamically instead of selecting them from a predefined set.

The generative approach creates chatbot responses dynamically from user messages instead of selecting them from a predefined answer set. It offers flexibility for edge cases, but makes output quality harder to control and predict. section 12.4

A practical generative system can combine:

  • A pretrained encoder–decoder network, typically a transformer, or a larger language model. section 12.4
  • A prompt that directs the model’s behavior. section 12.4
  • Grounding, fine-tuning, guardrails, and intent recognition to reduce unhelpful, incorrect, or toxic replies. section 12.4
  • Intent or sentiment evaluation to reject weak responses, regenerate alternatives, or adjust temperature. section 12.4

How Natural Language Processing in Action, Second Edition covers it

How deep it goes
Explains generation, prompting, and safeguards practically, but stops short of implementation code or model-training procedure.
Examples
Uses edge-case dialogue, prompt-controlled replies, toxic-response detection, response evaluation, regeneration, and temperature adjustment.
What it assumes
Assumes familiarity with chatbots and intent recognition while defining generation, prompts, and model risks in plain language.
What you can do after
Operate/configure generative chatbots with prompts, safety controls, intent checks, response evaluation, and controlled regeneration.
How it connects
Connects transformers, large language models, prompting, intent recognition, sentiment analysis, grounding, fine-tuning, and guardrails.

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Natural Language Processing in Action, Second Edition. The section links point to the parts of the book it draws on.