Skip to content

Commit 2e6836c

Browse files
Merge pull request #1998 from fosteramanda/release-azure-agents
Release azure agents
2 parents 922f246 + d6f3adc commit 2e6836c

File tree

2 files changed

+3
-16
lines changed

2 files changed

+3
-16
lines changed

articles/ai-services/agents/includes/azure-search/setup.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ If you already connected the AI Search resource that contains the index you want
3939
:::image type="content" source="../../media/tools/ai-search/azure-portal.png" alt-text="A screenshot of an AI Search resource Keys tab in the Azure portal." lightbox="../../media/tools/ai-search/azure-portal.png":::
4040

4141
##### Create an Azure AI Search project connection
42+
If you use Microsoft Entra ID for the connection authentication type, you need to manually assign the project managed identity the roles Search Index Data Contributor and Search Service Contributor to the Azure AI Search resource.
4243

4344
# [Azure CLI](#tab/azurecli)
4445
**Create the following connections.yml file**
@@ -102,3 +103,4 @@ ml_client.connections.create_or_update(my_connection)
102103
:::image type="content" source="../../media/tools/ai-search/success-connection.png" alt-text="A screenshot of the project connections page with a new Azure AI Search connection added." lightbox="../../media/tools/ai-search/success-connection.png":::
103104
---
104105

106+
Now that you have created a project connection to your Azure AI Search resource, you can configure and start using the Azure AI Search tool with the SDK. See the code examples tab to get started.

articles/ai-services/agents/includes/file-search/deep-dive.md

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -95,19 +95,4 @@ vector_store = project_client.agents.create_vector_store_and_poll(
9595

9696
Vector stores created using thread helpers (like `tool_resources.file_search.vector_stores` in Threads or `message.attachments` in Messages) have a default expiration policy of seven days after they were last active (defined as the last time the vector store was part of a run).
9797

98-
When a vector store expires, the runs on that thread fail. To fix this issue, you can recreate a new vector_store with the same files and reattach it to the thread.
99-
100-
```python
101-
all_files = list(client.beta.vector_stores.files.list("vs_expired"))
102-
103-
vector_store = client.beta.vector_stores.create(name="rag-store")
104-
client.beta.threads.update(
105-
"thread_abc123",
106-
tool_resources={"file_search": {"vector_store_ids": [vector_store.id]}},
107-
)
108-
109-
for file_batch in chunked(all_files, 100):
110-
client.beta.vector_stores.file_batches.create_and_poll(
111-
vector_store_id=vector_store.id, file_ids=[file.id for file in file_batch]
112-
)
113-
```
98+
When a vector store expires, the runs on that thread fail. To fix this issue, you can recreate a new vector_store with the same files and reattach it to the thread.

0 commit comments

Comments
 (0)