LogoAISecKit
icon of Pytector

Pytector

Easy to use LLM Prompt Injection Detection / Detector Python Package.

Introduction

Pytector

Pytector is a Python package designed for detecting prompt injection in text inputs using advanced machine learning models.

Key Features:
  • Prompt Injection Detection: Utilizes models like DeBERTa and DistilBERT for detecting potential prompt injections.
  • Content Safety: Integrates with Groq's Llama Guard API for enhanced detection of unsafe content.
  • Customizable Detection: Users can switch between local model inference and API-based detection with adjustable thresholds.
Benefits:
  • Ease of Use: Prioritizes a simple interface for developers to integrate prompt injection detection into applications.
  • Flexibility: Supports both predefined and custom model URLs for tailored use-cases.
  • Community Contributions: Open to contributions, fostering community-driven enhancements.
Highlights:
  • Easy installation via pip.
  • Comprehensive usage examples provided for both local models and Groq's API.

Newsletter

Join the Community

Subscribe to our newsletter for the latest news and updates