Technique
Retrieval-Interleaved Generation
Retrieval-Interleaved Generation Pipeline
/ri-tree-vuhl in-ter-leevd jen-uh-rey-shuhn/
An advanced generation loop where language models dynamically execute external database searches mid-stream during token generation.
In plain English
Instead of searching only at the very beginning of a prompt, retrieval-interleaved generation lets an AI pause mid-sentence, look up new facts, and continue writing with updated information.
Real-world example
An AI assistant writing a research report and pausing mid-paragraph to fetch fresh live financial statistics.
Technical definition
Retrieval-interleaved generation is an advanced RAG execution pattern where language models dynamically trigger external database queries or tool calls during the autoregressive token generation phase. By interleaving retrieval steps mid-stream, models gather fresh contextual data on-the-fly as reasoning needs evolve.