Spaces:
Sleeping
Sleeping
File size: 1,801 Bytes
0dd714d 325d937 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 | ---
title: PromptGuard
emoji: 🚀
colorFrom: gray
colorTo: red
sdk: gradio
sdk_version: 6.14.0
python_version: '3.13'
app_file: app.py
pinned: false
license: apache-2.0
short_description: RAG retrieval + LLM judge
---
# 🛡️ PromptGuard
LLM prompt safety evaluator powered by RAG + AI.
[](https://huggingface.co/docs/hub/spaces-config-reference)
[](https://github.com/dralsarrani/PromptGuard-LLM-Prompt-Safety-Evaluator)
## What it does
Takes any prompt and evaluates whether it's safe or unsafe with a confidence score, category, reasoning, and similar
examples retrieved from a 180k prompt safety dataset.
## How it works
1. Your prompt is embedded and compared against 180k labeled prompts
2. The top 5 most similar prompts are retrieved as context
3. An LLM judge evaluates safety using that context
4. Returns: verdict + confidence + category + reasoning
## Tech stack






## Dataset
Built on a custom 180k prompt safety dataset -> [](https://huggingface.co/datasets/dralsarrani/Prompt-Aggregation-Dataset-Custom-Dataset)
|