Skip to content
/ AVISE Public

Framework for identifying vulnerabilities in and evaluating the security of AI systems.

License

Notifications You must be signed in to change notification settings

ouspg/AVISE

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Prerequisites

  • Python 3.10+
  • Docker (for running models backend)
  • pip

1. Clone the Repository

git clone <repository-url>
cd AI-Testing-Platform

2. Set Up Python Environment

# Create virtual environment
python -m venv myenv

source myenv/bin/activate    # On Windows, run: myenv\Scripts\activate

# Install dependencies
pip install -r requirements.txt

3. Set Up by using Ollama Backend with Docker

GPU Version:

docker-compose -f docker/ollama/docker-compose.yml up -d

CPU-only Version:

docker-compose -f docker/ollama/docker-compose-cpu.yml up -d

4. Pull Models

After Ollama is running, pull the models you want to test:

# Pull models for testing and for evaluation
docker exec -it avise-ollama ollama pull <model_name>

5. Configure Models

Edit src/configs/model.json:

{
  "testable_model": "X",
  "evaluation_model": "Y",
  "api_url": "http://localhost:11434" #Ollama default
}

Usage

python -m src.runner -test <test_name> -modelconf <path> -testconf <path> [options]

Required Arguments

Argument Description
-test Test to run (e.g., prompt_injection, context_test)
-modelconf Path to model configuration JSON
-testconf Path to test configuration JSON

Optional Arguments

Argument Description
-format Report format: json, html, md
-output Custom output file path
-reports-dir Base directory for reports (default: reports/)
-apikey API key for authenticated APIs
-list List available tests and formats
-v Enable verbose logging

About

Framework for identifying vulnerabilities in and evaluating the security of AI systems.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •