Skip to content

Commit af579a0

Browse files
committed
pr fixes
1 parent 1813641 commit af579a0

File tree

1 file changed

+45
-45
lines changed

1 file changed

+45
-45
lines changed

articles/ai-services/content-safety/quickstart-groundedness.md

Lines changed: 45 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -35,27 +35,27 @@ This section walks through a sample request with cURL. Paste the command below i
3535
1. Replace `<endpoint>` with the endpoint URL associated with your resource.
3636
1. Replace `<your_subscription_key>` with one of the keys for your resource.
3737
1. Optionally, replace the `"query"` or `"text"` fields in the body with your own text you'd like to analyze.
38+
39+
40+
```shell
41+
curl --location --request POST '<endpoint>/contentsafety/text:detectGroundedness?api-version=2024-02-15-preview' \
42+
--header 'Ocp-Apim-Subscription-Key: <your_subscription_key>' \
43+
--header 'Content-Type: application/json' \
44+
--data-raw '{
45+
"domain": "Generic",
46+
"task": "QnA",
47+
"qna": {
48+
"query": "How much does she currently get paid per hour at the bank?"
49+
},
50+
"text": "12/hour",
51+
"groundingSources": [
52+
"I'm 21 years old and I need to make a decision about the next two years of my life. Within a week. I currently work for a bank that requires strict sales goals to meet. IF they aren't met three times (three months) you're canned. They pay me 10/hour and it's not unheard of to get a raise in 6ish months. The issue is, **I'm not a salesperson**. That's not my personality. I'm amazing at customer service, I have the most positive customer service \"reports\" done about me in the short time I've worked here. A coworker asked \"do you ask for people to fill these out? you have a ton\". That being said, I have a job opportunity at Chase Bank as a part time teller. What makes this decision so hard is that at my current job, I get 40 hours and Chase could only offer me 20 hours/week. Drive time to my current job is also 21 miles **one way** while Chase is literally 1.8 miles from my house, allowing me to go home for lunch. I do have an apartment and an awesome roommate that I know wont be late on his portion of rent, so paying bills with 20hours a week isn't the issue. It's the spending money and being broke all the time.\n\nI previously worked at Wal-Mart and took home just about 400 dollars every other week. So I know i can survive on this income. I just don't know whether I should go for Chase as I could definitely see myself having a career there. I'm a math major likely going to become an actuary, so Chase could provide excellent opportunities for me **eventually**."
53+
],
54+
"reasoning": False
55+
}'
56+
```
3857

39-
40-
```shell
41-
curl --location --request POST '<endpoint>/contentsafety/text:detectGroundedness?api-version=2024-02-15-preview' \
42-
--header 'Ocp-Apim-Subscription-Key: <your_subscription_key>' \
43-
--header 'Content-Type: application/json' \
44-
--data-raw '{
45-
"domain": "Generic",
46-
"task": "QnA",
47-
"qna": {
48-
"query": "How much does she currently get paid per hour at the bank?"
49-
},
50-
"text": "12/hour",
51-
"groundingSources": [
52-
"I'm 21 years old and I need to make a decision about the next two years of my life. Within a week. I currently work for a bank that requires strict sales goals to meet. IF they aren't met three times (three months) you're canned. They pay me 10/hour and it's not unheard of to get a raise in 6ish months. The issue is, **I'm not a salesperson**. That's not my personality. I'm amazing at customer service, I have the most positive customer service \"reports\" done about me in the short time I've worked here. A coworker asked \"do you ask for people to fill these out? you have a ton\". That being said, I have a job opportunity at Chase Bank as a part time teller. What makes this decision so hard is that at my current job, I get 40 hours and Chase could only offer me 20 hours/week. Drive time to my current job is also 21 miles **one way** while Chase is literally 1.8 miles from my house, allowing me to go home for lunch. I do have an apartment and an awesome roommate that I know wont be late on his portion of rent, so paying bills with 20hours a week isn't the issue. It's the spending money and being broke all the time.\n\nI previously worked at Wal-Mart and took home just about 400 dollars every other week. So I know i can survive on this income. I just don't know whether I should go for Chase as I could definitely see myself having a career there. I'm a math major likely going to become an actuary, so Chase could provide excellent opportunities for me **eventually**."
53-
],
54-
"reasoning": False
55-
}'
56-
```
57-
58-
Open a command prompt and run the cURL command.
58+
1. Open a command prompt and run the cURL command.
5959

6060

6161
#### [Python](#tab/python)
@@ -208,31 +208,31 @@ This section walks through a sample request with cURL. Paste the command below i
208208
1. Replace `<endpoint>` with the endpoint URL associated with your resource.
209209
1. Replace `<your_subscription_key>` with one of the keys for your resource.
210210
1. Optionally, replace the `"query"` or `"text"` fields in the body with your own text you'd like to analyze.
211-
212-
213-
```shell
214-
curl --location --request POST '<endpoint>/contentsafety/text:detectGroundedness?api-version=2024-02-15-preview' \
215-
--header 'Ocp-Apim-Subscription-Key: <your_subscription_key>' \
216-
--header 'Content-Type: application/json' \
217-
--data-raw '{
218-
"domain": "Generic",
219-
"task": "QnA",
220-
"qna": {
221-
"query": "How much does she currently get paid per hour at the bank?"
222-
},
223-
"text": "12/hour",
224-
"groundingSources": [
225-
"I'm 21 years old and I need to make a decision about the next two years of my life. Within a week. I currently work for a bank that requires strict sales goals to meet. IF they aren't met three times (three months) you're canned. They pay me 10/hour and it's not unheard of to get a raise in 6ish months. The issue is, **I'm not a salesperson**. That's not my personality. I'm amazing at customer service, I have the most positive customer service \"reports\" done about me in the short time I've worked here. A coworker asked \"do you ask for people to fill these out? you have a ton\". That being said, I have a job opportunity at Chase Bank as a part time teller. What makes this decision so hard is that at my current job, I get 40 hours and Chase could only offer me 20 hours/week. Drive time to my current job is also 21 miles **one way** while Chase is literally 1.8 miles from my house, allowing me to go home for lunch. I do have an apartment and an awesome roommate that I know wont be late on his portion of rent, so paying bills with 20hours a week isn't the issue. It's the spending money and being broke all the time.\n\nI previously worked at Wal-Mart and took home just about 400 dollars every other week. So I know i can survive on this income. I just don't know whether I should go for Chase as I could definitely see myself having a career there. I'm a math major likely going to become an actuary, so Chase could provide excellent opportunities for me **eventually**."
226-
],
227-
"reasoning": true,
228-
"llmResource": {
229-
"resourceType": "AzureOpenAI",
230-
"azureOpenAIEndpoint": "<your_OpenAI_endpoint>",
231-
"azureOpenAIDeploymentName": "<your_deployment_name>"
232-
}'
233-
```
234-
235-
Open a command prompt and run the cURL command.
211+
212+
213+
```shell
214+
curl --location --request POST '<endpoint>/contentsafety/text:detectGroundedness?api-version=2024-02-15-preview' \
215+
--header 'Ocp-Apim-Subscription-Key: <your_subscription_key>' \
216+
--header 'Content-Type: application/json' \
217+
--data-raw '{
218+
"domain": "Generic",
219+
"task": "QnA",
220+
"qna": {
221+
"query": "How much does she currently get paid per hour at the bank?"
222+
},
223+
"text": "12/hour",
224+
"groundingSources": [
225+
"I'm 21 years old and I need to make a decision about the next two years of my life. Within a week. I currently work for a bank that requires strict sales goals to meet. IF they aren't met three times (three months) you're canned. They pay me 10/hour and it's not unheard of to get a raise in 6ish months. The issue is, **I'm not a salesperson**. That's not my personality. I'm amazing at customer service, I have the most positive customer service \"reports\" done about me in the short time I've worked here. A coworker asked \"do you ask for people to fill these out? you have a ton\". That being said, I have a job opportunity at Chase Bank as a part time teller. What makes this decision so hard is that at my current job, I get 40 hours and Chase could only offer me 20 hours/week. Drive time to my current job is also 21 miles **one way** while Chase is literally 1.8 miles from my house, allowing me to go home for lunch. I do have an apartment and an awesome roommate that I know wont be late on his portion of rent, so paying bills with 20hours a week isn't the issue. It's the spending money and being broke all the time.\n\nI previously worked at Wal-Mart and took home just about 400 dollars every other week. So I know i can survive on this income. I just don't know whether I should go for Chase as I could definitely see myself having a career there. I'm a math major likely going to become an actuary, so Chase could provide excellent opportunities for me **eventually**."
226+
],
227+
"reasoning": true,
228+
"llmResource": {
229+
"resourceType": "AzureOpenAI",
230+
"azureOpenAIEndpoint": "<your_OpenAI_endpoint>",
231+
"azureOpenAIDeploymentName": "<your_deployment_name>"
232+
}'
233+
```
234+
235+
1. Open a command prompt and run the cURL command.
236236
237237
238238
#### [Python](#tab/python)

0 commit comments

Comments
 (0)