Update README.md
Browse files
README.md
CHANGED
|
@@ -1,3 +1,90 @@
|
|
| 1 |
-
---
|
| 2 |
-
license: mit
|
| 3 |
-
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: mit
|
| 3 |
+
---
|
| 4 |
+
---
|
| 5 |
+
dataset_name: facts_grounding_processed
|
| 6 |
+
license: apache-2.0
|
| 7 |
+
tags:
|
| 8 |
+
- factuality
|
| 9 |
+
- grounding
|
| 10 |
+
- llm-evaluation
|
| 11 |
+
- text
|
| 12 |
+
- preprocessing
|
| 13 |
+
---
|
| 14 |
+
|
| 15 |
+
# Facts Grounding Processed
|
| 16 |
+
|
| 17 |
+
This dataset is a **processed and reformatted version** of [`google/FACTS-grounding-public`](https://huggingface.co/datasets/google/FACTS-grounding-public), designed for **LLM factuality and grounding evaluation**.
|
| 18 |
+
It has been cleaned, enriched with additional metadata, and split into **train** and **validation** sets.
|
| 19 |
+
|
| 20 |
+
---
|
| 21 |
+
|
| 22 |
+
## Dataset Summary
|
| 23 |
+
|
| 24 |
+
The dataset contains prompts, context documents, and target answers that challenge models to stay grounded in provided context rather than hallucinating.
|
| 25 |
+
Processing steps added extra features like:
|
| 26 |
+
- `prompt` – consolidated instruction + user request + context
|
| 27 |
+
- `has_url_in_context` – boolean flag for URLs in context
|
| 28 |
+
- `len_system`, `len_user`, `len_context` – token/word length statistics
|
| 29 |
+
- `row_id` – unique identifier for tracking
|
| 30 |
+
|
| 31 |
+
---
|
| 32 |
+
|
| 33 |
+
## Dataset Structure
|
| 34 |
+
|
| 35 |
+
**Splits:**
|
| 36 |
+
- **train** – 688 rows
|
| 37 |
+
- **validation** – 172 rows
|
| 38 |
+
|
| 39 |
+
**Features:**
|
| 40 |
+
| Feature | Type | Description |
|
| 41 |
+
|-----------------------|---------|-------------|
|
| 42 |
+
| `system_instruction` | string | System-level instruction template |
|
| 43 |
+
| `user_request` | string | User query or prompt |
|
| 44 |
+
| `context_document` | string | Provided factual context |
|
| 45 |
+
| `full_prompt` | string | Original concatenated instruction + context |
|
| 46 |
+
| `prompt` | string | Processed consolidated prompt |
|
| 47 |
+
| `has_url_in_context` | bool | Whether the context contains a URL |
|
| 48 |
+
| `len_system` | int64 | Length of system instruction |
|
| 49 |
+
| `len_user` | int64 | Length of user request |
|
| 50 |
+
| `len_context` | int64 | Length of context document |
|
| 51 |
+
| `target` | string | Grounded factual answer |
|
| 52 |
+
| `row_id` | int64 | Unique row identifier |
|
| 53 |
+
|
| 54 |
+
---
|
| 55 |
+
|
| 56 |
+
## Processing
|
| 57 |
+
|
| 58 |
+
The preprocessing was done in Python with the Hugging Face `datasets` library:
|
| 59 |
+
1. Loaded the original dataset (`google/FACTS-grounding-public`)
|
| 60 |
+
2. Added custom features (URL detection, length counts)
|
| 61 |
+
3. Generated combined prompt field
|
| 62 |
+
4. Split into train (80%) and validation (20%)
|
| 63 |
+
5. Exported as Arrow and JSONL formats
|
| 64 |
+
|
| 65 |
+
The preprocessing script is included in the repository for reproducibility.
|
| 66 |
+
|
| 67 |
+
---
|
| 68 |
+
|
| 69 |
+
## Intended Uses
|
| 70 |
+
|
| 71 |
+
- **LLM grounding & hallucination evaluation**
|
| 72 |
+
- Prompt engineering experiments
|
| 73 |
+
- Fine-tuning or zero/few-shot evaluation pipelines
|
| 74 |
+
- Data formatting utilities
|
| 75 |
+
|
| 76 |
+
---
|
| 77 |
+
|
| 78 |
+
## How to Use
|
| 79 |
+
|
| 80 |
+
```python
|
| 81 |
+
from datasets import load_dataset
|
| 82 |
+
|
| 83 |
+
dataset = load_dataset("GenAIDevTOProd/facts_grounding_processed")
|
| 84 |
+
|
| 85 |
+
print(dataset["train"][0])
|
| 86 |
+
|
| 87 |
+
License:
|
| 88 |
+
This processed dataset is licensed under Apache 2.0.
|
| 89 |
+
The original data source is google/FACTS-grounding-public.
|
| 90 |
+
|