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
Copy file name to clipboardExpand all lines: articles/search/search-get-started-vector.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -383,7 +383,7 @@ api-key: {{admin-api-key}}
383
383
384
384
+ Documents in the payload consist of fields defined in the index schema.
385
385
386
-
+ Vector fields contain floating point values. The dimensions attribute has a minimum of 2 and a maximum of 2048 floating point values each. This quickstart sets the dimensions attribute to 1536 because that's the size of embeddings generated by the Open AI's **text-embedding-ada-002** model.
386
+
+ Vector fields contain floating point values. The dimensions attribute has a minimum of 2 and a maximum of 3072 floating point values each. This quickstart sets the dimensions attribute to 1536 because that's the size of embeddings generated by the Open AI's **text-embedding-ada-002** model.
Copy file name to clipboardExpand all lines: articles/search/search-howto-powerapps.md
+17-21Lines changed: 17 additions & 21 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,7 +8,7 @@ ms.service: cognitive-search
8
8
ms.custom:
9
9
- ignite-2023
10
10
ms.topic: tutorial
11
-
ms.date: 02/07/2023
11
+
ms.date: 02/21/2024
12
12
---
13
13
14
14
# Tutorial: Query an Azure AI Search index from Power Apps
@@ -26,11 +26,11 @@ If you don't have an Azure subscription, open a [free account](https://azure.mic
26
26
27
27
## Prerequisites
28
28
29
-
*[Power Apps account](https://make.powerapps.com)
29
+
*[Power Apps account](https://make.powerapps.com) with a [premium license](/power-platform/admin/pricing-billing-skus#licenses), such as a Power Apps per apps plan or a Power Apps per user plan.
30
30
31
-
*[Hotels-sample index](search-get-started-portal.md) hosted on your search service
31
+
*[Hotels-sample index](search-get-started-portal.md) hosted on your search service.
32
32
33
-
*[Query API key](search-security-api-keys.md#find-existing-keys)
33
+
*[Query API key](search-security-api-keys.md#find-existing-keys).
34
34
35
35
## 1 - Create a custom connector
36
36
@@ -69,15 +69,15 @@ A connector in Power Apps is a data source connection. In this step, create a cu
69
69
70
70
* Select the verb `GET`
71
71
72
-
* For the URL, enter a sample query for your search index (`search=*` returns all documents, `$select=` lets you choose fields). The API version is required. Fully specified, a URL might look like this: `https://mydemo.search.windows.net/indexes/hotels-sample-index/docs?search=*&$select=HotelName,Description,Address/City&api-version=2020-06-30`
72
+
* For the URL, enter a sample query for your search index (`search=*` returns all documents, `$select=` lets you choose fields). The API version is required. Fully specified, a URL might look like this: `mydemo.search.windows.net/indexes/hotels-sample-index/docs?search=*&$select=HotelName,Description,Address/City&api-version=2023-11-01`. Omit the `https://` prefix.
73
73
74
-
* For Headers, type `Content-Type`. You'll set the value to `application/json` in a later step.
74
+
* For Headers, type `Content-Typeapplication/json`.
75
75
76
76
**Power Apps** uses the syntax in the URL to extract parameters from the query: search, select, and api-version parameters become configurable as you progress through the wizard.
77
77
78
78
:::image type="content" source="./media/search-howto-powerapps/1-8-1-import-from-sample.png" alt-text="Import from sample" border="true":::
79
79
80
-
1. Select **Import** to auto-fill the Request. Complete setting the parameter metadata by clicking the **...** symbol next to each of the parameters. Select **Back** to return to the Request page after each parameter update.
80
+
1. Select **Import** to autofill the Request. Complete setting the parameter metadata by clicking the **...** symbol next to each of the parameters. Select **Back** to return to the Request page after each parameter update.
81
81
82
82
:::image type="content" source="./media/search-howto-powerapps/1-8-2-import-from-sample.png" alt-text="Import from sample dialogue" border="true":::
83
83
@@ -89,7 +89,7 @@ A connector in Power Apps is a data source connection. In this step, create a cu
1. Switch back to the wizard and return to the **3. Request** step. Scroll down to the Response section. Select **"Add default response"**. This step is critical because it helps Power Apps understand the schema of the response.
109
+
1. Switch back to the wizard and return to the **3. Definition** step. Scroll down to the Response section. Select **"Add default response"**. This step is critical because it helps Power Apps understand the schema of the response.
110
110
111
111
1. Paste a sample response. An easy way to capture a sample response is through Search Explorer in the Azure portal. In Search Explorer, you should enter the same query as you did for the request, but add **$top=2** to constrain results to just two documents: `search=*&$select=HotelName,Description,Address/City&$top=2`.
112
112
@@ -149,7 +149,7 @@ A connector in Power Apps is a data source connection. In this step, create a cu
149
149
150
150
When the connector is first created, you need to reopen it from the Custom Connectors list in order to test it. Later, if you make more updates, you can test from within the wizard.
151
151
152
-
You'll need a [query API key](search-security-api-keys.md#find-existing-keys) for this task. Each time a connection is created, whether for a test run or inclusion in an app, the connector needs the query API key used for connecting to Azure AI Search.
152
+
Provide a [query API key](search-security-api-keys.md#find-existing-keys) for this task. Each time a connection is created, whether for a test run or inclusion in an app, the connector needs the query API key used for connecting to Azure AI Search.
153
153
154
154
1. On the far left, select **Custom Connectors**.
155
155
@@ -159,11 +159,9 @@ You'll need a [query API key](search-security-api-keys.md#find-existing-keys) fo
1. In the drop down list of operations, select **6. Test**.
163
163
164
-
1. Select **5. Test** to open the test page.
165
-
166
-
1. In Test Operation, select **+ New Connection**.
164
+
1. In **Test Operation**, select **+ New Connection**.
167
165
168
166
1. Enter a query API key. This is an Azure AI Search query for read-only access to an index. You can [find the key](search-security-api-keys.md#find-existing-keys) in the Azure portal.
169
167
@@ -177,13 +175,11 @@ If the test fails, recheck the inputs. In particular, revisit the sample respons
177
175
178
176
In this step, create a Power App with a search box, a search button, and a display area for the results. The Power App will connect to the recently created custom connector to get the data from Azure Search.
179
177
180
-
1. On the left, expand **Apps** > **+ New app** > **Canvas**.
1. On the left, expand **Apps** > **New app** > **Start with a page design**.
183
179
184
-
1. Select the type of application. For this tutorial, create a **Blank App** with the **Phone Layout**. Give the app a name, such as "Hotel Finder". Select **Create**. The **Power Apps Studio** appears.
180
+
1. Select a **Blank canvas** with the **Phone Layout**. Give the app a name, such as "Hotel Finder". Select **Create**. The **Power Apps Studio** appears.
185
181
186
-
1. In the studio, select the **Data Sources** tab, select **+ Add data**, and then find the new Connector you have just created. In this tutorial, it's called *AzureSearchQuery*. Select **Add a connection**.
182
+
1. In the studio, select the **Data** tab, select **Add data**, and then find the new Connector you have just created. In this tutorial, it's called *AzureSearchQuery*. Select **Add a connection**.
187
183
188
184
Enter the query API key.
189
185
@@ -255,7 +251,7 @@ When you're working in your own subscription, it's a good idea at the end of a p
255
251
256
252
You can find and manage resources in the portal, using the **All resources** or **Resource groups** link in the left-navigation pane.
257
253
258
-
If you're using a free service, remember that you're limited to three indexes, indexers, and data sources. You can delete individual items in the portal to stay under the limit.
254
+
Remember that a free search service is limited to three indexes, indexers, and data sources. You can delete individual items in the Azure portal to stay under the limit.
0 commit comments