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/concepts/groundedness.md
+23-23Lines changed: 23 additions & 23 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,7 @@ author: PatrickFarley
6
6
manager: nitinme
7
7
ms.service: azure-ai-content-safety
8
8
ms.topic: conceptual
9
-
ms.date: 10/16/2024
9
+
ms.date: 04/29/2025
10
10
ms.author: pafarley
11
11
---
12
12
@@ -19,19 +19,10 @@ The Groundedness detection API detects whether the text responses of large langu
19
19
-**Retrieval Augmented Generation (RAG)**: RAG is a technique for augmenting LLM knowledge with other data. LLMs can reason about wide-ranging topics, but their knowledge is limited to the public data that was available at the time they were trained. If you want to build AI applications that can reason about private data or data introduced after a model’s cutoff date, you need to provide the model with that specific information. The process of bringing the appropriate information and inserting it into the model prompt is known as Retrieval Augmented Generation (RAG). For more information, see [Retrieval-augmented generation (RAG)](https://python.langchain.com/docs/tutorials/rag/).
20
20
-**Groundedness and Ungroundedness in LLMs**: This refers to the extent to which the model's outputs are based on provided information or reflect reliable sources accurately. A grounded response adheres closely to the given information, avoiding speculation or fabrication. In groundedness measurements, source information is crucial and serves as the grounding source.
21
21
22
-
## Groundedness detection options
23
-
24
-
The following options are available for Groundedness detection in Azure AI Content Safety:
25
-
26
-
-**Domain Selection**: Users can choose an established domain to ensure more tailored detection that aligns with the specific needs of their field. The current available domains are `MEDICAL` and `GENERIC`.
27
-
-**Task Specification**: This feature lets you select the task you're doing, such as QnA (question & answering) and Summarization, with adjustable settings according to the task type.
28
-
-**Speed vs Interpretability**: There are two modes that trade off speed with result interpretability.
29
-
- Non-Reasoning mode: Offers fast detection capability; easy to embed into online applications.
30
-
- Reasoning mode: Offers detailed explanations for detected ungrounded segments; better for understanding and mitigation.
31
22
32
23
## Use cases
33
24
34
-
Groundedness detection supports text-based Summarization and QnA tasks to ensure that the generated summaries or answers are accurate and reliable. Here are some examples of each use case:
25
+
Groundedness detection supports text-based Summarization and QnA tasks to ensure that the generated summaries or answers are accurate and reliable.
35
26
36
27
**Summarization tasks**:
37
28
- Medical summarization: In the context of medical news articles, Groundedness detection can be used to ensure that the summary doesn't contain fabricated or misleading information, guaranteeing that readers obtain accurate and reliable medical information.
@@ -43,15 +34,9 @@ Groundedness detection supports text-based Summarization and QnA tasks to ensure
43
34
- Educational QnA: In educational settings, the function can be applied to QnA tasks to confirm that answers to academic questions or test prep queries are factually accurate, supporting the learning process.
44
35
45
36
46
-
## Groundedness correction
47
-
48
-
The groundedness detection API includes a correction feature that automatically corrects any detected ungroundedness in the text based on the provided grounding sources. When the correction feature is enabled, the response includes a `corrected Text` field that presents the corrected text aligned with the grounding sources.
49
-
50
-
### Use cases
51
-
52
37
Below, see several common scenarios that illustrate how and when to apply these features to achieve the best outcomes.
53
38
54
-
####Summarization in medical contexts
39
+
### Summarization in medical contexts
55
40
56
41
You're summarizing medical documents, and it’s critical that the names of patients in the summaries are accurate and consistent with the provided grounding sources.
57
42
@@ -72,7 +57,7 @@ Example API Request:
72
57
73
58
The correction feature detects that `Kevin` is ungrounded because it conflicts with the grounding source `Jane`. The API returns the corrected text: `"The patient name is Jane."`
74
59
75
-
####Question and answer (QnA) task with customer support data
60
+
### Question and answer (QnA) task with customer support data
76
61
77
62
You're implementing a QnA system for a customer support chatbot. It’s essential that the answers provided by the AI align with the most recent and accurate information available.
78
63
@@ -93,10 +78,10 @@ Example API Request:
93
78
```
94
79
**Expected outcome:**
95
80
96
-
The API detects that `5%` is ungrounded because it does not match the provided grounding source `4.5%`. The response includes the correction text: `"The interest rate is 4.5%."`
81
+
The API detects that `5%` is ungrounded because it doesn't match the provided grounding source `4.5%`. The response includes the correction text: `"The interest rate is 4.5%."`
97
82
98
83
99
-
####Content creation with historical data
84
+
### Content creation with historical data
100
85
101
86
You're creating content that involves historical data or events, where accuracy is critical to maintaining credibility and avoiding misinformation.
102
87
@@ -117,7 +102,7 @@ Example API Request:
117
102
The API detects the ungrounded date `1065` and corrects it to `1066` based on the grounding source. The response includes the corrected text: `"The Battle of Hastings occurred in 1066."`
118
103
119
104
120
-
####Internal documentation summarization
105
+
### Internal documentation summarization
121
106
122
107
You're summarizing internal documents where product names, version numbers, or other specific data points must remain consistent.
123
108
@@ -138,6 +123,21 @@ Example API Request:
138
123
139
124
The correction feature identifies `SuperWidget v2.1` as ungrounded and updates it to `SuperWidget v2.2` in the response. The response returns the corrected text: `"Our latest product is SuperWidget v2.2."`
140
125
126
+
## Groundedness detection options
127
+
128
+
The following options are available for Groundedness detection in Azure AI Content Safety:
129
+
130
+
-**Domain Selection**: Users can choose an established domain to ensure more tailored detection that aligns with the specific needs of their field. The current available domains are `MEDICAL` and `GENERIC`.
131
+
-**Task Specification**: This feature lets you select the task you're doing, such as QnA (question & answering) and Summarization, with adjustable settings according to the task type.
132
+
-**Speed vs Interpretability**: There are two modes that trade off speed with result interpretability.
133
+
- Non-Reasoning mode: Offers fast detection capability; easy to embed into online applications.
134
+
- Reasoning mode: Offers detailed explanations for detected ungrounded segments; better for understanding and mitigation.
135
+
136
+
## Groundedness correction
137
+
138
+
The groundedness detection API includes a correction feature that automatically corrects any detected ungroundedness in the text based on the provided grounding sources. When the correction feature is enabled, the response includes a `corrected Text` field that presents the corrected text aligned with the grounding sources.
139
+
140
+
141
141
## Best practices
142
142
143
143
Adhere to the following best practices when setting up RAG systems to get the best performance out of the groundedness detection API:
@@ -166,7 +166,7 @@ See [Query rates](/azure/ai-services/content-safety/overview#query-rates).
166
166
167
167
If you need a higher rate, [contact us](mailto:[email protected]) to request it.
168
168
169
-
## Next steps
169
+
## Next step
170
170
171
171
Follow the quickstart to get started using Azure AI Content Safety to detect groundedness.
0 commit comments