# LingSante MedGuard: 14,588-Row Dataset for Medical AI Safety Testing

> LingSante MedGuard is a 14,588-row dataset on Hugging Face for evaluating medical AI model responses for safety, compliance, and ethical risks.

- URL: https://sciherald.com/article/lingsante-medguard-14-588-row-dataset-for-medical-ai-safety-testing
- Publisher: Sci Herald Editorial Desk
- Published: 2026-11-29
- Topic: Artificial Intelligence
- Hugging Face repository: inclusionAI/LingSante-MedGuard
- Publisher: inclusionAI
- Source: https://huggingface.co/datasets/inclusionAI/LingSante-MedGuard

> **TL;DR:** The LingSante MedGuard dataset provides 14,588 records for testing AI responses in medical contexts. It is designed for developers and researchers building safety guardrails for healthcare AI applications.

**Key Facts**
- **Publisher:** inclusionAI
- **Release Date:** November 18, 2026
- **Dataset Size:** 14,588 rows across three JSONL files
- **Task:** Text-classification for medical risk detection
- **Popularity:** 137 likes and 382 downloads in the last 30 days on Hugging Face

## What's Inside

The LingSante MedGuard dataset is structured into three distinct JSONL files, each targeting a specific category of risk in medical AI interactions. The dataset contains a total of 14,588 records and includes 578 associated images.

| File | Format | Records | Evaluation Focus |
|---|---|---:|---|
| LingSante MedGuard-Safety.jsonl | JSONL | 10,248 | Patient harm or delayed care, including drug interactions, contraindications, and misinterpretation of test results |
| LingSante MedGuard-Compliance.jsonl | JSONL | 3,808 | Conflicts with applicable professional requirements, rules, and procedures |
| LingSante MedGuard-Ethics.jsonl | JSONL | 532 | Conflicts with ethical principles and safeguards in medical contexts |

Each record contains several fields that provide context for evaluation:
- `user_question`: Case information or medication task
- `model_response`: Candidate response under review (omitted for Rx-I and Rx-C records)
- `label`: Reference `safe` or `unsafe` label
- `images`: Paths to associated images, relative to the repository root
- `source`: Benchmark subset identifier
- `upstream_dataset`: Upstream dataset name

The dataset viewer on Hugging Face organizes the `safety`, `compliance`, and `ethics` subsets under the `test` split.

## What It's For

LingSante MedGuard is specifically designed for evaluating medical AI systems' responses across three critical dimensions: safety, compliance, and ethics. The dataset serves as a benchmark to test whether AI responses could potentially cause patient harm, violate professional guidelines, or conflict with ethical principles in healthcare contexts.

According to the associated technical paper published on arXiv, the dataset was used to evaluate several LingSante MedGuard models of varying sizes (4B, 9B, and 27B parameters). The 27B parameter model achieved the highest performance with an Overall-Full F1 score of 87.4% and an Overall-Text F1 score of 86.5% across multiple risk-detection benchmarks.

| Model | Overall-Full F1 (%) | Overall-Text F1 (%) | Same-size Qwen3.5 Overall-Full F1 (%) |
|---|---:|---:|---:|
| LingSante MedGuard 4B | 82.3 | 80.4 | 76.3 |
| LingSante MedGuard 9B | 82.4 | 80.3 | 73.8 |
| LingSante MedGuard 27B | **87.4** | **86.5** | 78.7 |

This dataset enables developers to create and test medical guardrail systems that can identify potentially harmful AI responses before they reach patients or healthcare professionals.

## How to Load It

The dataset can be easily loaded using the Hugging Face `datasets` library with the following Python code:

```python
from datasets import load_dataset

ds = load_dataset("inclusionAI/LingSante-MedGuard")
```

For those who prefer to download the files directly, the repository provides a command-line option using the Hugging Face Hub library:

```bash
python -m pip install -U huggingface_hub
hf download inclusionAI/LingSante-MedGuard --repo-type dataset --local-dir /absolute/path/to/LingSante-MedGuard
```

The dataset also offers API access through both Mainland China and global platforms for users who prefer to access the models via HTTP requests rather than working with the dataset directly.

## License and Usage

The LingSante MedGuard dataset operates under a mixed license structure. The project code and original annotations and adaptations are licensed under Apache-2.0, while third-party data and images remain subject to their original licenses and terms. Users should review the LICENSE and NOTICE files in the repository for specific details about usage rights and restrictions.

This licensing approach means that while the curation and structuring of the dataset is open for commercial and research use, some individual components may have additional restrictions based on their original sources.

## Limitations

The dataset card does not explicitly discuss limitations, biases, or potential issues with data provenance. Users should exercise appropriate caution when using this dataset, particularly given the sensitive nature of medical applications. As with any AI dataset, especially in healthcare contexts, thorough testing and validation against real-world scenarios is recommended before deployment in production systems.

The dataset aggregates content from multiple upstream sources including HealthBench, MedHallTune, MedSafetyBench, RxSafeBench, and MedRepBench, which may introduce variability in data quality and annotation standards across different subsets.

## Related on Sci Herald

- [EVIDENT Dataset: 220 Grounded GUI Agent Tasks for Korean and English Evaluation](/article/evident-dataset-220-grounded-gui-agent-tasks-for-korean-and-english-evaluation)
- [ThreeJS 3D Scenes Dataset: 4,146 Examples for AI Code Generation](/article/threejs-3d-scenes-dataset-4-146-examples-for-ai-code-generation)
- [Amazon Berkeley Objects GLB: 3D Furniture Dataset for Web and Game Developers](/article/amazon-berkeley-objects-glb-3d-furniture-dataset-for-web-and-game-developers)
- [Trending AI Datasets this week](/trending/datasets)

## Frequently Asked Questions

### What is the size of the LingSante MedGuard dataset?
The LingSante MedGuard dataset contains 14,588 rows distributed across three JSONL files, with an additional 578 associated images. The safety subset contains 10,248 records, compliance has 3,808 records, and ethics includes 532 records.

### Is LingSante MedGuard free for commercial use?
The project code and original annotations are licensed under Apache-2.0, which generally allows commercial use. However, third-party data and images remain subject to their original licenses, so users must check the specific terms for each component before commercial deployment.

### What types of medical risks does LingSante MedGuard detect?
The dataset evaluates three categories of risks: safety risks (patient harm or delayed care), compliance risks (conflicts with professional requirements), and ethics risks (conflicts with ethical principles in medical contexts).

### How does LingSante MedGuard compare to other medical AI safety datasets?
According to the technical report, the LingSante MedGuard models outperformed same-size Qwen3.5 models on overall risk detection, with the 27B parameter model achieving an 87.4% F1 score across 11 risk-detection benchmarks.

### Can I use LingSante MedGuard via an API instead of downloading it?
Yes, the dataset providers offer API access through both Mainland China and global platforms, allowing users to make HTTP requests to evaluate medical AI responses without downloading the entire dataset locally.

**Source:** [inclusionAI/LingSante-MedGuard on Hugging Face](https://huggingface.co/datasets/inclusionAI/LingSante-MedGuard)
