Skip to content

Commit 736e864

Browse files
committed
updating code
1 parent 3a8684d commit 736e864

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

articles/ai-services/agents/includes/file-search/azure-blob-storage-code-examples.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ In this example, we use Azure AI Agent Service to create an agent that can help
1313
### Prerequisites
1414
Complete the [standard agent setup](../../quickstart.md).
1515

16-
> [!NOTE]
17-
> Azure Blob Storage is only available with the standard agent setup. The basic agent setup does not support this file source.
16+
> [!IMPORTANT]
17+
> File search using Blob storage is only supported by the standard agent setup.
1818
1919
### Step 1: Create a project client
2020
```python
@@ -33,6 +33,7 @@ project_client = AIProjectClient.from_connection_string(
3333
credential=credential, conn_str=os.environ["PROJECT_CONNECTION_STRING"]
3434
)
3535
```
36+
3637
### Step 2: Upload local files to your project Azure Blob Storage container
3738
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. If you create more agents in the same project that need to use the uploaded file(s), you can reuse this asset uri, avoiding the need to upload the file multiple times.
3839
```python
@@ -45,6 +46,7 @@ ds = VectorStoreDataSource(asset_identifier=asset_uri, asset_type=VectorStoreDat
4546
vector_store = project_client.agents.create_vector_store_and_poll(data_sources=[ds], name="sample_vector_store")
4647
print(f"Created vector store, vector store ID: {vector_store.id}")
4748
```
49+
4850
### Step 3: Create an agent with access to the file search tool
4951

5052
```python

0 commit comments

Comments
 (0)