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
Copy file name to clipboardExpand all lines: articles/ai-services/agents/includes/azure-search/setup.md
+8-7Lines changed: 8 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,9 +10,8 @@ ms.date: 12/10/2024
10
10
## Setup: Create an agent that can use an existing Azure AI Search index
11
11
12
12
#### Prerequisite: Have an existing Azure AI Search index
13
-
A prerequisite of using the Azure AI Search tool is to have an existing Azure AI Search index. If you don't have an existing index, you can create one in the Azure portal or via REST API.
14
-
-[Quickstart: Create a vector index using the Azure portal](../../../../search/search-get-started-portal-import-vectors.md)
15
-
-[Quickstart: Create a vector index using REST API](../../../../search/search-get-started-vector.md)
13
+
A prerequisite of using the Azure AI Search tool is to have an existing Azure AI Search index. If you don't have an existing index, you can create one in the Azure portal using the import and vectorize data wizard.
14
+
-[Quickstart: Create a vector index with the import and vectorize data wizard in the Azure portal](../../../../search/search-get-started-portal-import-vectors.md)
16
15
17
16
18
17
#### Complete the agent setup
@@ -22,7 +21,9 @@ A prerequisite of using the Azure AI Search tool is to have an existing Azure AI
22
21
23
22
24
23
#### Create a project connection to the Azure AI Search resource with the index you want to use
25
-
If you already connected the AI Search resource that contains the index you want to use to your project, skip this step.
24
+
Once you have completed the standard agent setup, you must create a project connection to the Azure AI Search resource that contains the index you want to use.
25
+
26
+
If you already connected the AI Search resource that contains the index you want to use to your project, skip this step.
26
27
27
28
##### Get your Azure AI Search resource connection key and endpoint
28
29
1. Access your Azure AI Search resource.
@@ -43,11 +44,11 @@ If you already connected the AI Search resource that contains the index you want
43
44
**Create the following connections.yml file**
44
45
45
46
46
-
You can use either an API key or credential-less YAML configuration file. For more information on the YAML configuration file, see the [Azure AI Search connection YAML schema](../../../../machine-learning/reference-yaml-connection-ai-search.md):
47
+
You can use either an API key or credential-less YAML configuration file. Replace the placeholders for ```name```, ```endpoint``` and ```api_key``` with your Azure AI Search resource values. For more information on the YAML configuration file, see the [Azure AI Search connection YAML schema](../../../../machine-learning/reference-yaml-connection-ai-search.md).
47
48
- API Key example:
48
49
49
50
```yml
50
-
name: myazaics_apk
51
+
name: my_project_acs_connection_keys
51
52
type: azure_ai_search
52
53
endpoint: https://contoso.search.windows.net/
53
54
api_key: XXXXXXXXXXXXXXX
@@ -56,7 +57,7 @@ You can use either an API key or credential-less YAML configuration file. For mo
Copy file name to clipboardExpand all lines: articles/ai-services/agents/includes/bicep-setup.md
+77-6Lines changed: 77 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -15,7 +15,7 @@ The following section shows you how to set up the required resources for getting
15
15
16
16
1. Creating an Azure AI project under your Hub creates an endpoint for your app to call, and sets up app services to access to resources in your tenant.
17
17
18
-
1. Connecting an Azure OpenAI resource or an Azure AI resource
18
+
1. Connecting an Azure OpenAI resource or an Azure AI Services resource
19
19
20
20
21
21
## Choose Basic or Standard Agent Setup
@@ -24,15 +24,86 @@ The following section shows you how to set up the required resources for getting
24
24
25
25
**Standard Setup**: Agents use customer-owned, single-tenant search and storage resources. With this setup, you have full control and visibility over these resources, but you incur costs based on your usage.
| Deploy a basic agent setup that uses Managed Identity for authentication. | [](https://portal.azure.com/#create/Microsoft.Template/uri/https%3A%2F%2Fraw.githubusercontent.com%2FAzure%2Fazure-quickstart-templates%2Fmaster%2Fquickstarts%2Fmicrosoft.azure-ai-agent-service%2Fbasic-agent-identity%2Fazuredeploy.json)
30
-
| Deploy a standard agent setup that uses Managed Identity for authentication. | [](https://portal.azure.com/#create/Microsoft.Template/uri/https%3A%2F%2Fraw.githubusercontent.com%2FAzure%2Fazure-quickstart-templates%2Frefs%2Fheads%2Fmaster%2Fquickstarts%2Fmicrosoft.azure-ai-agent-service%2Fstandard-agent%2Fazuredeploy.json)
| Deploy a basic agent setup that uses Managed Identity authentication on the AI Services and storage account connections. | AI hub, AI project, AI Services |[](https://portal.azure.com/#create/Microsoft.Template/uri/https%3A%2F%2Fraw.githubusercontent.com%2FAzure%2Fazure-quickstart-templates%2Fmaster%2Fquickstarts%2Fmicrosoft.azure-ai-agent-service%2Fbasic-agent-identity%2Fazuredeploy.json)|
30
+
| Deploy a standard agent setup that uses Managed Identity authentication on the AI Services, storage account, and Azure AI Search connections. |AI hub, AI project, storage account, key vault, Azure AI Search, AI Services |[](https://portal.azure.com/#create/Microsoft.Template/uri/https%3A%2F%2Fraw.githubusercontent.com%2FAzure%2Fazure-quickstart-templates%2Frefs%2Fheads%2Fmaster%2Fquickstarts%2Fmicrosoft.azure-ai-agent-service%2Fstandard-agent%2Fazuredeploy.json)|
31
+
32
+
### [Optional] Model selection in autodeploy template
33
+
You can customize the model used by your agent by editing the model parameters in the autodeploy template. To deploy a different model, you need to update at least the `modelName` and `modelVersion` parameters.
34
+
35
+
By default, the deployment template is configured with the following values:
36
+
37
+
| Model Parameter | Default Value |
38
+
|------------------|----------------|
39
+
| modelName | gpt-4o-mini |
40
+
| modelFormat | OpenAI |
41
+
| modelVersion | 2024-07-18 |
42
+
| modelSkuName | GlobalStandard |
43
+
| modelLocation | eastus |
44
+
45
+
> [!IMPORTANT]
46
+
> **Don't change the modelFormat parameter.**
47
+
>
48
+
> The templates only support deployment of OpenAI models. See which OpenAI models are supported in the [Azure AI Agent Service model support](../concepts/model-region-support.md) documentation.
49
+
50
+
51
+
### [Optional] Use your own resources in agent setup
52
+
53
+
> [!NOTE]
54
+
> If you use an existing AI Services/AOAI resource, no model will be deployed. You can deploy a model to the resource after the agent setup is complete.
55
+
56
+
#### Basic agent setup: use an existing AI Services resource
57
+
58
+
Replace the parameter value for `aiServiceAccountResourceId` with the full arm resource ID of the AI Services account you want to use.
59
+
60
+
1. To get the AI Services account resource ID, sign in to the Azure CLI and select the subscription with your AI Services account:
61
+
62
+
```az login```
63
+
2. Replace `<your-resource-group>` with the resource group containing your resource and `your-ai-service-resource-name` with the name of your AI Service resource, and run:
Resources for the AI hub, AI project, storage account, and AI Services are created for you. The AI Services account is connected to your project/hub and a gpt-4o-mini model is deployed in the eastus region. A Microsoft-managed key vault is used by default.
106
+
Resources for the AI hub, AI project, and AI Services are created for you. A storage account is created because it's a required resource for hubs, but this storage account is not used by agents. The AI Services account is connected to your project/hub and a gpt-4o-mini model is deployed in the eastus region. A Microsoft-managed key vault, storage account, and search resource is used by default.
36
107
37
108
## Standard agent setup resource architecture
38
109
:::image type="content" source="../media/quickstart/standard-agent-setup-resources.png" alt-text="An architecture diagram for standard agent setup." lightbox="../media/quickstart/standard-agent-setup-resources.png":::
### Step 2: Upload local files to your project Azure Blob Storage container
42
+
Upload your local file to the project’s Azure Blob Storage container. This is the same storage account you connected to your agent during setup. When creating additional agents within the same project, you can reuse the asset URIs of any previously uploaded files that those agents need. This means you don't have to upload the same file repeatedly, as the asset URIs allow you to reference the files directly.
43
+
44
+
Then, create a vector store using the ```asset_uri```, which is the location of your file in your project's datastore.
45
+
```python
46
+
# We'll upload the local file to your project Azure Blob Storage container and will use it for vector store creation.
### Step 4: Create second vector store using the previously uploaded file
94
+
Now, create a second vector store using the previously uploaded file. Using the ```asset_uri``` of a file already in Azure Blob Storage is useful if you have multiple agents that need access to the same files, as it eliminates the need to upload the same file multiple times.
95
+
```python
96
+
97
+
# create a vector store with a previously uploaded file and wait for it to be processed
0 commit comments