Multi-Retriever Workflows

Multi-Retriever Workflows

Choosing the right database.


Multi-Retriever Workflows

You often have multiple knowledge bases (Technical Docs, Marketing Notion, Sales Salesforce).

The Router Approach

  1. Start: User asks a question.
  2. ClassifierNode: "Is this Technical or Sales?"
  3. Route:
    • Sales -> SalesRetrieverNode
    • Tech -> TechRetrieverNode

The Ensemble Approach

  1. Fan-Out: Query both retrievers in parallel.
  2. Fan-In: The ReRankerNode takes all results, scores them, and keeps the top 5.
  3. Generate.

Visualizing the Process

graph TD
    Start[Input] --> Process[Processing]
    Process --> Decision{Check}
    Decision -->|Success| End[Complete]
    Decision -->|Retry| Process

---The graph structure makes implementing these complex pipelines trivial.

Subscribe to our newsletter

Get the latest posts delivered right to your inbox.

Subscribe on LinkedIn