Skip to content

Commit c204bc5

Browse files
Merge pull request #5849 from MicrosoftDocs/main
Merged by Learn.Build PR Management system
2 parents 09ec12f + 6ecd040 commit c204bc5

36 files changed

+73
-65
lines changed

articles/ai-foundry/agents/how-to/tools/file-search-upload-files.md

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ services: cognitive-services
66
manager: nitinme
77
ms.service: azure-ai-agent-service
88
ms.topic: how-to
9-
ms.date: 05/28/2025
9+
ms.date: 07/02/2025
1010
author: aahill
1111
ms.author: aahi
1212
zone_pivot_groups: selection-bing-grounding-code
@@ -78,7 +78,7 @@ file = project_client.agents.files.upload_and_poll(file_path=file_path, purpose=
7878
print(f"Uploaded file, file ID: {file.id}")
7979

8080
# Create a vector store with the uploaded file
81-
vector_store = project_client.agents.create_vector_store_and_poll(file_ids=[file.id], name="my_vectorstore")
81+
vector_store = project_client.agents.vector_stores.create_and_poll(file_ids=[file.id], name="my_vectorstore")
8282
print(f"Created vector store, vector store ID: {vector_store.id}")
8383
```
8484

@@ -134,7 +134,7 @@ if run.status == "failed":
134134
print(f"Run failed: {run.last_error}")
135135

136136
# Cleanup resources
137-
project_client.agents.delete_vector_store(vector_store.id)
137+
project_client.agents.vector_stores.delete(vector_store.id)
138138
print("Deleted vector store")
139139

140140
project_client.agents.delete_file(file_id=file.id)
@@ -145,8 +145,16 @@ print("Deleted agent")
145145

146146
# Fetch and log all messages from the thread
147147
messages = project_client.agents.messages.list(thread_id=thread.id)
148-
for message in messages.data:
149-
print(f"Role: {message.role}, Content: {message.content}")
148+
file_name = os.path.split(file_path)[-1]
149+
for msg in messages:
150+
if msg.text_messages:
151+
last_text = msg.text_messages[-1].text.value
152+
for annotation in msg.text_messages[-1].text.annotations:
153+
citation = (
154+
file_name if annotation.file_citation.file_id == file.id else annotation.file_citation.file_id
155+
)
156+
last_text = last_text.replace(annotation.text, f" [{citation}]")
157+
print(f"{msg.role}: {last_text}")
150158
```
151159
:::zone-end
152160

articles/ai-foundry/agents/how-to/virtual-networks.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ For customers without an existing virtual network, the Standard Setup with Priva
3333
:::image type="content" source="../media\private-network-isolation.png" alt-text="A diagram showing virtual network architecture.":::
3434
### Known limitations
3535

36-
- Subnet IP address limitation: only class B and C are supported
36+
- Subnet IP address limitation: both subnets must have IP ranges under `172.16.0.0/12` or `192.168.0.0/16`, i.e. class B or C address ranges reserved for private networking.
3737
- Azure Blob Storage: Using Azure Blob Storage files with the File Search tool isn't supported.
3838

3939
## Prerequisites

articles/ai-foundry/openai/authoring-reference-preview.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ description: Learn how to use Azure OpenAI's latest authoring preview REST API.
55
manager: nitinme
66
ms.service: azure-ai-openai
77
ms.topic: conceptual
8-
ms.date: 03/25/2025
8+
ms.date: 07/02/2025
99
author: mrbullwinkle
1010
ms.author: mbullwin
1111
recommendations: false

articles/ai-foundry/openai/chatgpt-quickstart.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ ms.custom: build-2023, build-2023-dataai, devx-track-python, devx-track-dotnet,
88
ms.topic: quickstart
99
author: mrbullwinkle
1010
ms.author: mbullwin
11-
ms.date: 3/21/2025
11+
ms.date: 07/02/2025
1212
zone_pivot_groups: openai-quickstart-new
1313
recommendations: false
1414
---

articles/ai-foundry/openai/concepts/abuse-monitoring.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ author: mrbullwinkle
66
ms.author: mbullwin
77
ms.service: azure-ai-openai
88
ms.topic: conceptual
9-
ms.date: 03/27/2025
9+
ms.date: 07/02/2025
1010
ms.custom: template-concept, ignite-2024
1111
manager: nitinme
1212
---

articles/ai-foundry/openai/concepts/advanced-prompt-engineering.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ author: mrbullwinkle
66
ms.author: mbullwin
77
ms.service: azure-ai-openai
88
ms.topic: conceptual
9-
ms.date: 03/26/2025
9+
ms.date: 07/02/2025
1010
manager: nitinme
1111
keywords: ChatGPT, GPT-4, meta prompts, chain of thought
1212
---

articles/ai-foundry/openai/concepts/customizing-llms.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: Azure OpenAI in Azure AI Foundry Models getting started with customizing
33
titleSuffix: Azure OpenAI
44
description: Learn more about the concepts behind customizing an LLM with Azure OpenAI.
55
ms.topic: conceptual
6-
ms.date: 03/27/2025
6+
ms.date: 07/02/2025
77
ms.service: azure-ai-openai
88
manager: nitinme
99
author: mrbullwinkle

articles/ai-foundry/openai/concepts/fine-tuning-considerations.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ description: Learn more about what you should take into consideration before fin
44
manager: nitinme
55
ms.service: azure-ai-openai
66
ms.topic: conceptual
7-
ms.date: 03/26/2025
7+
ms.date: 07/02/2025
88
author: mrbullwinkle
99
ms.author: mbullwin
1010
recommendations: false

articles/ai-foundry/openai/concepts/prompt-engineering.md

Lines changed: 16 additions & 16 deletions
Large diffs are not rendered by default.

articles/ai-foundry/openai/concepts/red-teaming.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ description: Learn about how red teaming and adversarial testing are an essentia
55
author: mrbullwinkle
66
ms.author: mbullwin
77
manager: nitinme
8-
ms.date: 03/27/2025
8+
ms.date: 07/02/2025
99
ms.service: azure-ai-openai
1010
ms.topic: conceptual
1111
ms.custom:

0 commit comments

Comments
 (0)