| 
1 | 1 | ---  | 
2 |  | -title: Build an agentic retrieval solution  | 
 | 2 | +title: 'Tutorial: Build an agentic retrieval solution'  | 
3 | 3 | titleSuffix: Azure AI Search  | 
4 | 4 | description: Learn how to design and build a custom agentic retrieval solution where Azure AI Search handles data retrieval for your custom agents in AI Foundry.  | 
5 | 5 | author: HeidiSteen  | 
6 | 6 | ms.author: heidist  | 
7 | 7 | manager: nitinme  | 
8 | 8 | ms.date: 09/10/2025  | 
9 | 9 | ms.service: azure-ai-search  | 
10 |  | -ms.topic: how-to  | 
 | 10 | +ms.topic: tutorial  | 
11 | 11 | ms.custom:  | 
12 | 12 |   - build-2025  | 
13 | 13 | ---  | 
14 | 14 | 
 
  | 
15 |  | -# Build an agent-to-agent retrieval solution using Azure AI Search  | 
 | 15 | +# Tutorial: Build an agent-to-agent retrieval solution using Azure AI Search  | 
16 | 16 | 
 
  | 
17 | 17 | [!INCLUDE [Feature preview](./includes/previews/preview-generic.md)]  | 
18 | 18 | 
 
  | 
19 | 19 | This article describes an approach or pattern for building a solution that uses Azure AI Search for knowledge retrieval, and how to integrate knowledge retrieval into a custom solution that includes Azure AI Agent. This pattern uses an agent tool to invoke an agentic retrieval pipeline in Azure AI Search.  | 
20 | 20 | 
 
  | 
21 | 21 | :::image type="content" source="media/agentic-retrieval/agent-to-agent-pipeline.svg" alt-text="Diagram of Azure AI Search integration with Azure AI Agent service." lightbox="media/agentic-retrieval/agent-to-agent-pipeline.png" :::  | 
22 | 22 | 
 
  | 
23 |  | -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.  | 
 | 23 | +To run the code for this tutorial, download the [agentic-retrieval-pipeline-example](https://github.com/Azure-Samples/azure-search-python-samples/tree/main/agentic-retrieval-pipeline-example) Python sample on GitHub.  | 
24 | 24 | 
 
  | 
25 | 25 | 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.  | 
26 | 26 | 
 
  | 
@@ -315,6 +315,18 @@ Look at output tokens in the [activity array](agentic-retrieval-how-to-retrieve.  | 
315 | 315 | 
 
  | 
316 | 316 | + Set `maxOutputSize` in the [knowledge agent](agentic-retrieval-how-to-create-knowledge-base.md) to govern the size of the response, or `maxRuntimeInSeconds` for time-bound processing.  | 
317 | 317 | 
 
  | 
 | 318 | +## Clean up resources  | 
 | 319 | + | 
 | 320 | +When you're working in your own subscription, at the end of a project, it's a good idea to remove the resources that you no longer need. Resources left running can cost you money. You can delete resources individually or delete the resource group to delete the entire set of resources.  | 
 | 321 | + | 
 | 322 | +You can also delete individual objects:  | 
 | 323 | + | 
 | 324 | ++ [Delete a knowledge agent](agentic-retrieval-how-to-create-knowledge-base.md#delete-an-agent)  | 
 | 325 | + | 
 | 326 | ++ [Delete a knowledge source](agentic-knowledge-source-how-to-search-index.md#delete-a-knowledge-source)  | 
 | 327 | + | 
 | 328 | ++ [Delete an index](search-how-to-manage-index#delete-an-index)  | 
 | 329 | + | 
318 | 330 | ## Related content  | 
319 | 331 | 
 
  | 
320 | 332 | + [Agentic retrieval in Azure AI Search](agentic-retrieval-overview.md)  | 
 | 
0 commit comments