liveBook · Manning

Fallback

As explained in Generative AI in Action

A fallback mechanism is an alternative execution or service path invoked when the preferred path fails or becomes unavailable.

A fallback is an alternative execution or service path used when a preferred path fails, becomes unavailable, or produces an unsatisfactory result. In GenAI systems, it helps preserve availability and response quality while handling retrieval uncertainty, downtime, API limits, and changing query needs. section 7.7.3 section 10.2.2

Design fallback behavior around explicit signals and operational controls:

  • Retry retrieval with different chunk sizes or chunking strategies when the initial response falls below a confidence threshold. section 7.7.3
  • Use user feedback as a signal for another retrieval attempt, while recognizing that repeated processing can increase cost and complexity. section 7.7.3 section 10.2.2
  • Pair automatic recovery with error logging, anomaly alerts, downtime planning, and distributed tracing. section 10.2.2

Retrieval fallback

A retrieval pipeline first searches using its normal chunking configuration. If the generated answer does not meet its confidence threshold, it re-queries with a different chunk size or chunking strategy; unsatisfactory user feedback can trigger another attempt. section 7.7.3

Figure 10.3 Generative AI architecture principles
figure

Use the architecture-principles diagram to place fallback beside error handling, monitoring, security, cost control, and user experience concerns. section 10.2.2

How Generative AI in Action covers it

How deep it goes
Explains trigger conditions, alternate chunking paths, feedback loops, monitoring, and cost considerations without detailing implementation code.
Examples
Uses alternate chunk sizes, different chunking strategies, user feedback, automatic recovery, alerts, and distributed tracing as fallback-related mechanisms.
What it assumes
Assumes familiarity with retrieval, chunking, GenAI applications, and distributed-system failures.
What you can do after
Operate/configure retrieval and distributed GenAI systems with alternate paths, confidence triggers, recovery plans, and monitoring.
How it connects
Connects retrieval-augmented generation with chunking, confidence thresholds, error handling, monitoring, distributed tracing, and high availability.

Also explained in

Compare how 15 books explain fallback →

Related concepts

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