liveBook · Manning

Response generation

As explained in Effective Conversational AI

Answer generation is the production of a candidate response from a language model based on retrieved information and instructions.

Response generation produces a candidate answer from retrieved passages. In retrieval-augmented generation, it can combine relevant content into a cohesive, context-aware response rather than merely selecting and reformulating existing text. section 6.1.3 section 6.3.2

A grounded response workflow can:

  • Retrieve passages, then generate a candidate answer from them. section 6.2.2
  • Compare the answer with the passages; if support is weak, offer transfer to a human agent. If no documents were retrieved, deflect without invoking generation. section 6.2.2

When a medical answer is not grounded

A user asks whether booster side effects could worsen dysphagia associated with achalasia. The candidate answer says there is no clear evidence linking them, but the retrieved passages do not support that claim. The system flags the weak match and offers a specialist handoff. section 6.2.2

Figure 6.8 Supplementing RAG with human agents. If the answer has poor semantic overlap with the retrieved documents, send the user to a human agent instead.
figure

Shows the human-agent handoff when a generated answer has poor overlap with retrieved documents. section 6.2.2

How Effective Conversational AI covers it

How deep it goes
Traces passage input through candidate checking and transfer decisions, without detailing generation internals.
Examples
Illustrates an unsupported candidate answer to a question about achalasia, dysphagia, and booster side effects.
What you can do after
Evaluate generated answers against retrieved passages and route weakly grounded responses to a human agent.
How it connects
Connects answer generation to document retrieval, retrieval-augmented generation, grounding checks, and human escalation.

Also explained in

Compare how 2 books explain response generation →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Effective Conversational AI. The section links point to the parts of the book it draws on.