Skip to content
Secure Private AI for Enterprises and Developers - amazee.ai

Installation

This guide covers the installation process for AI AutoEvals.

Before installing AI AutoEvals, ensure you have:

  1. Install via Composer using Composer:

    Terminal window
    composer require drupal/ai_autoevals
  2. Enable the Module using Drush:

    Terminal window
    drush en ai_autoevals

    Or enable via the admin interface at /admin/modules

  3. Configure the Module at /admin/config/ai/autoevals:

    Required Settings:

    • Default Provider: Select your AI provider from the dropdown
    • Default Model: Choose the model to use for evaluations
    • Operation Types: Select which AI operations to evaluate (chat, chat_completion)

    Optional Settings:

    • Auto-track: Automatically evaluate all matching requests
    • Fact Extraction Method: Choose evaluation criteria extraction strategy
    • Context Depth: Set conversation history depth (0-10 turns)
    • Retention Period: Days to keep evaluation results (0 = keep forever)
    • Global Exclusion Keywords: Keywords that prevent evaluation across all evaluation sets
      • Query Exclusion Keywords: Skip evaluation if any keyword appears in user’s query
      • Response Exclusion Keywords: Skip evaluation if any keyword appears in AI’s response
      • Global exclusions take priority over per-set exclusions and inclusion keywords
  4. Configure Permissions by assigning appropriate permissions to user roles:

    PermissionDescription
    administer ai autoevalsFull administration access
    view ai autoevals resultsView evaluation results
    edit ai autoevals resultsEdit and re-evaluate results
    delete ai autoevals resultsDelete results
    view ai autoevals setsView evaluation sets
    manage ai autoevals setsCreate/edit/delete evaluation sets
    requeue ai autoevalsRequeue failed evaluations
    batch ai autoevalsPerform batch operations
  5. Verify Installation:

    • Visit the dashboard at /admin/content/ai-autoevals
    • You should see the dashboard with initial statistics
    • Make an AI request with auto-tracking enabled
    • Run the evaluation queue: drush queue:run ai_autoevals_evaluation_worker
    • Check the dashboard for new evaluations
  • Clear all caches: drush cr
  • Check that dependencies are enabled: drush pm:info ai key
  • Verify Composer installation completed successfully
  • Ensure AI module is properly configured
  • Check that you have added API keys for your provider
  • Visit /admin/config/ai/providers to verify provider setup
  • Clear caches: drush cr
  • Rebuild permissions: drush config:import (if needed)
  1. Backup your site and database

  2. Update via Composer: composer update drupal/ai_autoevals

  3. Run database updates: drush updatedb

  4. Clear caches: drush cr

  5. Review the release notes for breaking changes

  1. Disable the module: drush pm:uninstall ai_autoevals

  2. Remove from Composer: composer remove drupal/ai_autoevals

Note: Uninstalling will delete all evaluation results and evaluation sets. Export any important data before uninstalling.