Datasets:
update readme.md
Browse files
README.md
CHANGED
|
@@ -1,3 +1,49 @@
|
|
| 1 |
---
|
| 2 |
license: mit
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
---
|
| 2 |
license: mit
|
| 3 |
+
task_categories:
|
| 4 |
+
- text-classification
|
| 5 |
+
- tabular-classification
|
| 6 |
+
- tabular-regression
|
| 7 |
+
- question-answering
|
| 8 |
+
language:
|
| 9 |
+
- en
|
| 10 |
+
tags:
|
| 11 |
+
- rag
|
| 12 |
+
- hallucination-detection
|
| 13 |
+
- llm-evaluation
|
| 14 |
+
- tabular-nlp
|
| 15 |
+
- transformers
|
| 16 |
+
pretty_name: RAG Hallucination Benchmark
|
| 17 |
+
size_categories:
|
| 18 |
+
- 10K<n<100K
|
| 19 |
---
|
| 20 |
+
|
| 21 |
+
# RAG Hallucination Benchmark
|
| 22 |
+
|
| 23 |
+
### Context
|
| 24 |
+
Retrieval-Augmented Generation (RAG) is the industry standard for reducing LLM hallucinations, but detecting when a RAG system fails is a massive challenge. Most existing benchmarks focus only on massive Deep Learning models and lack tabular features.
|
| 25 |
+
This dataset provides a clean, engineered setup to train models (from XGBoost to RoBERTa) to detect hallucinations, predict context faithfulness, and measure answer relevance.
|
| 26 |
+
|
| 27 |
+
### Content
|
| 28 |
+
The dataset contains **30,000 synthetic RAG interactions** covering:
|
| 29 |
+
|
| 30 |
+
* **Text Data:** User Prompts, Retrieved Contexts, and LLM Responses.
|
| 31 |
+
* **Metadata:** Model Names, Temperature Settings, and Vector Similarity Scores.
|
| 32 |
+
* **Engineered Features:** Lexical Overlap, Entity Match Scores, and Complexity Indices.
|
| 33 |
+
* **Targets:**
|
| 34 |
+
* Binary Hallucination flags
|
| 35 |
+
* Multiclass Hallucination Types
|
| 36 |
+
* Regression targets for Faithfulness
|
| 37 |
+
|
| 38 |
+
### Inspiration
|
| 39 |
+
This was inspired by the need for a practical ML benchmark where you can practice both feature engineering for tabular models (LightGBM, XGBoost) and text classification for NLP Transformers (BERT, DeBERTa) on the same dataset.
|
| 40 |
+
|
| 41 |
+
### Quick Load
|
| 42 |
+
|
| 43 |
+
```python
|
| 44 |
+
import pandas as pd
|
| 45 |
+
|
| 46 |
+
url = "https://huggingface.co/datasets/vkshdev/rag-hallucination-benchmark/raw/main/RAG_context_adherence_and_hallucination_benchmark.csv"
|
| 47 |
+
df = pd.read_csv(url)
|
| 48 |
+
|
| 49 |
+
print(df.head())
|