How to build and consume vector indexes in Azure AI Foundry portal
Important
Items marked (preview) in this article are currently in public preview. This preview is provided without a service-level agreement, and we don't recommend it for production workloads. Certain features might not be supported or might have constrained capabilities. For more information, see Supplemental Terms of Use for Microsoft Azure Previews.
In this article, you learn how to create and use a vector index for performing Retrieval Augmented Generation (RAG).
Prerequisites
You must have:
- An Azure AI Foundry project
- An Azure AI Search resource
Create an index from the Chat playground
Sign in to Azure AI Foundry.
Go to your project or create a new project in Azure AI Foundry portal.
From the menu on the left, select Playgrounds.
Select a deployed model. If you have not done so already, deploy a model by selecting Create new deployment.
Scroll to the bottom of the model window. Select + Add a new data source
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.
Select Next after choosing source data
Choose the Index Storage - the location where you want your index to be stored in the Index configuration tab.
If you already have an Azure AI Search resource, you can choose that from the dropdown.
- If you don't have an existing resource, choose Create a new Azure AI Search resource. Select Next.
Select the Azure OpenAI connection you want to use. Select Next.
Enter a name you want to use for your vector index. Select Next.
Review the details you entered and select Create
You're taken to the index details page where you can see the status of your index creation.
Use an index in prompt flow
Sign in to Azure AI Foundry and select your project.
From the collapsible left menu, select Prompt flow from the Build and customize section.
Open an existing prompt flow or select + Create to create a new flow.
On the top menu of the flow designer, select More tools, and then select Index Lookup.
Provide a name for your Index Lookup Tool and select Add.
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.