Multi-Index RAG with Fallback Cascade
A rigorous, 9-node RAG pipeline. It queries a primary, highly-specific vector index first. If confidence is low, it falls back to a broad archive index, reranking results to ensure hallucination-free legal synthesis.
Execution_Steps
- 01
Primary Retrieval Vector
Link an `input` node to an `embedding` node, then to the primary `vector_store` ("Active Contracts"). Connect this to a `router` acting as a Confidence Gate.
- 02
Build the Primary Path
If the Confidence Gate passes, route traffic to a `reranker` to distill the Top 10 chunks down to the Top 3 most relevant. Route this directly to your `llm_call` synthesizer.
- 03
Build the Fallback Cascade
Connect the Miss path of the router to a secondary `vector_store` ("Archive Precedents"). Connect this to a separate `reranker` configured for Top-K: 5.
- 04
Converge and Generate
Connect the fallback reranker to the exact same `llm_call` synthesizer node used in the primary path. Finally, terminate the DAG with an `output` node to serve the legal brief.