Skip to content

Commit 66d2d69

Browse files
committed
consaf freshness
1 parent 7263dca commit 66d2d69

File tree

7 files changed

+73
-65
lines changed

7 files changed

+73
-65
lines changed

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

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ author: PatrickFarley
66
manager: nitinme
77
ms.service: azure-ai-content-safety
88
ms.topic: conceptual
9-
ms.date: 10/16/2024
9+
ms.date: 04/29/2025
1010
ms.author: pafarley
1111
---
1212

@@ -19,19 +19,10 @@ The Groundedness detection API detects whether the text responses of large langu
1919
- **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/).
2020
- **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.
2121

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.
3122

3223
## Use cases
3324

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.
3526

3627
**Summarization tasks**:
3728
- 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
4334
- 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.
4435

4536

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-
5237
Below, see several common scenarios that illustrate how and when to apply these features to achieve the best outcomes.
5338

54-
#### Summarization in medical contexts
39+
### Summarization in medical contexts
5540

5641
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.
5742

@@ -72,7 +57,7 @@ Example API Request:
7257

7358
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."`
7459

75-
#### Question and answer (QnA) task with customer support data
60+
### Question and answer (QnA) task with customer support data
7661

7762
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.
7863

@@ -93,10 +78,10 @@ Example API Request:
9378
```
9479
**Expected outcome:**
9580

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%."`
9782

9883

99-
#### Content creation with historical data
84+
### Content creation with historical data
10085

10186
You're creating content that involves historical data or events, where accuracy is critical to maintaining credibility and avoiding misinformation.
10287

@@ -117,7 +102,7 @@ Example API Request:
117102
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."`
118103

119104

120-
#### Internal documentation summarization
105+
### Internal documentation summarization
121106

122107
You're summarizing internal documents where product names, version numbers, or other specific data points must remain consistent.
123108

@@ -138,6 +123,21 @@ Example API Request:
138123

139124
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."`
140125

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+
141141
## Best practices
142142

143143
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).
166166

167167
If you need a higher rate, [contact us](mailto:[email protected]) to request it.
168168

169-
## Next steps
169+
## Next step
170170

171171
Follow the quickstart to get started using Azure AI Content Safety to detect groundedness.
172172

articles/ai-services/content-safety/concepts/harm-categories.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ manager: nitinme
77
ms.service: azure-ai-content-safety
88
ms.custom: build-2023
99
ms.topic: conceptual
10-
ms.date: 10/16/2024
10+
ms.date: 04/29/2025
1111
ms.author: pafarley
1212
---
1313

@@ -58,7 +58,7 @@ Every harm category the service applies also comes with a severity level rating.
5858
[!INCLUDE [severity-levels multimodal](../includes/severity-levels-multimodal.md)]
5959

6060

61-
## Next steps
61+
## Next step
6262

6363
Follow a quickstart to get started using Azure AI Content Safety in your application.
6464

0 commit comments

Comments
 (0)