Skip to main content

AWS Lambda Deployment

Deploy Fair Forge generators, runners, and metrics as AWS Lambda functions for serverless execution.

Available Lambda Functions

BestOf Metric Lambda

Run tournament-style comparisons between multiple AI assistants to determine which performs best.

How It Works

  1. Submit datasets from multiple assistants (same questions, different responses)
  2. The LLM judge evaluates head-to-head matchups
  3. Winners advance through elimination rounds
  4. Returns the tournament winner with detailed contest results

Supported LLM Providers

Request Format

Configuration Parameters

Example: Compare Two Assistants

Response Format

Response Fields


Generators Lambda

Generate synthetic test datasets from markdown content using any LLM.

Supported LLM Providers

Request Format

Configuration Parameters

Example: Using Groq

Example: Using OpenAI

Response Format


Runners Lambda

Execute test datasets against AI systems.

Modes

LLM Mode: Direct execution against any LangChain-compatible LLM Alquimia Mode: Execution against Alquimia AI agents

LLM Mode Request

Alquimia Mode Request

Example: LLM Mode

Response Format


Deployment

Prerequisites

  • AWS CLI configured
  • Docker installed
  • AWS ECR repository access

Deploy BestOf Metric

Deploy Generators

Deploy Runners

View Logs


Architecture

Integration Example

Combine generators and runners:

Next Steps

BestOf Metric

Learn about tournament-style evaluation

Generators

Learn about test generation

Runners

Learn about test execution