加载中…
加载中…
Fine-tuned SetFit model for Data Loss Prevention intent classification. Part of the Spidercob DLP platform.
This model classifies text snippets that triggered DLP regex patterns into one of four categories to reduce false positives:
| Label | Description |
|---|---|
REAL_DATA |
Genuine sensitive data (PII, credentials, secrets) |
TEST_DATA |
Synthetic/mock data used in tests or examples |
DOCUMENTATION |
Documentation examples, tutorials, placeholder values |
NOISE |
Random strings, hashes, or non-sensitive matches |
Base model: sentence-transformers/all-MiniLM-L6-v2
Framework: SetFit (few-shot fine-tuning)
Test accuracy: 94.25%
from setfit import SetFitModel
model = SetFitModel.from_pretrained("Sumeetgpt/dlp-intent-classifier")
predictions = model.predict(["sk-proj-abc123XYZ", "test_api_key_placeholder"])
print(predictions) # ['REAL_DATA', 'TEST_DATA']
Used inside the Spidercob DLP engine to verify whether regex-matched findings are genuinely sensitive before blocking or alerting. Blocks on REAL_DATA confidence > 0.7; allows through on TEST_DATA confidence > 0.8.
Trained on curated examples spanning:
faker, factory_boy, pytest fixtures