Reduce AI Chatbot Latency | Technique #2 #latencyreduction #llm #ai #chatbot
About this video
Two lookups in one message. How much time can an AI agent save by running both API calls in parallel? In Technique #2 of my five-part AI latency series, Maya asks for her next flight time and visa expiry date. I show how a small model splits her request into subqueries, how regex matches them to fixed FAQ actions, and how the backend runs both API calls concurrently. The backend uses her verified user ID and fills in two response templates with zero additional LLM calls. In the example, a 400 ms flight lookup and a 700 ms visa lookup take 1,100 ms in sequence and roughly 700 ms in parallel. Those figures illustrate the API lookup stage. Query decomposition and routing happen before the calls start. 00:00 Can we answer both questions faster? 00:29 Split the request with a small model 00:41 Route subqueries with regex and fixed FAQ actions 01:00 Verify the user ID and run both APIs in parallel 01:20 Sequential vs. parallel lookup timing 01:36 Build the answer with response templates