|
1 | 1 | --- |
2 | | -title: How to build and consume vector indexes in Azure AI Foundry portal |
| 2 | +title: Build and Consume Vector Indexes |
3 | 3 | titleSuffix: Azure AI Foundry |
4 | | -description: Learn how to create and use a vector index for performing Retrieval Augmented Generation (RAG). |
| 4 | +description: Learn how to create and use a vector index for performing retrieval-augmented generation (RAG) by using Azure AI Foundry portal. |
5 | 5 | ms.service: azure-ai-foundry |
6 | 6 | ms.custom: |
7 | 7 | - ignite-2023 |
8 | 8 | - build-2024 |
9 | 9 | - ignite-2024 |
10 | 10 | ms.topic: how-to |
11 | | -ms.date: 06/29/2025 |
| 11 | +ms.date: 10/10/2025 |
12 | 12 | ms.reviewer: estraight |
13 | 13 | ms.author: ssalgado |
14 | 14 | manager: nitinme |
15 | 15 | author: ssalgadodev |
16 | 16 | --- |
17 | 17 |
|
18 | | -# How to build and consume vector indexes in Azure AI Foundry portal |
| 18 | +# Build and consume vector indexes in Azure AI Foundry portal |
19 | 19 |
|
20 | 20 | [!INCLUDE [feature-preview](../includes/feature-preview.md)] |
21 | 21 |
|
22 | | -In this article, you learn how to create and use a vector index for performing [Retrieval Augmented Generation (RAG)](../concepts/retrieval-augmented-generation.md) in the Azure AI Foundry portal. |
| 22 | +In this article, you learn how to create and use a vector index for performing [retrieval-augmented generation (RAG)](../concepts/retrieval-augmented-generation.md) in the Azure AI Foundry portal. |
23 | 23 |
|
24 | 24 | A vector index isn't required for RAG, but a vector query can match on semantically similar content, which is useful for RAG workloads. |
25 | 25 |
|
26 | 26 | ## Prerequisites |
27 | 27 |
|
28 | 28 | You must have: |
29 | | -- An Azure AI Foundry project |
30 | | -- An [Azure AI Search resource](/azure/search/search-create-service-portal) |
31 | | -- You should have content in a supported format that provides sufficient information for a chat experience. It can be an existing index on Azure AI Search, or create a new index using content files in Azure Blob Storage, your local system, or data in Azure AI Foundry. |
| 29 | + |
| 30 | +- An [Azure AI Foundry project](create-projects.md). |
| 31 | + |
| 32 | +- An [Azure AI Search resource](/azure/search/search-create-service-portal). |
| 33 | + |
| 34 | +- You should have content in a supported format that provides sufficient information for a chat experience. It can be an existing index on Azure AI Search, or you can create a new index using content files in Azure Blob Storage, your local system, or data in Azure AI Foundry. |
32 | 35 |
|
33 | 36 | ## Create an index from the Chat playground |
34 | 37 |
|
35 | 38 | [!INCLUDE [tip-left-pane](../includes/tip-left-pane.md)] |
36 | 39 |
|
37 | | -1. Sign in to [Azure AI Foundry](https://ai.azure.com/?cid=learnDocs). |
38 | | -1. Go to your project or [create a new project](../how-to/create-projects.md) in Azure AI Foundry portal. |
39 | | -1. From the menu on the left, select **Playgrounds**. Select the **Chat Playground**. |
| 40 | +1. Sign in to the [Azure AI Foundry portal](https://ai.azure.com/?cid=learnDocs). |
| 41 | + |
| 42 | +1. Go to your project or [create a new project](../how-to/create-projects.md) in your Azure AI Foundry resource. |
| 43 | + |
| 44 | +1. From the sidebar menu, select **Playgrounds**. Select **Try the Chat playground**. |
40 | 45 |
|
41 | 46 | :::image type="content" source="../media/index-retrieve/project-left-menu.png" alt-text="Screenshot of Project Left Menu." lightbox="../media/index-retrieve/project-left-menu.png"::: |
42 | 47 |
|
43 | | -1. Select a deployed chat completion model. If you have not done so already, deploy a model by selecting **Create new deployment**. |
| 48 | +1. Select a deployed chat completion model. If you don't have one, deploy a model by selecting **Create new deployment**, then choose a model. |
44 | 49 |
|
45 | 50 | :::image type="content" source="../media/index-retrieve/create-deployment.png" alt-text="Screenshot of create a deployment button." lightbox="../media/index-retrieve/create-deployment.png"::: |
46 | | - |
47 | | -1. Scroll to the bottom of the model window. Select **+ Add a new data source** |
| 51 | + |
| 52 | +1. Scroll to the bottom of the model window. Select **+ Add a new data source**. |
48 | 53 |
|
49 | 54 | :::image type="content" source="../media/index-retrieve/add-your-data.png" alt-text="Screenshot of the add your data section." lightbox="../media/index-retrieve/add-your-data.png"::: |
50 | | - |
| 55 | + |
51 | 56 | 1. Choose your **Source data**. You can choose source data from a list of your recent data sources, a storage URL on the cloud, or upload files and folders from the local machine. You can also add a connection to another data source such as Azure Blob Storage. |
52 | 57 |
|
53 | 58 | If you don't have sample data, you can [download these PDFs](https://github.com/Azure-Samples/azure-search-sample-data/tree/main/health-plan) to your local system, and then upload them as your source data. |
54 | 59 |
|
55 | 60 | :::image type="content" source="../media/index-retrieve/select-source-data.png" alt-text="Screenshot of select source data." lightbox="../media/index-retrieve/select-source-data.png"::: |
56 | 61 |
|
57 | | -1. Select **Next** after choosing source data |
58 | | -1. Choose the **Index Storage** - the location where you want your index to be stored in the **Index configuration** tab. |
| 62 | +1. Select **Next** after choosing source data. |
| 63 | + |
| 64 | +1. In the **Index configuration** tab, choose the **Index storage** location where you want your index to be stored. |
| 65 | + |
59 | 66 | 1. If you already have an Azure AI Search resource, you can browse the list of search service resources for your subscription and then select **Connect** for the one you want to use. If you're connecting with API keys, confirm your search service [uses API keys](/azure/search/search-security-api-keys). |
60 | 67 |
|
61 | 68 | :::image type="content" source="../media/index-retrieve/index-storage.png" alt-text="Screenshot of select index store." lightbox="../media/index-retrieve/index-storage.png"::: |
62 | 69 |
|
63 | | - 1. If you don't have an existing resource, choose **Create a new Azure AI Search resource**. Select **Next**. |
| 70 | + If you don't have an existing resource, choose **Create a new Azure AI Search resource**. Select **Next**. |
64 | 71 |
|
65 | 72 | 1. Select the Azure OpenAI connection you want to use. Select **Next**. |
66 | | - |
67 | | -1. Enter a name you want to use for your vector index. Select **Next**. |
68 | | -1. Review the details you entered and select **Create** |
| 73 | + |
| 74 | +1. Review the details you entered and select **Create vector index**. |
| 75 | + |
69 | 76 | 1. You're taken to the index details page where you can see the status of your index creation. |
70 | 77 |
|
71 | 78 | ## Use an index in prompt flow |
72 | 79 |
|
73 | | -1. Sign in to [Azure AI Foundry](https://ai.azure.com/?cid=learnDocs) and select your project. |
74 | | -1. From the collapsible left menu, select **Prompt flow** from the **Build and customize** section. |
| 80 | +1. Under **Build and customize** in the sidebar menu, select **Prompt flow**. |
| 81 | + |
75 | 82 | 1. Open an existing prompt flow or select **+ Create** to create a new flow. |
76 | | -1. On the top menu of the flow designer, select **More tools**, and then select ***Index Lookup***. |
| 83 | + |
| 84 | +1. Select **Create** in the **Chat flow** tile, then select **Create** again. |
| 85 | + |
| 86 | +1. Select **Start compute session**, and wait a few minutes for the compute session to begin. |
| 87 | + |
| 88 | +1. Select **More tools**, and then select **Index Lookup**. |
77 | 89 |
|
78 | 90 | :::image type="content" source="../media/index-retrieve/index-lookup-tool.png" alt-text="Screenshot of Vector index Lookup from More Tools." lightbox="../media/index-retrieve/index-lookup-tool.png"::: |
79 | 91 |
|
80 | | -1. Provide a name for your Index Lookup Tool and select **Add**. |
| 92 | +1. Provide a node name for your Index Lookup Tool and select **Add**. |
| 93 | + |
81 | 94 | 1. Select the **mlindex_content** value box, and select your index from the value section. After completing this step, enter the queries and **query_types** to be performed against the index. |
82 | 95 |
|
83 | 96 | :::image type="content" source="../media/index-retrieve/configure-index-lookup-tool.png" alt-text="Screenshot of the prompt flow node to configure index lookup." lightbox="../media/index-retrieve/configure-index-lookup-tool.png"::: |
84 | 97 |
|
85 | 98 |
|
86 | | - |
87 | 99 | ## Related content |
88 | 100 |
|
89 | | -- [Learn more about RAG](../concepts/retrieval-augmented-generation.md) |
| 101 | +- [Retrieval augmented generation and indexes](../concepts/retrieval-augmented-generation.md) |
90 | 102 | - [Build and consume an index using code](../tutorials/copilot-sdk-create-resources.md) |
0 commit comments