Hi
With the Agentic Router pattern to support multiple Azure AI Search indexes in your RAG chatbot, you do not create completely separate agents for each index. Instead, you create "tools" or functions representing each index within a single agent orchestration layer.
How it works practically:
- You define each index as a tool your master agent can call
The master agent (orchestrator) gets the user query and asks the LLM to decide which tool to invoke based on the question context.
The selected tool executes a search query on its respective index, returns results back to the master agent.
The master agent then generates the answer using the retrieved results as context.
Why not create separate agents for each index?
Agentic retrieval in Azure AI Search is designed to enable an LLM to dynamically select which tools (indexes) to query without fragmenting functionality into disparate agents.
- Keeping a single agent with multiple tools provides scalability, maintainability, and a coherent query experience.
- Frameworks like Semantic Kernel or LangChain support this by letting you register multiple tools within one agent orchestration.
You can mark it 'Accept Answer' if this helped you
Regards,
Vishvani