You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/search/search-agentic-retrieval-how-to-pipeline.md
+21-15Lines changed: 21 additions & 15 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,7 +8,7 @@ author: HeidiSteen
8
8
ms.author: heidist
9
9
ms.service: azure-ai-search
10
10
ms.topic: how-to
11
-
ms.date: 05/20/2025
11
+
ms.date: 05/21/2025
12
12
---
13
13
14
14
# Build an agent-to-agent retrieval solution using Azure AI Search
@@ -19,7 +19,7 @@ This article describes an approach or pattern for building a solution that uses
19
19
20
20
This article supports the [agentic-retrieval-pipeline-example](https://github.com/Azure-Samples/azure-search-python-samples/tree/main/agentic-retrieval-pipeline-example) Python sample on GitHub.
21
21
22
-
This exercise differs from the [Agentic Retrieval Quickstart](search-get-started-agentic-retrieval.md) in how it uses Azure AI Agent to retrieve data from the index, and how it uses an agent tool for orchestration.
22
+
This exercise differs from the [Agentic Retrieval Quickstart](search-get-started-agentic-retrieval.md) in how it uses Azure AI Agent to retrieve data from the index, and how it uses an agent tool for orchestration. If you want to understand the retrieval pipeline in its simplest form, begin with the quickstart.
23
23
24
24
## Prerequisites
25
25
@@ -29,13 +29,15 @@ The following resources are required for this design pattern:
29
29
30
30
+ A search index that satisfies the [index criteria for agentic retrieval](search-agentic-retrieval-how-to-index.md).
31
31
32
-
+ A project in Azure AI Foundry, with a deployment of a supported large language model and an Azure AI Agent in a Basic setup.
32
+
+ A project in Azure AI Foundry, with an Azure AI Agent in a Basic setup.
33
33
34
-
Follow the steps in [Create a project for Azure AI Foundry](/azure/ai-foundry/how-to/create-projects). Deploy one of the chat completion models listed below. We recommend a minimum of 100,000 token capacity for your model. You can find capacity and the rate limit in the model deployments list in the Azure AI Foundry portal.
34
+
Follow the steps in [Create a project for Azure AI Foundry](/azure/ai-foundry/how-to/create-projects). Creating the project also creates the Azure AI Foundry resource in your Azure subscription.
35
+
36
+
+ Azure OpenAI with a deployment of one of the chat completion models listed below. We recommend a minimum of 100,000 token capacity for your model. You can find capacity and the rate limit in the model deployments list in the Azure AI Foundry portal. You can also deploy text embedding models if you want [vectorization at query time](vector-search-integrated-vectorization.md#using-integrated-vectorization-in-queries).
35
37
36
38
### Supported large language models
37
39
38
-
Use Azure OpenAI or an equivalent open source model:
40
+
Use one of the following chat completion models with your AI agent:
39
41
40
42
+`gpt-4o`
41
43
+`gpt-4o-mini`
@@ -59,13 +61,17 @@ On Azure AI Search:
59
61
60
62
On Azure AI Foundry:
61
63
62
-
+ You must be an **Owner** of your Azure subscription to create and use the project.
64
+
+ You must be an **Owner** of your Azure subscription to create the project and resource.
65
+
66
+
+ For local testing, you must be an **Azure AI User** to access chat completion models deployed to the Foundry resource. This assignment is conferred automatically for **Owners** when you create the resource. Other users need a specific role assignment. For more information, see [Role-based access control in Azure AI Foundry portal](/azure/ai-foundry/concepts/rbac-azure-ai-foundry).
67
+
68
+
+ For integrated operations, ensure your [search service identity](search-howto-managed-identities-data-sources.md) has an **Azure AI User** role assignment on the Foundry resource.
63
69
64
70
On Azure OpenAI:
65
71
66
-
1. For local testing, ensure that you have a **Cognitive Services User** role assignment to access the chat completion model.
72
+
1. For local testing, ensure that you have a **Cognitive Services User** role assignment to access the chat completion model and embedding models (if using).
67
73
68
-
1. For integrated operations, ensure your [search service identity](search-howto-managed-identities-data-sources.md) has a **Cognitive Services User** role assignment for chat completion model access.
74
+
1. For integrated operations, ensure your [search service identity](search-howto-managed-identities-data-sources.md) has a **Cognitive Services User** role assignment for model access.
69
75
70
76
## Development tasks
71
77
@@ -79,11 +85,11 @@ Development tasks on the Azure AI Search side include:
79
85
80
86
Your custom application makes API calls to Azure AI Search and an Azure SDK.
81
87
82
-
+ External data from anywhere
83
-
+ Azure AI Search, hosting indexed data and the agentic data retrieval engine
84
-
+ Azure AI Foundry Model, providing a chat model (an LLM) for user interaction
85
-
+ Azure SDK with a Foundry project, providing programmatic access to chat and chat history
86
-
+ Azure AI Agent, with an agent for handling the conversation, and a tool for orchestration
88
+
+ External data from anywhere, although we recommend [data sources used for integrated indexing](search-data-sources-gallery.md).
89
+
+ Azure AI Search, hosting indexed data and the agentic data retrieval engine.
90
+
+ Azure AI Foundry, hosting the AI agent and tool.
91
+
+ Azure SDK with a Foundry project, providing programmatic access to Azure AI Foundry.
92
+
+ Azure OpenAI, hosting a chat completion model used by the knowledge agent and any embedding models used by vectorizers for vector search.
87
93
88
94
## Set up your environment
89
95
@@ -97,7 +103,7 @@ You need endpoints for:
97
103
+ Azure OpenAI
98
104
+ Azure AI Foundry project
99
105
100
-
You can find endpoints for Azure AI Search and Azure OpenAI in the [Azure portal](https://portal.azure.com).
106
+
You can find endpoints for Azure AI Search and Azure OpenAI in the [Azure portal](https://portal.azure.com), in the **Overview** pages for each resource.
101
107
102
108
You can find the project endpoint in the Azure AI Foundry portal:
Search results are consolidating into a large unified string that you can pass to a conversational language model for a grounded answer. The following indexing and relevance tuning features in Azure AI Search are available to help you generate high quality results. You can implement these features in the search index, and the improvements in search relevance are evident in the quality of the response returned during retrieval.
202
+
Search results are consolidated into a large unified string that you can pass to a chat completion model for a grounded answer. The following indexing and relevance tuning features in Azure AI Search are available to help you generate high quality results. You can implement these features in the search index, and the improvements in search relevance are evident in the quality of the response returned during retrieval.
197
203
198
204
+[Scoring profiles](index-add-scoring-profiles.md) (added to your search index) provide built-in boosting criteria. Your index must specify a default scoring profile, and that's the one used by the retrieval engine when queries include fields associated with that profile.
0 commit comments