Skip to content
@LLMGuardian

LLM Guardian Framework

The LLM guardian framework

LLM Guardian System

Welcome to the LLM Guardian System organization! This repository houses all components of our innovative solution for safeguarding Large Language Models (LLMs) against malicious inputs while maintaining high performance and scalability. This project is a collaborative effort by Amir Karimi, Chaima Jaziri, and Liam Johnston as part of the SOEN 691 Project (Fall 2024).

Kernel Project

You can find the Guardian Kernel project open here: https://github.com/AMK9978/Guardian

Getting Started Writing Plugins

The Kernel supports an unlimited number of plugins that operate based on the associated Task to apply to certain Users or Groups. See the Demo project to learn how to develop a plugin.

📌 Project Overview

The LLM Guardian System introduces a next-generation firewall specifically designed for LLM environments. As LLMs become increasingly integral to software engineering, they are also more susceptible to security risks such as prompt injection attacks. This project addresses these challenges by:

Protecting LLMs: Scanning and filtering malicious inputs and outputs. Optimizing Performance: Utilizing modular, scalable architecture to ensure efficient handling of input loads. Enhancing Usability: Maintaining smooth user interactions by reducing false positives and ensuring legitimate prompts pass seamlessly. Facilitating Research: Offering an evaluation framework for security, scalability, and reliability.

🔍 Key Features:

Policies Referee: is a plug-in that uses static, manually crafted rules and patterns to act as a pre-display filter between user inputs and a large language model (LLM) Modular Architecture: Designed for flexibility, extensibility, and ease of integration with existing systems. Real-Time Monitoring: Incorporating tools like Prometheus and Grafana for effective system monitoring and optimization. Dataset Integration: Leveraging comprehensive datasets to evaluate and enhance system robustness.

🏗️ Organization Structure:

This GitHub organization is divided into multiple repositories, each focusing on a specific aspect of the project:

Core Guardian Engine: The heart of the system, managing the modular pipeline and coordinating between components. API Gateway: Handles rate limiting, authentication, and load balancing. Database Systems: Stores user data, embeddings, and cached interactions for improved performance. Evaluation Framework: Tools and scripts for testing scalability, filtering effectiveness, and latency.

Architecture Diagram

Below is the architecture of the LLM Guardian System:

Architecture Diagram

🤝 Contributors:

🌟 Vision:

The LLM Guardian System aspires to be a cornerstone in the field of Software Engineering for AI, enabling secure, efficient, and scalable LLM deployments across diverse contexts. By building and sharing this tool, we aim to contribute significantly to the software engineering and AI communities.

Popular repositories Loading

  1. BasicJudge BasicJudge Public

    The simplest guardian plugin as a demo. An LLM judge using few-shot learning.

    Python

  2. Policies_Referee Policies_Referee Public

    Policies_Referee is a plug-in that uses static, manually crafted rules and patterns to act as a pre-display filter between user inputs and a large language model (LLM). This plug-in is connected to…

    Python

  3. .github .github Public

Repositories

Showing 3 of 3 repositories
  • .github Public
    LLMGuardian/.github’s past year of commit activity
    0 0 0 0 Updated Dec 8, 2024
  • Policies_Referee Public

    Policies_Referee is a plug-in that uses static, manually crafted rules and patterns to act as a pre-display filter between user inputs and a large language model (LLM). This plug-in is connected to the central unit LLMGuardian as a component to block and filter user inputs.

    LLMGuardian/Policies_Referee’s past year of commit activity
    Python 0 0 0 0 Updated Nov 21, 2024
  • BasicJudge Public

    The simplest guardian plugin as a demo. An LLM judge using few-shot learning.

    LLMGuardian/BasicJudge’s past year of commit activity
    Python 0 0 0 0 Updated Oct 30, 2024

Top languages

Loading…

Most used topics

Loading…