Or, clone the repository and install directly from the source:
bash
git clone https://github.com/MaxMLang/pytector.git
cd pytector
pip install .
Getting Started:
To begin using Pytector, import the `PromptInjectionDetector` class and initiate it with a pre-defined or custom model. For more detailed instructions, refer to my [Getting Started Guide](https://github.com/MaxMLang/pytector/blob/main/docs/PromptInjectionDetector.md).
python
import pytector
Initialize the detector
detector = pytector.PromptInjectionDetector(model_name_or_url="deberta")
Evaluate your text input for prompt injection
is_injection, probability = detector.detect_injection("Your text input here")
print(f"Is injection: {is_injection}, Probability: {probability}")