Skip to content

Commit

Permalink
feat(Update example):
Browse files Browse the repository at this point in the history
  • Loading branch information
arekusandr committed Mar 29, 2024
1 parent 4fd4365 commit 3e6b756
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ Ultra-fast, Low Latency LLM security solution
<img alt="Github License" src="https://img.shields.io/github/license/lastlayer/last_layer" />
</p>



## Note

```
Expand Down Expand Up @@ -56,7 +58,25 @@ print(result)
# Output: RiskModel(query='*', markers={'ExploitClassifier': '0.916992'}, score=2.0, passed=False, risk='high')
```

available detectors:

```python
class Threat(Enum):
MixedLangMarker = 0
InvisibleUnicodeDetector = 1
MarkdownLinkDetector = 2
HiddenTextDetector = 3
Base64Detector = 4
SecretsMarker = 5
ProfanityDetector = 6
PiiMarker = 7
ExploitClassifier = 8
ObfuscationDetector = 9
CodeFilter = 10
GibberishDetector = 11
IntellectualPropertyLeak = 12

```
You can also try it in your browser with Google Colab:

[![Open in Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/drive/1-LYgF6N5O2ukfoOAXkITCBqbIiutY3H1?usp=sharing)
Expand Down

0 comments on commit 3e6b756

Please sign in to comment.