File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
articles/ai-services/agents/includes/azure-search Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -85,13 +85,14 @@ Get the connection ID of the Azure AI Search connection in the project. You can
85
85
86
86
``` python
87
87
# AI Search resource connection ID
88
- # This code look for the AI Search Connection ID and safe it as variable conn_id
89
- # If you have more than one AI search connection, try to stablished the value into your .env file.
88
+ # This code looks for the AI Search Connection ID and saves it as variable conn_id
89
+
90
+ # If you have more than one AI search connection, try to establish the value in your .env file.
90
91
# Extract the connection list.
91
92
conn_list = project_client.connections._list_connections()[" value" ]
92
93
conn_id = " "
93
94
94
- # Search into the metadata field the azure_ai_search type and get the id value to stablished the variable
95
+ # Search in the metadata field of each connection in the list for the azure_ai_search type and get the id value to establish the variable
95
96
for conn in conn_list:
96
97
metadata = conn[" properties" ].get(" metadata" , {})
97
98
if metadata.get(" type" , " " ).upper() == " AZURE_AI_SEARCH" :
You can’t perform that action at this time.
0 commit comments