Skip to content

Commit d7853b5

Browse files
committed
pm updates
1 parent fb053ea commit d7853b5

File tree

1 file changed

+8
-9
lines changed

1 file changed

+8
-9
lines changed

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

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ This section walks through a sample request with cURL. Paste the command below i
5151
"groundingSources": [
5252
"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**."
5353
],
54-
"reasoning": False
54+
"reasoning": false
5555
}'
5656
```
5757

@@ -79,7 +79,7 @@ Create a new Python file named _quickstart.py_. Open the new file in your prefer
7979
"groundingSources": [
8080
"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**."
8181
],
82-
"reasoning": False
82+
"reasoning": false
8383
})
8484
headers = {
8585
'Ocp-Apim-Subscription-Key': '<your_subscription_key>',
@@ -157,7 +157,6 @@ The JSON objects in the output are defined here:
157157
| Name | Description | Type |
158158
| :------------------ | :----------- | ------- |
159159
| **ungrounded** | Indicates whether the text exhibits ungroundedness. | Boolean |
160-
| **confidenceScore** | The confidence value of the _ungrounded_ designation. The score ranges from 0 to 1. | Float |
161160
| **ungroundedPercentage** | Specifies the proportion of the text identified as ungrounded, expressed as a number between 0 and 1, where 0 indicates no ungrounded content and 1 indicates entirely ungrounded content.| Float |
162161
| **ungroundedDetails** | Provides insights into ungrounded content with specific examples and percentages.| Array |
163162
| -**`Text`** | The specific text that is ungrounded. | String |
@@ -188,11 +187,11 @@ In order to use your Azure OpenAI resource to enable the reasoning feature, use
188187
189188
### Make the API request
190189
191-
In your request to the Groundedness detection API, set the `"Reasoning"` body parameter to `true`, and provide the other needed parameters:
190+
In your request to the Groundedness detection API, set the `"reasoning"` body parameter to `true`, and provide the other needed parameters:
192191
193192
```json
194193
{
195-
"Reasoning": true,
194+
"reasoning": true,
196195
"llmResource": {
197196
"resourceType": "AzureOpenAI",
198197
"azureOpenAIEndpoint": "<your_OpenAI_endpoint>",
@@ -312,13 +311,13 @@ After you submit your request, you'll receive a JSON response reflecting the Gro
312311
{
313312
"text": "12/hour.",
314313
"offset": {
315-
"utF8": 0,
316-
"utF16": 0,
314+
"utf8": 0,
315+
"utf16": 0,
317316
"codePoint": 0
318317
},
319318
"length": {
320-
"utF8": 8,
321-
"utF16": 8,
319+
"utf8": 8,
320+
"utf16": 8,
322321
"codePoint": 8
323322
},
324323
"reason": "None. The premise mentions a pay of \"10/hour\" but does not mention \"12/hour.\" It's neutral. "

0 commit comments

Comments
 (0)