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/ai-services/content-safety/quickstart-groundedness.md
+8-9Lines changed: 8 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -51,7 +51,7 @@ This section walks through a sample request with cURL. Paste the command below i
51
51
"groundingSources": [
52
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
53
],
54
-
"reasoning": False
54
+
"reasoning": false
55
55
}'
56
56
```
57
57
@@ -79,7 +79,7 @@ Create a new Python file named _quickstart.py_. Open the new file in your prefer
79
79
"groundingSources": [
80
80
"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**."
@@ -157,7 +157,6 @@ The JSON objects in the output are defined here:
157
157
| Name | Description | Type |
158
158
| :------------------ | :----------- | ------- |
159
159
| **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 |
161
160
| **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 |
162
161
| **ungroundedDetails** | Provides insights into ungrounded content with specific examples and percentages.| Array |
163
162
| -**`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
188
187
189
188
### Make the API request
190
189
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:
192
191
193
192
```json
194
193
{
195
-
"Reasoning": true,
194
+
"reasoning": true,
196
195
"llmResource": {
197
196
"resourceType": "AzureOpenAI",
198
197
"azureOpenAIEndpoint": "<your_OpenAI_endpoint>",
@@ -312,13 +311,13 @@ After you submit your request, you'll receive a JSON response reflecting the Gro
312
311
{
313
312
"text": "12/hour.",
314
313
"offset": {
315
-
"utF8": 0,
316
-
"utF16": 0,
314
+
"utf8": 0,
315
+
"utf16": 0,
317
316
"codePoint": 0
318
317
},
319
318
"length": {
320
-
"utF8": 8,
321
-
"utF16": 8,
319
+
"utf8": 8,
320
+
"utf16": 8,
322
321
"codePoint": 8
323
322
},
324
323
"reason": "None. The premise mentions a pay of \"10/hour\" but does not mention \"12/hour.\" It's neutral. "
0 commit comments