Skip to content

Commit 9c63333

Browse files
Merge pull request #6458 from laujan/azure-portal-endpoint
update azure portal endpoint
2 parents b560f75 + 52586b0 commit 9c63333

File tree

7 files changed

+248
-248
lines changed

7 files changed

+248
-248
lines changed

articles/ai-services/language-service/question-answering/how-to/authoring.md

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

articles/ai-services/language-service/question-answering/how-to/export-import-refresh.md

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ ms.topic: how-to
77
author: laujan
88
ms.author: lajanuar
99
recommendations: false
10-
ms.date: 06/21/2025
10+
ms.date: 08/07/2025
1111
---
1212
# Export-import-refresh in custom question answering
1313

@@ -19,7 +19,7 @@ You might want to create a copy of your custom question answering project or rel
1919

2020
## Prerequisites
2121

22-
* If you don't have an Azure subscription, create a [free account](https://azure.microsoft.com/free/cognitive-services/) before you begin.
22+
* An Azure subscription. You can [create one for free](https://azure.microsoft.com/free/cognitive-services/) before you begin.
2323
* A [language resource](https://aka.ms/create-language-resource) with the custom question answering feature enabled. Remember your Microsoft Entra ID, Subscription, language resource name you selected when you created the resource.
2424

2525
## Export a project
@@ -28,9 +28,9 @@ You might want to create a copy of your custom question answering project or rel
2828

2929
2. Scroll down to the **Answer questions** section and select **Open custom question answering**.
3030

31-
3. Select the project you wish to export > Select **Export** > You’ll have the option to export as an **Excel** or **TSV** file.
31+
3. Select the project you wish to export > Select **Export** > You can export the project as an **Excel** or **TSV** file.
3232

33-
4. You’ll be prompted to save your exported file locally as a zip file.
33+
4. You're prompted to save your exported file locally as a zip file.
3434

3535
### Export a project programmatically
3636

@@ -46,9 +46,9 @@ To automate the export process, use the [export functionality of the authoring A
4646

4747
4. Select Choose File and browse to the local zipped copy of your project that you exported previously.
4848

49-
5. Provide a unique name for the project youre importing.
49+
5. Provide a unique name for the project you're importing.
5050

51-
6. Remember that a project that has only been imported still needs to be deployed/published if you want it to be live.
51+
6. Remember that a project that is only imported still needs to be deployed/published if you want it to be live.
5252

5353
### Import a project programmatically
5454

@@ -62,7 +62,7 @@ To automate the import process, use the [import functionality of the authoring A
6262

6363
3. Select the project that contains the source you want to refresh > select manage sources.
6464

65-
4. We recommend having a backup of your project/question answer pairs prior to running each refresh so that you can always roll-back if needed.
65+
4. We recommend having a backup of your project/question answer pairs before running each refresh so that you can always roll back if needed.
6666

6767
5. Select a URL-based source to refresh > Select **Refresh URL**.
6868
6. Only one URL can be refreshed at a time.
@@ -75,7 +75,7 @@ The update sources example in the [Authoring API docs](./authoring.md#update-sou
7575

7676
|Variable name | Value |
7777
|--------------------------|-------------|
78-
| `ENDPOINT` | This value can be found in the **Keys & Endpoint** section when examining your resource from the Azure portal. Alternatively you can find the value in **Language Studio** > **question answering** > **Deploy project** > **Get prediction URL**. An example endpoint is: `https://southcentralus.api.cognitive.microsoft.com/`. If this was your endpoint in the following code sample, you would only need to add the region-specific portion of `southcentral` as the rest of the endpoint path is already present.|
78+
| `ENDPOINT` | This value can be found in the **Keys & Endpoint** section when examining your resource from the Azure portal. Alternatively you can find the value in **Language Studio** > **question answering** > **Deploy project** > **Get prediction URL**. An example endpoint is: `https://southcentralus.cognitiveservices.azure.com/` and you only need to add the region-specific portion of `southcentral`. The endpoint path is already present.|
7979
| `API-KEY` | This value can be found in the **Keys & Endpoint** section when examining your resource from the Azure portal. You can use either Key1 or Key2. Always having two valid keys allows for secure key rotation with zero downtime. Alternatively you can find the value in **Language Studio** > **question answering** > **Deploy project** > **Get prediction URL**. The key value is part of the sample request.|
8080
| `PROJECT-NAME` | The name of project where you would like to update sources.|
8181

@@ -90,12 +90,12 @@ curl -X PATCH -H "Ocp-Apim-Subscription-Key: {API-KEY}" -H "Content-Type: applic
9090
"refresh": "true"
9191
}
9292
}
93-
]' -i 'https://{ENDPOINT}.api.cognitive.microsoft.com/language/query-knowledgebases/projects/{PROJECT-NAME}/sources?api-version=2021-10-01'
93+
]' -i 'https://{ENDPOINT}.cognitiveservices.azure.com/language/query-knowledgebases/projects/{PROJECT-NAME}/sources?api-version=2021-10-01'
9494
```
9595

9696
## Export questions and answers
9797

98-
Its also possible to export/import a specific project of question and answers rather than the entire custom question answering project.
98+
It's also possible to export/import a specific project of question and answers rather than the entire custom question answering project.
9999

100100
1. Sign in to the [Language Studio](https://language.azure.com/) with your Azure credentials.
101101

@@ -105,16 +105,16 @@ It’s also possible to export/import a specific project of question and answers
105105

106106
4. Select **Edit project**.
107107

108-
5. To the right of show columns are `...` an ellipsis button. > Select the `...` > a dropdown will reveal the option to export/import questions and answers.
108+
5. To the right of show columns are `...` an ellipsis button. > Select the `...` > a dropdown reveals the option to export/import questions and answers.
109109

110-
Depending on the size of your web browser, you may experience the UI differently. Smaller browsers will see two separate ellipsis buttons.
110+
Depending on the size of your web browser, you may experience the UI differently. Smaller browsers see two separate ellipsis buttons.
111111

112112
> [!div class="mx-imgBorder"]
113113
> ![Screenshot of selecting multiple UI ellipsis buttons to get to import/export question and answer pair option](../media/export-import-refresh/export-questions.png)
114114
115115
## Import questions and answers
116116

117-
Its also possible to export/import a specific project of question and answers rather than the entire custom question answering project.
117+
It's also possible to export/import a specific project of question and answers rather than the entire custom question answering project.
118118

119119
1. Sign in to the [Language Studio](https://language.azure.com/) with your Azure credentials.
120120

@@ -124,9 +124,9 @@ It’s also possible to export/import a specific project of question and answers
124124

125125
4. Select **Edit project**.
126126

127-
5. To the right of show columns are `...` an ellipsis button. > Select the `...` > a dropdown will reveal the option to export/import questions and answers.
127+
5. To the right of show columns are `...` an ellipsis button. > Select the `...` > a dropdown reveals the option to export/import questions and answers.
128128

129-
Depending on the size of your web browser, you may experience the UI differently. Smaller browsers will see two separate ellipsis buttons.
129+
Depending on the size of your web browser, you may experience the UI differently. Smaller browsers see two separate ellipsis buttons.
130130

131131
> [!div class="mx-imgBorder"]
132132
> ![Screenshot of selecting multiple UI ellipsis buttons to get to import/export question and answer pair option](../media/export-import-refresh/export-questions.png)

articles/ai-services/language-service/question-answering/how-to/prebuilt.md

Lines changed: 100 additions & 100 deletions
Original file line numberDiff line numberDiff line change
@@ -6,31 +6,31 @@ ms.service: azure-ai-language
66
author: laujan
77
ms.author: lajanuar
88
ms.topic: how-to
9-
ms.date: 06/21/2025
9+
ms.date: 08/07/2025
1010
---
1111

1212
# Prebuilt API
1313

14-
The custom question answering **prebuilt API** provides you the capability to answer questions based on a passage of text without having to create projects, maintain question and answer pairs, or incurring costs for underutilized infrastructure. This functionality is provided as an API and can be used to meet question and answering needs without having to learn the details about custom question answering.
14+
The custom question answering **prebuilt API** provides you with the capability to answer questions based on a passage of text without having to create projects, maintain question and answer pairs, or incurring costs for underutilized infrastructure. This functionality is provided as an API and can be used to meet question and answering needs without having to learn the details about custom question answering.
1515

16-
Given a user query and a block of text/passage the API will return an answer and precise answer (if available).
16+
Given a user query and a block of text/passage the API returns an answer and precise answer (if available).
1717

1818
## Example API usage
1919

20-
Imagine that you have one or more blocks of text from which you would like to get answers for a given question. Normally you would have had to create as many sources as the number of blocks of text. However, now with the prebuilt API you can query the blocks of text without having to define content sources in a project.
20+
Imagine that you have one or more blocks of text from which you would like to get answers for a given question. Normally you have to create as many sources as the number of blocks of text. However, now with the prebuilt API you can query the blocks of text without having to define content sources in a project.
2121

2222
Some other scenarios where this API can be used are:
2323

24-
* You are developing an ebook reader app for end users, which allows them to highlight text, enter a question and find answers over a highlighted passage of text.
24+
* You're developing an ebook reader app for end users, which allows them to highlight text, enter a question and find answers over a highlighted passage of text.
2525
* A browser extension that allows users to ask a question over the content being currently displayed on the browser page.
2626
* A health bot that takes queries from users and provides answers based on the medical content that the bot identifies as most relevant to the user query.
2727

28-
Below is an example of a sample request:
28+
Here's an example of a sample request:
2929

3030
## Sample request
3131

3232
```
33-
POST https://{Unique-to-your-endpoint}.api.cognitive.microsoft.com/language/:query-text
33+
POST https://{Unique-to-your-endpoint}.cognitiveservices.azure.com/language/:query-text
3434
```
3535

3636
### Sample query over a single block of text
@@ -50,7 +50,7 @@ Request Body
5050
"records": [
5151
{
5252
"id": "1",
53-
"text": "Power and charging. It takes two to four hours to charge the Surface Pro 4 battery fully from an empty state. It can take longer if youre using your Surface for power-intensive activities like gaming or video streaming while youre charging it."
53+
"text": "Power and charging. It takes two to four hours to charge the Surface Pro 4 battery fully from an empty state. It can take longer if you're using your Surface for power-intensive activities like gaming or video streaming while you're charging it."
5454
},
5555
{
5656
"id": "2",
@@ -65,7 +65,7 @@ Request Body
6565

6666
## Sample response
6767

68-
In the above request body, we query over a single block of text. A sample response received for the above query is shown below,
68+
In the request body, we query over a single block of text. Here's a sample response received for the query:
6969

7070
```json
7171
{
@@ -75,7 +75,7 @@ In the above request body, we query over a single block of text. A sample respon
7575
"body": {
7676
"answers": [
7777
{
78-
"answer": "Power and charging. It takes two to four hours to charge the Surface Pro 4 battery fully from an empty state. It can take longer if youre using your Surface for power-intensive activities like gaming or video streaming while youre charging it.",
78+
"answer": "Power and charging. It takes two to four hours to charge the Surface Pro 4 battery fully from an empty state. It can take longer if you're using your Surface for power-intensive activities like gaming or video streaming while you're charging it.",
7979
"confidenceScore": 0.93,
8080
"id": "1",
8181
"answerSpan": {
@@ -88,7 +88,7 @@ In the above request body, we query over a single block of text. A sample respon
8888
"length": 224
8989
},
9090
{
91-
"answer": "It takes two to four hours to charge the Surface Pro 4 battery fully from an empty state. It can take longer if youre using your Surface for power-intensive activities like gaming or video streaming while youre charging it.",
91+
"answer": "It takes two to four hours to charge the Surface Pro 4 battery fully from an empty state. It can take longer if you're using your Surface for power-intensive activities like gaming or video streaming while you're charging it.",
9292
"confidenceScore": 0.92,
9393
"id": "1",
9494
"answerSpan": {
@@ -101,7 +101,7 @@ In the above request body, we query over a single block of text. A sample respon
101101
"length": 224
102102
},
103103
{
104-
"answer": "It can take longer if youre using your Surface for power-intensive activities like gaming or video streaming while youre charging it.",
104+
"answer": "It can take longer if you're using your Surface for power-intensive activities like gaming or video streaming while you're charging it.",
105105
"confidenceScore": 0.05,
106106
"id": "1",
107107
"answerSpan": null,
@@ -128,97 +128,97 @@ These numbers represent the **per individual API call limits**:
128128
* Maximum three responses per document.
129129

130130
### Language codes supported
131-
The following language codes are supported by Prebuilt API. These language codes are in accordance to the [ISO 639-1 codes standard](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes).
131+
The following language codes support the Prebuilt API. These language codes are in accordance to the [ISO 639-1 codes standard](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes).
132132

133133
Language code|Language
134134
----|----
135-
af|Afrikaans
136-
am|Amharic
137-
ar|Arabic
138-
as|Assamese
139-
az|Azerbaijani
140-
ba|Bashkir
141-
be|Belarusian
142-
bg|Bulgarian
143-
bn|Bengali
144-
ca|Catalan, Valencian
145-
ckb|Central Kurdish
146-
cs|Czech
147-
cy|Welsh
148-
da|Danish
149-
de|German
150-
el|Greek, Modern (1453–)
151-
en|English
152-
eo|Esperanto
153-
es|Spanish, Castilian
154-
et|Estonian
155-
eu|Basque
156-
fa|Persian
157-
fi|Finnish
158-
fr|French
159-
ga|Irish
160-
gl|Galician
161-
gu|Gujarati
162-
he|Hebrew
163-
hi|Hindi
164-
hr|Croatian
165-
hu|Hungarian
166-
hy|Armenian
167-
id|Indonesian
168-
is|Icelandic
169-
it|Italian
170-
ja|Japanese
171-
ka|Georgian
172-
kk|Kazakh
173-
km|Central Khmer
174-
kn|Kannada
175-
ko|Korean
176-
ky|Kirghiz, Kyrgyz
177-
la|Latin
178-
lo|Lao
179-
lt|Lithuanian
180-
lv|Latvian
181-
mk|Macedonian
182-
ml|Malayalam
183-
mn|Mongolian
184-
mr|Marathi
185-
ms|Malay
186-
mt|Maltese
187-
my|Burmese
188-
ne|Nepali
189-
nl|Dutch, Flemish
190-
nn|Norwegian Nynorsk
191-
no|Norwegian
192-
or|Odia
193-
pa|Punjabi, Panjabi
194-
pl|Polish
195-
ps|Pashto, Pushto
196-
pt|Portuguese
197-
ro|Romanian
198-
ru|Russian
199-
sa|Sanskrit
200-
sd|Sindhi
201-
si|Sinhala, Sinhalese
202-
sk|Slovak
203-
sl|Slovenian
204-
sq|Albanian
205-
sr|Serbian
206-
sv|Swedish
207-
sw|Swahili
208-
ta|Tamil
209-
te|Telugu
210-
tg|Tajik
211-
th|Thai
212-
tl|Tagalog
213-
tr|Turkish
214-
tt|Tatar
215-
ug|Uighur, Uyghur
216-
uk|Ukrainian
217-
ur|Urdu
218-
uz|Uzbek
219-
vi|Vietnamese
220-
yi|Yiddish
221-
zh|Chinese
135+
`af`|Afrikaans
136+
`am`|Amharic
137+
`ar`|Arabic
138+
`as`|Assamese
139+
`az`|Azerbaijani
140+
`ba`|Bashkir
141+
`be`|Belarusian
142+
`bg`|Bulgarian
143+
`bn`|Bengali
144+
`ca`|Catalan
145+
`ckb`|Central Kurdish
146+
`cs`|Czech
147+
`cy`|Welsh
148+
`da`|Danish
149+
`de`|German
150+
`el`|Greek, Modern (1453–)
151+
`en`|English
152+
`eo`|Esperanto
153+
`es`|Spanish, Castilian
154+
`et`|Estonian
155+
`eu`|Basque
156+
`fa`|Persian
157+
`fi`|Finnish
158+
`fr`|French
159+
`ga`|Irish
160+
`gl`|Galician
161+
`gu`|Gujarati
162+
`he`|Hebrew
163+
`hi`|Hindi
164+
`hr`|Croatian
165+
`hu`|Hungarian
166+
`hy`|Armenian
167+
`id`|Indonesian
168+
`is`|Icelandic
169+
`it`|Italian
170+
`ja`|Japanese
171+
`ka`|Georgian
172+
`kk`|Kazakh
173+
`km`|Central Khmer
174+
`kn`|Kannada
175+
`ko`|Korean
176+
`ky`|Kirghiz, Kyrgyz
177+
`la`|Latin
178+
`lo`|Lao
179+
`lt`|Lithuanian
180+
`lv`|Latvian
181+
`mk`|Macedonian
182+
`ml`|Malayalam
183+
`mn`|Mongolian
184+
`mr`|Marathi
185+
`ms`|Malay
186+
`mt`|Maltese
187+
`my`|Burmese
188+
`ne`|Nepali
189+
`nl`|Dutch, Flemish
190+
`nn`|Norwegian Nynorsk
191+
`no`|Norwegian
192+
`or`|Odia
193+
`pa`|Punjabi, Punjabi
194+
`pl`|Polish
195+
`ps`|Pashto, Pushto
196+
`pt`|Portuguese
197+
`ro`|Romanian
198+
`ru`|Russian
199+
`sa`|Sanskrit
200+
`sd`|Sindhi
201+
`si`|Sinhala, Singhalese
202+
`sk`|Slovak
203+
`sl`|Slovenian
204+
`sq`|Albanian
205+
`sr`|Serbian
206+
`sv`|Swedish
207+
`sw`|Swahili
208+
`ta`|Tamil
209+
`te`|Telugu
210+
`tg`|Tajik
211+
`th`|Thai
212+
`tl`|Tagalog
213+
`tr`|Turkish
214+
`tt`|Tatar
215+
`ug`|Uighur, Uyghur
216+
`uk`|Ukrainian
217+
`ur`|Urdu
218+
`uz`|Uzbek
219+
`vi`|Vietnamese
220+
`yi`|Yiddish
221+
`zh`|Chinese
222222

223223
## Prebuilt API reference
224224

0 commit comments

Comments
 (0)