liveBook · Manning

Single broad prompt

As explained in Knowledge Graphs and LLMs in Action

A single broad prompt is one prompt that handles multiple classification categories and decision boundaries.

A single broad prompt handles multiple classification categories and decision boundaries in one step. It favors simplicity, quick implementation, and lower management overhead when accuracy remains acceptable. section 14.5.2

Design and evaluate the prompt around:

  • Clear instructions, defined categories, boundary cases, representative examples, and an explicit output format. section 14.5.2
  • A concrete intent-detection scheme such as Data-Related, System-Related, and Feedback/Complaints, with System-Related optionally divided into Documentation-Related and Schema-Related. section 14.5.2
  • Reasons for each prediction, which can expose missing context and guide improvements to the task definition. section 14.5.2
  • A later transition to multistage classification when requests, edge cases, or category changes demand finer control. section 14.5.2
Figure 14.6 Classification of system-related questions in the intent detection system, showing how requests are routed either to documentation (for system functionality and feature questions) or to the schema (for KG structure queries). The system also identifies feedback and issues as a separate category for user complaints or enhancement requests.
figure

Use the routing diagram to connect broad intent categories with documentation, knowledge-graph schema, or feedback handling. section 14.5.2

How Knowledge Graphs and LLMs in Action covers it

How deep it goes
Explains prompt criteria and trade-offs, but stops short of implementation code or detailed multistage design.
Examples
Uses data, system, and feedback categories plus documentation and schema subcategories for system-related questions.
What it assumes
Assumes a defined classification task and categories, while emphasizing that missing context should be added to the task definition.
What you can do after
Apply it to build and evaluate a practical first-pass intent classifier, then split stages when complexity or accuracy requirements increase.
How it connects
Connects intent detection with prompt design, classification, knowledge-graph schema, and multistage classification.

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Knowledge Graphs and LLMs in Action. The section links point to the parts of the book it draws on.