Dynamic routing selects the next processing path from runtime state, execution results, and user intent. In a LangGraph QA pipeline, it turns query outcomes into retries, summarization, or completion. section 15.1.5
A post-query routing stage applies a compact decision pipeline:
- Inspect results_error after query execution. section 15.1.5
- Retry text-to-Cypher generation while retries remain below three. section 15.1.5
- Route successful map or graph results to summarization. section 15.1.5
- Complete directly for successful tabular results. section 15.1.5
Post-query decision
A failed Neo4j query returns retry until the third attempt; a successful graph query returns summarize; a successful table query returns END.


