Skip to content

Commit 066a183

Browse files
committed
edit pass: how-to-create-vector-index
1 parent ed7e239 commit 066a183

File tree

2 files changed

+32
-39
lines changed

2 files changed

+32
-39
lines changed

articles/machine-learning/how-to-create-vector-index.md

Lines changed: 30 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
2-
title: How to create vector index in Azure Machine Learning prompt flow (preview)
2+
title: Create a vector index in an Azure Machine Learning prompt flow (preview)
33
titleSuffix: Azure Machine Learning
4-
description: How to create a vector index in Azure Machine Learning and use it in a prompt flow.
4+
description: Learn how to create a vector index in Azure Machine Learning and use it in a prompt flow.
55
services: machine-learning
66
ms.author: balapv
77
author: balapv
@@ -13,74 +13,67 @@ ms.topic: how-to
1313
ms.custom: prompt-flow
1414
---
1515

16-
# How to create vector index in Azure Machine Learning prompt flow (preview)
16+
# Create a vector index in an Azure Machine Learning prompt flow (preview)
1717

18-
Azure Machine Learning enables you to create a vector index from files/folders on your machine, a location in a cloud storage, an Azure Machine Learning data asset, a Git repository, or an SQL database. Azure Machine Learning can currently crack and process text files, md files, pdf, excel files, word documents. You can also reuse an existing Azure Cognitive Search Index instead of creating a new Index.
18+
Azure Machine Learning enables you to create a vector index from files or folders on your machine, a location in cloud storage, an Azure Machine Learning data asset, a Git repository, or a SQL database. Azure Machine Learning can currently process .txt, .md, .pdf, .xls, and .docx files. You can also reuse an existing Azure Cognitive Search index instead of creating a new index.
1919

20-
When a Vector Index is created, Azure Machine Learning will chunk the data, create embeddings, and store the embeddings in a FAISS Index or Azure Cognitive Search Index. In addition, Azure Machine Learning creates:
20+
When you create a vector index, Azure Machine Learning chunks the data, creates embeddings, and stores the embeddings in a Faiss index or Azure Cognitive Search index. In addition, Azure Machine Learning creates:
2121

2222
* Test data for your data source.
2323

24-
* A sample prompt flow, which uses the Vector Index you created. The sample prompt flow, which gets created has several key features like: Automatically generated prompt variants. Evaluation of each of these variations using the [test data generated](https://aka.ms/prompt_flow_blog). Metrics against each of the variants to help you choose the best variant to run. You can use this sample to continue developing your prompt.
24+
* A sample prompt flow, which uses the vector index that you created.
25+
26+
The sample prompt flow has key features like automatically generated prompt variants. You can evaluate each of these variations by using the [generated test data](https://aka.ms/prompt_flow_blog). Metrics against each of the variants help you choose the best variant to run. You can use this sample to continue developing your prompt.
2527

2628
[!INCLUDE [machine-learning-preview-generic-disclaimer](includes/machine-learning-preview-generic-disclaimer.md)]
2729

2830
## Prerequisites
2931

3032
* An Azure subscription. If you don't have an Azure subscription, create a [free account](https://azure.microsoft.com/free/).
3133

32-
* Access to Azure Open AI.
33-
34-
* Enable prompt flow in your Azure Machine Learning workspace
35-
36-
In your Azure Machine Learning workspace, you can enable prompt flow by turn-on **Build AI solutions with Prompt flow** in the **Manage preview features** panel.
37-
38-
39-
## Create a new Vector Index using studio
40-
41-
1. Select **Prompt flow** on the left menu
42-
43-
:::image type="content" source="media/how-to-create-vector-index/prompt.png" alt-text="Screenshot showing the Prompt flow location on the left menu.":::
44-
45-
1. Select **Vector Index** on the top menu
34+
* Access to Azure OpenAI Service.
4635

47-
:::image type="content" source="./media/how-to-create-vector-index/vector-index.png" alt-text="Screenshot showing the Vector Index location on the top menu.":::
36+
* Prompt flows enabled in your Azure Machine Learning workspace. You can enable prompt flows by turning on **Build AI solutions with Prompt flow** on the **Manage preview features** panel.
4837

38+
## Create a vector index by using Machine Learning studio
4939

50-
1. Select **Create**
40+
1. Select **Prompt flow** on the left menu.
5141

52-
1. After the create new vector index form opens, provide a name for your vector index.
42+
:::image type="content" source="media/how-to-create-vector-index/prompt.png" alt-text="Screenshot that shows the location of prompt flow on the left menu.":::
5343

54-
1. Next choose your data source type
44+
1. Select the **Vector Index** tab.
5545

56-
:::image type="content" source="media/how-to-create-vector-index/new-vector-creation.png" alt-text="Screenshot showing the create new Vector Index form.":::
46+
:::image type="content" source="./media/how-to-create-vector-index/vector-index.png" alt-text="Screenshot that shows the tab for vector index.":::
5747

58-
1. Based on the chosen type, provide the location details of your
59-
source. Then, select **Next**.
48+
1. Select **Create**.
6049

61-
1. Review the details of your vector index, then select the **Create** button to create the vector index. For more information about how to [use Vector Stores (preview).](concept-vector-stores.md)
50+
1. In **Basic settings**, provide a name for your vector index.
6251

63-
1. This takes you to an overview page from where you can track and view the status of your Vector Index creation. Note: Vector Index creation may take a while depending on the size of data.
52+
1. Select your data source type.
6453

54+
:::image type="content" source="media/how-to-create-vector-index/new-vector-creation.png" alt-text="Screenshot that shows basic settings for creating a vector index.":::
6555

56+
1. Based on the chosen type, provide the location details of your source. Then, select **Next**.
6657

67-
## Add a Vector Index to a prompt flow
58+
1. Review the details of your vector index, and then select the **Create** button.
6859

69-
Once you have created a Vector Index, you can add it to a prompt flow from the prompt flow canvas. The prompt flow designer has a Vector Index lookup tool. Add this tool to the canvas and enter the path to your Vector Index and the query you want to perform against the index. You can find the steps to do this here.
60+
1. On the overview page that appears, you can track and view the status of creating your vector index. The process might take a while, depending on the size of your data.
7061

62+
## Add a vector index to a prompt flow
7163

72-
1. Open an existing prompt flow
64+
After you create a vector index, you can add it to a prompt flow from the prompt flow canvas.
7365

66+
1. Open an existing prompt flow.
7467

75-
1. On the top menu, select **More Tools** and select Vector Index Lookup
68+
1. On the top menu of the prompt flow designer, select **More Tools**, and then select **Vector Index Lookup**.
7669

77-
:::image type="content" source="media/how-to-create-vector-index/vector-lookup.png" alt-text="Screenshot showing the location of the More Tools button.":::
70+
:::image type="content" source="media/how-to-create-vector-index/vector-lookup.png" alt-text="Screenshot that shows the list of available tools.":::
7871

79-
1. The Vector Index lookup tool gets added to the canvas. If you don't see the tool immediately, scroll to the bottom of the canvas.
72+
The Vector Index Lookup tool is added to the canvas. If you don't see the tool immediately, scroll to the bottom of the canvas.
8073

81-
:::image type="content" source="media/how-to-create-vector-index/vector-index-lookup-tool.png" alt-text="Screenshot showing the vector index lookup tool.":::
74+
:::image type="content" source="media/how-to-create-vector-index/vector-index-lookup-tool.png" alt-text="Screenshot that shows the Vector Index Lookup tool.":::
8275

83-
1. Enter the path to your Vector Index and enter your desired query. Be sure to type in your path directly, or to paste the path.
76+
1. Enter the path to your vector index, along with the query that you want to perform against the index.
8477

8578
## Next steps
8679

articles/machine-learning/includes/machine-learning-preview-generic-disclaimer.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,6 @@ ms.custom: include file
1111
---
1212

1313
> [!IMPORTANT]
14-
> This feature is currently in public preview.
15-
> This preview version is provided without a service-level agreement, and it's not recommended for production workloads. Certain features might not be supported or might have constrained capabilities.
14+
> This feature is currently in public preview. This preview version 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.
15+
>
1616
> For more information, see [Supplemental Terms of Use for Microsoft Azure Previews](https://azure.microsoft.com/support/legal/preview-supplemental-terms/).

0 commit comments

Comments
 (0)