You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -152,7 +152,7 @@ To install the packages and load the connections:
152
152
153
153
## Create a search index
154
154
155
-
In Azure AI Search, an index is a structured collection of data. The following code defines an index named `earth-at-night`, which you specified using the `index_name` variable in the previous section.
155
+
In Azure AI Search, an index is a structured collection of data. The following code defines an index named `earth_at_night`, which you specified using the `index_name` variable in the previous section.
@@ -212,7 +212,7 @@ The index schema contains fields for document identification and page content, e
212
212
213
213
## Upload documents to the index
214
214
215
-
Currently, the `earth-at-night` index is empty. Run the following code to populate the index withJSON documents fromNASA's Earth at Night e-book. As required by Azure AI Search, each document conforms to the fields and data types defined in the index schema.
215
+
Currently, the `earth_at_night` index is empty. Run the following code to populate the index withJSON documents fromNASA's Earth at Night e-book. As required by Azure AI Search, each document conforms to the fields and data types defined in the index schema.
216
216
217
217
```Python
218
218
from azure.search.documents import SearchIndexingBufferedSender
@@ -229,7 +229,7 @@ print(f"Documents uploaded to index '{index_name}'")
229
229
230
230
## Create a search agent
231
231
232
-
To connect Azure AI Search to your `gpt-4o-mini` deployment and target the `earth-at-night` index at query time, you need a search agent. The following code defines an agent named `earth-search-agent`, which you specified using the `agent_name` variable in a previous section.
232
+
To connect Azure AI Search to your `gpt-4o-mini` deployment and target the `earth_at_night` index at query time, you need a search agent. The following code defines an agent named `earth-search-agent`, which you specified using the `agent_name` variable in a previous section.
233
233
234
234
To ensure relevant and semantically meaningful responses, `default_reranker_threshold`isset to exclude responses with a reranker score of `2.5`or lower.
235
235
@@ -284,7 +284,7 @@ messages = [
284
284
285
285
You're ready to initiate the agentic retrieval pipeline. The input for this pipeline is the `messages` array, whose conversation history includes the instructions you previously provided and user queries. Additionally, `target_index_params` specifies the index to query and other configurations, such as the semantic ranker threshold.
286
286
287
-
The following code sends a two-part user query to `earth-search-agent`, which deconstructs the query into subqueries, runs the subqueries against both text fields and vector embeddings in the `earth-at-night` index, and ranks and merges the results. The response is then appended to the `messages` array.
287
+
The following code sends a two-part user query to `earth-search-agent`, which deconstructs the query into subqueries, runs the subqueries against both text fields and vector embeddings in the `earth_at_night` index, and ranks and merges the results. The response is then appended to the `messages` array.
288
288
289
289
```Python
290
290
from azure.search.documents.agent import KnowledgeAgentRetrievalClient
@@ -446,7 +446,7 @@ Suburban belts tend to display larger December brightening than urban cores, des
446
446
447
447
## Continue the conversation
448
448
449
-
Continue the conversation by sending another user query to `earth-search-agent`. The following code reruns the retrieval pipeline, fetching relevant content from the `earth-at-night` index and appending the response to the `messages` array. However, unlike before, you can now use the Azure OpenAI client to generate an answer based on the retrieved content.
449
+
Continue the conversation by sending another user query to `earth-search-agent`. The following code reruns the retrieval pipeline, fetching relevant content from the `earth_at_night` index and appending the response to the `messages` array. However, unlike before, you can now use the Azure OpenAI client to generate an answer based on the retrieved content.
@@ -36,7 +36,7 @@ To run agentic retrieval, you must deploy three models to your Azure OpenAI reso
36
36
37
37
+ (Optional) An embedding model for vector queries.
38
38
39
-
Agentic retrieval [supports several models](../../search-agentic-retrieval-how-to-create.md#supported-models), but this quickstart assumes `gpt-4o-mini` for the query-planning LLM and `text-embedding-3-large` for the embedding model. To use the answer-generating LLM, which is excluded from the REST version of this quickstart, see the Python version.
39
+
Agentic retrieval [supports several models](../../search-agentic-retrieval-how-to-create.md#supported-models), but this quickstart assumes `gpt-4o-mini` for the query-planning LLM and `text-embedding-3-large` for the embedding model. To use the answer-generating LLM, see the Python version of this quickstart.
40
40
41
41
To deploy the Azure OpenAI models:
42
42
@@ -157,7 +157,7 @@ To load the connections:
157
157
158
158
## Create a search index
159
159
160
-
In Azure AI Search, an index is a structured collection of data. Use [Create Index](/rest/api/searchservice/indexes/create) to define an index named `earth-at-night`, which you specified using the `@index-name` variable in the previous section.
160
+
In Azure AI Search, an index is a structured collection of data. Use [Create Index](/rest/api/searchservice/indexes/create) to define an index named `earth_at_night`, which you specified using the `@index-name` variable in the previous section.
161
161
162
162
```HTTP
163
163
### Create an index
@@ -247,7 +247,7 @@ The index schema contains fields for document identification and page content, e
247
247
248
248
## Upload documents to the index
249
249
250
-
Currently, the `earth-at-night` index is empty. Use [Index Documents](/rest/api/searchservice/documents/index) to populate the index with JSON documents from NASA's Earth at Night e-book. As required by Azure AI Search, each document conforms to the fields and data types defined in the index schema.
250
+
Currently, the `earth_at_night` index is empty. Use [Index Documents](/rest/api/searchservice/documents/index) to populate the index with JSON documents from NASA's Earth at Night e-book. As required by Azure AI Search, each document conforms to the fields and data types defined in the index schema.
251
251
252
252
```HTTP
253
253
### Load documents
@@ -281,7 +281,7 @@ POST {{baseUrl}}/indexes/{{index-name}}/docs/index?api-version={{api-version}}
281
281
282
282
## Create a search agent
283
283
284
-
To connect Azure AI Search to your `gpt-4o-mini` deployment and target the `earth-at-night` index at query time, you need a search agent. Use [Create Knowledge Agents](/rest/api/searchservice/knowledge-agents/create?view=rest-searchservice-2025-05-01-preview&preserve-view=true) to define an agent named `earth-search-agent`, which you specified using the `@agent-name` variable in a previous section.
284
+
To connect Azure AI Search to your `gpt-4o-mini` deployment and target the `earth_at_night` index at query time, you need a search agent. Use [Create Knowledge Agents](/rest/api/searchservice/knowledge-agents/create?view=rest-searchservice-2025-05-01-preview&preserve-view=true) to define an agent named `earth-search-agent`, which you specified using the `@agent-name` variable in a previous section.
285
285
286
286
To ensure relevant and semantically meaningful responses, `defaultRerankerThreshold` is set to exclude responses with a reranker score of `2.5` or lower.
287
287
@@ -314,7 +314,7 @@ PUT {{baseUrl}}/agents/{{agent-name}}?api-version={{api-version}} HTTP/1.1
314
314
315
315
## Run the retrieval pipeline
316
316
317
-
You're ready to initiate the agentic retrieval pipeline. Use [Knowledge Retrieval - Retrieve](/rest/api/searchservice/knowledge-retrieval/retrieve?view=rest-searchservice-2025-05-01-preview&preserve-view=true) to send a two-part user query to `earth-search-agent`, which deconstructs the query into subqueries, runs the subqueries against both text fields and vector embeddings in the `earth-at-night` index, and ranks and merges the results.
317
+
You're ready to initiate the agentic retrieval pipeline. Use [Knowledge Retrieval - Retrieve](/rest/api/searchservice/knowledge-retrieval/retrieve?view=rest-searchservice-2025-05-01-preview&preserve-view=true) to send a two-part user query to `earth-search-agent`, which deconstructs the query into subqueries, runs the subqueries against both text fields and vector embeddings in the `earth_at_night` index, and ranks and merges the results.
0 commit comments