Skip to content

Commit 8e0485f

Browse files
committed
Added code for AR object deletion
1 parent 34232e1 commit 8e0485f

File tree

3 files changed

+51
-11
lines changed

3 files changed

+51
-11
lines changed

articles/search/includes/quickstarts/agentic-retrieval-python.md

Lines changed: 24 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ author: haileytap
44
ms.author: haileytapia
55
ms.service: azure-ai-search
66
ms.topic: include
7-
ms.date: 05/12/2025
7+
ms.date: 05/29/2025
88
---
99

1010
[!INCLUDE [Feature preview](../previews/preview-generic.md)]
@@ -27,7 +27,7 @@ This quickstart is based on the [Quickstart-Agentic-Retrieval](https://github.co
2727

2828
## Deploy models
2929

30-
To run agentic retrieval, you must deploy three models to your Azure OpenAI resource:
30+
To run agentic retrieval, you must deploy the following models to your Azure OpenAI resource:
3131

3232
+ An LLM for query planning.
3333

@@ -505,3 +505,25 @@ The output should be similar to the following example.
505505
```
506506
To find lava at night, you can look for the following signs: 1. **Active Volcanoes**: Research volcanoes that are currently active. Notable examples include Mount Etna in Italy and Kilauea in Hawaii. Both have had significant eruptions that can be observed at night due to the glow of lava. 2. **Satellite Imagery**: Use satellite imagery, especially those from sources like VIIRS (Visible Infrared Imaging Radiometer Suite) on the Suomi NPP satellite, which captures nighttime images of active lava flows. During eruptions, lava glows brightly in thermal infrared images, making it detectable from space. 3. **Safe Viewing Locations**: If you’re near an active volcano, find designated viewing areas for safety. Many national parks with volcanoes offer nighttime lava viewing experiences. 4. **Moonlight**: The presence of moonlight can enhance visibility, allowing you to spot lava flows more easily against the backdrop of the dark landscape. 5. **Monitoring Reports**: Follow updates from geological services or local authorities that monitor volcanic activity, which often provide real-time information about eruptions and visible lava flows at night. 6. **Photography**: If you're an enthusiast, consider using long-exposure photography techniques to capture the glow of lava flows at night. For more information on observing volcanic activity, satellite imagery can provide vital data for detecting lava flows and volcanic eruptions.
507507
```
508+
509+
## Clean up resources
510+
511+
When working in your own subscription, it's a good idea to finish a project by determining whether you still need the resources you created. Resources that are left running can cost you money. You can delete resources individually, or you can delete the resource group to delete the entire set of resources.
512+
513+
In the Azure portal, you can find and manage resources by selecting **All resources** or **Resource groups** from the left pane. You can also run the following code to delete the objects you created in this quickstart.
514+
515+
### Delete the knowledge agent
516+
517+
```Python
518+
index_client = SearchIndexClient(endpoint=endpoint, credential=credential)
519+
index_client.delete_agent(agent_name)
520+
print(f"Knowledge agent '{agent_name}' deleted successfully")
521+
```
522+
523+
### Delete the search index
524+
525+
```Python
526+
index_client = SearchIndexClient(endpoint=endpoint, credential=credential)
527+
index_client.delete_index(index)
528+
print(f"Index '{index_name}' deleted successfully")
529+
```

articles/search/includes/quickstarts/agentic-retrieval-rest.md

Lines changed: 26 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ author: haileytap
44
ms.author: haileytapia
55
ms.service: azure-ai-search
66
ms.topic: include
7-
ms.date: 05/12/2025
7+
ms.date: 05/29/2025
88
---
99

1010
[!INCLUDE [Feature preview](../previews/preview-generic.md)]
@@ -28,7 +28,7 @@ Although you can provide your own data, this quickstart uses [sample JSON docume
2828

2929
## Deploy models
3030

31-
To run agentic retrieval, you must deploy three models to your Azure OpenAI resource:
31+
To run agentic retrieval, you must deploy the following models to your Azure OpenAI resource:
3232

3333
+ An LLM for query planning.
3434

@@ -426,3 +426,27 @@ The output should be similar to the following JSON, where:
426426
]
427427
}
428428
```
429+
430+
## Clean up resources
431+
432+
When working in your own subscription, it's a good idea to finish a project by determining whether you still need the resources you created. Resources that are left running can cost you money. You can delete resources individually, or you can delete the resource group to delete the entire set of resources.
433+
434+
In the Azure portal, you can find and manage resources by selecting **All resources** or **Resource groups** from the left pane. You can also run the following code to delete the objects you created in this quickstart.
435+
436+
### Delete the knowledge agent
437+
438+
```HTTP
439+
### Delete the agent
440+
DELETE {{baseUrl}}/agents/{{agent-name}}?api-version={{api-version}}
441+
Content-Type: application/json
442+
Authorization: Bearer {{token}}
443+
```
444+
445+
### Delete the search index
446+
447+
```HTTP
448+
### Delete the index
449+
DELETE {{baseUrl}}/indexes/{{index-name}}?api-version={{api-version}}
450+
Content-Type: application/json
451+
Authorization: Bearer {{token}}
452+
```

articles/search/search-get-started-agentic-retrieval.md

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ author: haileytap
66
ms.author: haileytapia
77
ms.service: azure-ai-search
88
ms.topic: quickstart
9-
ms.date: 05/08/2025
9+
ms.date: 05/29/2025
1010
zone_pivot_groups: search-get-started-agentic-retrieval
1111
---
1212

@@ -24,12 +24,6 @@ zone_pivot_groups: search-get-started-agentic-retrieval
2424

2525
::: zone-end
2626

27-
## Clean up resources
28-
29-
When working in your own subscription, it's a good idea to finish a project by determining whether you still need the resources you created. Resources that are left running can cost you money. You can delete resources individually, or you can delete the resource group to delete the entire set of resources.
30-
31-
In the Azure portal, you can find and manage resources by selecting **All resources** or **Resource groups** from the left pane.
32-
3327
## Related content
3428

3529
+ [Agentic retrieval in Azure AI Search](search-agentic-retrieval-concept.md)

0 commit comments

Comments
 (0)