You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"credit-card": "Detect credit cards in the text contents (Visa, MasterCard, Amex, Discover, Diners Club, JCB) with Luhn check",
114
-
"email": "Detect email addresses in the text contents",
115
-
"ipv4": "Detect IPv4 addresses in the text contents",
116
-
"ipv6": "Detect IPv6 addresses in the text contents",
117
-
"us-phone-number": "Detect US phone numbers in the text contents",
118
-
"us-social-security-number": "Detect social security numbers in the text contents",
119
-
"uk-post-code": "Detect UK post codes in the text contents",
120
-
"$CUSTOM_REGEX": "Replace $CUSTOM_REGEX with a custom regex to define your own regex detector"
121
-
},
122
-
"file_type": {
123
-
"json": "Detect if the text contents is not valid JSON",
124
-
"xml": "Detect if the text contents is not valid XML",
125
-
"yaml": "Detect if the text contents is not valid YAML",
126
-
"json-with-schema:$SCHEMA": "Detect if the text contents does not satisfy a provided JSON schema. To specify a schema, replace $SCHEMA with a JSON schema.",
127
-
"xml-with-schema:$SCHEMA": "Detect if the text contents does not satisfy a provided XML schema. To specify a schema, replace $SCHEMA with an XML Schema Definition (XSD)",
128
-
"yaml-with-schema:$SCHEMA": "Detect if the text contents does not satisfy a provided schema. To specify a schema, replace $SCHEMA with a JSON schema. That's not a typo, you validate YAML with a JSON schema!"
129
-
}
130
-
}
131
-
132
-
```
32
+
33
+
### Quick Start Commands
34
+
35
+
| Detector | Run Command | Notes |
36
+
|----------|-------------|-------|
37
+
|`builtIn`|`podman run -p 8080:8080 $BUILT_IN_IMAGE`| Ready to use |
38
+
|`huggingface`|`podman run -p 8000:8000 -e MODEL_DIR=/mnt/models/$MODEL_NAME -v $MODEL_PATH:/mnt/models/$MODEL_NAME:Z $HF_IMAGE`| Requires model download |
39
+
|`llm_judge`|`podman run -p 8000:8000 -e VLLM_BASE_URL=$LLM_SERVER_URL $LLM_JUDGE_IMAGE`| Requires OpenAI-compatible LLM server |
40
+
41
+
42
+
### Detailed Setup Instructions & Examples
43
+
44
+
-**Built-in detector**: No additional setup required. Check out [built-in detector examples](docs/builtin_examples.md) to see how to use the built-in detectors for file type validation and personally identifiable information (PII) detection
45
+
-**Hugging Face detector**: Check out [Hugging Face detector examples](docs/hf_examples.md) for a complete setup and examples on how to use the Hugging Face detectors for detecting toxic content and prompt injection
46
+
-**LLM Judge detector**: Check out [LLM Judge detector examples](docs/llm_judge_examples.md) for a complete setup and examples on how to use any OpenAI API compatible LLM for content assessment with built-in metrics and custom natural-language criteria
133
47
134
48
## API
135
49
See [IBM Detector API](https://foundation-model-stack.github.io/fms-guardrails-orchestrator/?urls.primaryName=Detector+API)
136
50
137
51
## License
138
52
139
-
This project is licensed under the Apache License Version 2.0 - see the [LICENSE](./LICENSE) file for details.
53
+
This project is licensed under the Apache License Version 2.0 - see the [LICENSE](./LICENSE) file for details.
0 commit comments