Table of Contents

  1. Web Admin Overview
  2. Authorization
  3. Screenshots
    1. Model Completions
    2. Tasks
    3. Conversations
    4. Agents
    5. Model Tool Invocations
    6. Stats

Web Admin Overview

Raif includes a web admin interface for viewing all interactions with the LLM. Assuming you have the engine mounted at /raif, you can access the admin interface at /raif/admin.

The admin interface contains sections for:

Authorization

To control authorization for the admin interface, you can configure the authorize_admin_controller_action option in your initializer:

Raif.configure do |config|
  config.authorize_admin_controller_action = ->{ current_user&.admin? }
end

Screenshots

Model Completions

List of Raif::ModelCompletion records: Model Completions Index

Raif::ModelCompletion record detail: Model Completion Detail

Tasks

List of Raif::Task records: Tasks Index

Raif::Task record detail: Task Detail

Conversations

List of Raif::Conversation records: Conversations Index

Raif::Conversation record detail: Conversation Detail

Agents

List of Raif::Agent records: Agents Index

Raif::Agent record detail: Agents Detail

Model Tool Invocations

List of Raif::ModelToolInvocation records: Model Tool Invocations Index

Raif::ModelToolInvocation record detail: Model Tool Invocation Detail

Stats

Stats & estimated cost tracking: Stats

Aggregated task stats & estimated cost tracking: Aggregated Task Stats


Read next: Response Formats