This post is a part of the AI-103: Develop AI Apps and Agents on Azure Exam Prep Hub.
This topic falls under these sections:
Implement information extraction solutions (10–15%)
--> Build retrieval and grounding pipelines
--> Connect retrieval pipelines directly to workflows and agent tools
Note that there are 10 practice questions (with answers and explanations) at the end of each section to help you solidify your knowledge of the material. Also, there are 2 practice tests with 60 questions each available from the hub's main page below the exam topics section.
Introduction
For the AI-103: Develop AI Apps and Agents on Azure certification exam, an important topic within Build retrieval and grounding pipelines is understanding how retrieval systems integrate directly with:
- AI workflows
- AI agents
- Tools and plugins
- Business processes
- Enterprise automation systems
Modern AI applications no longer operate as isolated chatbots. Instead, they function as intelligent agents capable of:
- Retrieving enterprise knowledge
- Using external tools
- Executing workflows
- Calling APIs
- Automating business operations
- Making context-aware decisions
This topic focuses on how Retrieval-Augmented Generation (RAG) pipelines connect to these broader AI systems.
Why Retrieval Pipelines Matter in AI Agents
Large Language Models (LLMs) alone have limitations:
- No inherent access to enterprise data
- Static training knowledge
- Potential hallucinations
- No direct business system integration
Retrieval pipelines solve the knowledge problem by providing grounded enterprise data.
Agent tools and workflows solve the action problem by enabling AI systems to:
- Retrieve information
- Take actions
- Automate processes
- Interact with external systems
Together, retrieval + tools form the foundation of modern AI agents.
What Is a Retrieval Pipeline?
A retrieval pipeline:
- Accepts a user query
- Searches enterprise data
- Retrieves relevant content
- Supplies grounded context to the model
Typical pipeline stages:
User Query ↓Embedding Generation ↓Vector / Hybrid Search ↓Relevant Document Chunks ↓Prompt Construction ↓LLM Response
What Are Agent Tools?
Agent tools are capabilities that AI agents can invoke dynamically.
Examples:
- Search indexes
- Databases
- APIs
- CRM systems
- Ticketing systems
- Email services
- Scheduling systems
- ERP platforms
Instead of only answering questions, the agent can:
- Retrieve data
- Execute operations
- Update records
- Trigger workflows
Azure Services Commonly Used
Several Azure services commonly appear in these architectures.
| Service | Purpose |
|---|---|
| Azure AI Search | Retrieval and vector search |
| Azure OpenAI Service | LLMs and embeddings |
| Azure AI Foundry | Agent orchestration and tool integration |
| Azure Functions | Tool endpoints and automation |
| Azure Logic Apps | Workflow orchestration |
| Azure API Management | Secure API exposure |
| Azure Blob Storage | Source document storage |
Retrieval-Augmented Generation (RAG)
What Is RAG?
RAG combines:
- Retrieval systems
- External knowledge
- Generative AI
Workflow:
Question ↓Retrieve Relevant Content ↓Ground the Prompt ↓Generate Response
This improves:
- Accuracy
- Freshness
- Enterprise knowledge access
- Hallucination reduction
Connecting Retrieval to Agent Workflows
Modern agents often follow this sequence:
User Request ↓Agent Planning ↓Tool Selection ↓Retrieval Pipeline ↓Context Gathering ↓Workflow Execution ↓Grounded Response
The retrieval system becomes one tool among many available to the agent.
Example Enterprise Agent Scenario
User asks:
"What is the status of customer ticket 4821?"
Agent workflow:
- Retrieve ticket documentation
- Query ticketing API
- Retrieve knowledge articles
- Generate grounded response
- Offer next actions
This combines:
- Retrieval
- API tools
- Workflow logic
- Grounded AI generation
Agent Tool Invocation
What Is Tool Invocation?
Tool invocation allows an LLM or agent to call external functionality.
Examples:
- Database query
- REST API call
- Search query
- Workflow trigger
The model determines:
- Which tool to use
- When to use it
- What parameters to send
Retrieval as a Tool
In modern architectures, retrieval itself is often exposed as a callable tool.
Example:
search_company_policies(query)
The agent can dynamically retrieve relevant information during conversations.
Function Calling and Tools
Many Azure AI architectures use:
- Function calling
- Tool calling
- API orchestration
The LLM generates structured requests that invoke external systems.
Example:
{ "tool": "search_documents", "query": "vacation policy"}
Azure AI Search in Agent Architectures
Azure AI Search commonly serves as:
- The enterprise retrieval layer
- A vector search engine
- A semantic search platform
- A grounding source
The agent retrieves:
- Relevant chunks
- Metadata
- Semantic matches
- Knowledge articles
Hybrid Retrieval for Agents
Why Hybrid Search Matters
Hybrid search combines:
- Keyword search
- Semantic search
- Vector search
Benefits:
- Better retrieval quality
- Improved grounding
- Higher accuracy
Hybrid retrieval is especially important for agents because:
- User requests vary widely
- Natural language can be ambiguous
- Exact keywords are not always present
Workflow Automation
Retrieval pipelines often connect directly to workflow systems.
Examples:
- Ticket escalation
- HR approvals
- Inventory updates
- Order processing
- Document routing
Azure Logic Apps Integration
Azure Logic Apps enables:
- Low-code orchestration
- API integrations
- Business process automation
Example workflow:
User Request ↓Retrieve Policy ↓Validate Eligibility ↓Submit Approval Workflow ↓Notify User
Azure Functions as Agent Tools
Azure Functions commonly provides:
- Lightweight APIs
- Custom tool endpoints
- Retrieval wrappers
- Data transformation services
Example:
Agent ↓Azure Function ↓Search Index Query ↓Grounded Results
Multi-Step Agent Reasoning
Modern agents may perform:
- Retrieval
- Analysis
- Tool invocation
- Validation
- Workflow execution
- Final response generation
This is sometimes called:
- Agent orchestration
- Agentic workflows
- Multi-step reasoning
Retrieval and Memory
Agents often maintain:
- Conversation memory
- Session context
- Long-term retrieval memory
Retrieval systems may supplement memory with:
- Enterprise knowledge
- Historical records
- Prior interactions
Metadata Filtering in Agent Retrieval
Metadata filtering improves retrieval precision.
Examples:
department = Financeregion = USclassification = Internal
This supports:
- Security trimming
- Contextual retrieval
- Personalized responses
Security Considerations
Enterprise retrieval workflows require:
- RBAC
- Managed identities
- API authentication
- Secure connectors
- Document-level permissions
Important AI-103 concept:
Agents should retrieve only authorized content.
Prompt Grounding
Retrieved content is inserted into prompts before inference.
Example:
System Prompt:Use only the provided company policy documents when answering.
Grounded prompts improve:
- Accuracy
- Trustworthiness
- Compliance
Agent Planning
Advanced agents may:
- Decide whether retrieval is necessary
- Select the best tool
- Choose retrieval strategy
- Determine workflow actions
Example:
Question:"What is our PTO policy?"Agent decision:1. Use retrieval tool2. Search HR documents3. Generate grounded answer
Retrieval Pipelines and Multimodal Systems
Retrieval systems increasingly support:
- Text
- Images
- Audio
- Video
Examples:
- OCR extraction
- Image captions
- Speech transcripts
- Video metadata
These enrichments improve agent grounding.
Real-World Enterprise Use Cases
Customer Support Agents
- Retrieve knowledge articles
- Update tickets
- Escalate issues
HR Agents
- Retrieve policies
- Trigger onboarding workflows
- Validate eligibility rules
Finance Agents
- Retrieve invoices
- Query ERP systems
- Initiate approvals
IT Support Agents
- Retrieve troubleshooting documents
- Reset passwords
- Open incidents
Common AI-103 Scenarios
Scenario 1
You need an AI agent that answers questions using internal documents.
Solution:
- Azure AI Search
- Vector search
- RAG grounding
Scenario 2
You need the agent to retrieve data and trigger workflows.
Solution:
- Retrieval pipeline
- Azure Logic Apps
- Azure Functions
Scenario 3
You need secure enterprise retrieval.
Solution:
- RBAC
- Metadata filtering
- Managed identities
Scenario 4
You need the AI system to call APIs dynamically.
Solution:
- Tool calling
- Function calling
- Agent orchestration
Important AI-103 Exam Tips
Know These Core Concepts
| Concept | Purpose |
|---|---|
| RAG | Retrieval + generation |
| Grounding | Supplying trusted context |
| Tool calling | Dynamic external function execution |
| Agent orchestration | Multi-step reasoning workflows |
| Hybrid search | Combined retrieval approach |
| Metadata filtering | Scoped retrieval |
| Workflow automation | Business process execution |
Frequently Tested Areas
Expect questions involving:
- RAG architectures
- Tool invocation
- Azure AI Search integration
- Function calling
- Workflow orchestration
- Agent tool design
- Hybrid retrieval
- Security trimming
- Grounded prompts
Final Thoughts
Connecting retrieval pipelines directly to workflows and agent tools is a foundational concept for modern enterprise AI systems.
For AI-103, focus heavily on:
- RAG architectures
- Retrieval integration
- Agent orchestration
- Tool calling
- Workflow automation
- Hybrid search
- Grounding techniques
- Secure enterprise retrieval
These concepts are central to intelligent copilots, enterprise AI assistants, and autonomous AI agents built on Azure.
Practice Exam Questions
Question 1
What is the primary purpose of a retrieval pipeline in a RAG system?
A. Train foundation models
B. Retrieve relevant external information for grounding
C. Encrypt enterprise documents
D. Replace embeddings entirely
Answer
B. Retrieve relevant external information for grounding
Question 2
Which Azure service commonly provides enterprise vector and hybrid search capabilities?
A. Azure Firewall
B. Azure AI Search
C. Azure DNS
D. Azure Policy
Answer
B. Azure AI Search
Question 3
What is grounding in an AI agent architecture?
A. Compressing embeddings
B. Restricting token counts
C. Training models on-premises
D. Providing trusted contextual data to the model
Answer
D. Providing trusted contextual data to the model
Question 4
What is tool invocation in an AI agent?
A. Rebuilding search indexes
B. Encrypting prompts
C. Calling external functionality dynamically
D. Reducing vector dimensions
Answer
C. Calling external functionality dynamically
Question 5
Which Azure service is commonly used for workflow orchestration?
A. Azure Logic Apps
B. Azure Firewall
C. Azure Monitor
D. Azure Kubernetes Service
Answer
A. Azure Logic Apps
Question 6
Why is hybrid search commonly recommended for AI agents?
A. It removes the need for embeddings
B. It combines multiple retrieval methods for improved relevance
C. It eliminates OCR requirements
D. It only supports structured data
Answer
B. It combines multiple retrieval methods for improved relevance
Question 7
Which Azure service commonly hosts lightweight APIs and custom agent tools?
A. Azure Backup
B. Azure DevTest Labs
C. Azure ExpressRoute
D. Azure Functions
Answer
D. Azure Functions
Question 8
What is the role of metadata filtering in retrieval pipelines?
A. Reduce storage costs only
B. Improve retrieval precision and security scoping
C. Replace vector search
D. Generate embeddings
Answer
B. Improve retrieval precision and security scoping
Question 9
What is a common responsibility of an AI agent orchestrator?
A. Managing virtual machine scaling
B. Encrypting OCR outputs
C. Coordinating retrieval, reasoning, and tool usage
D. Compressing vector databases
Answer
C. Coordinating retrieval, reasoning, and tool usage
Question 10
Which statement best describes Retrieval-Augmented Generation (RAG)?
A. It uses only model training data
B. It only works with SQL databases
C. It replaces semantic search completely
D. It combines retrieval systems with generative AI models
Answer
D. It combines retrieval systems with generative AI models
Go to the AI-103 Exam Prep Hub main page
