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
In this article, you learn how to create and use a vector index for performing [Retrieval Augmented Generation (RAG)](../concepts/retrieval-augmented-generation.md).
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
+
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.
23
25
24
26
## Prerequisites
25
27
26
28
You must have:
27
29
- An Azure AI Foundry project
28
-
- An Azure AI Search resource
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
32
30
33
## Create an index from the Chat playground
31
34
32
35
1. Sign in to [Azure AI Foundry](https://ai.azure.com).
33
36
1. Go to your project or [create a new project](../how-to/create-projects.md) in Azure AI Foundry portal.
34
-
1. From the menu on the left, select **Playgrounds**.
35
-
37
+
1. From the menu on the left, select **Playgrounds**. Select the **Chat Playground**.
36
38
37
39
:::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":::
38
40
39
-
1. Select a deployed model. If you have not done so already, deploy a model by selecting **Create new deployment**.
41
+
1. Select a deployed chat completion model. If you have not done so already, deploy a model by selecting **Create new deployment**.
40
42
41
43
:::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":::
42
44
@@ -46,11 +48,13 @@ You must have:
46
48
47
49
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.
48
50
51
+
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.
52
+
49
53
:::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":::
50
54
51
55
1. Select **Next** after choosing source data
52
56
1. Choose the **Index Storage** - the location where you want your index to be stored in the **Index configuration** tab.
53
-
1. If you already have an Azure AI Search resource, you can choose that from the dropdown.
57
+
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).
54
58
55
59
:::image type="content" source="../media/index-retrieve/index-storage.png" alt-text="Screenshot of select index store." lightbox="../media/index-retrieve/index-storage.png":::
56
60
@@ -62,7 +66,6 @@ You must have:
62
66
1. Review the details you entered and select **Create**
63
67
1. You're taken to the index details page where you can see the status of your index creation.
64
68
65
-
66
69
## Use an index in prompt flow
67
70
68
71
1. Sign in to [Azure AI Foundry](https://ai.azure.com) and select your project.
0 commit comments