Skip to content

Quick Start

Cristiano Carvalho edited this page Apr 26, 2026 · 11 revisions

This is the fastest path from a fresh installation to a repeatable evaluation loop: configure providers, create a prompt, compare outputs, and turn the useful cases into a suite you can rerun.

flowchart LR
    A[Configure Providers] --> B[Create Prompt]
    B --> C[Run Across Models]
    C --> D[Create Test Suite]
    D --> E[Track Evolution]
Loading

1. Configure Providers

Start with one local model and one hosted model if you want a quick read on the balance between quality, cost, and speed.

Provider Suggested starter model Requirement
Ollama llama3.1:8b or another local model http://localhost:11434/api/chat available
OpenAI gpt-4o OPENAI_API_KEY
Anthropic claude-sonnet-4-5-20250929 ANTHROPIC_API_KEY
Google Gemini gemini-2.5-flash GOOGLE_API_KEY

See Providers for complete configuration details.

2. Create a Prompt

Templates use {{variable}} placeholders so a single prompt can be reused across many inputs without losing its form:

Summarize the following article in 3-5 bullet points:

{{article}}

3. Run the Prompt

  1. Select one or more providers.
  2. Supply variable values for the template.
  3. Execute the run and compare outputs side by side.

Each result captures the marks left by the run:

  • Response text
  • Latency in milliseconds
  • Input and output token counts
  • Estimated cost in USD
  • Execution status per provider result

4. Create a Test Suite

Turn an ad hoc prompt into something you can assay repeatedly:

{
  "name": "Phoenix LiveView Summary",
  "variable_values": {
    "article": "Phoenix LiveView is a library..."
  },
  "assertions": [
    {"type": "contains", "value": "real-time"},
    {"type": "regex", "value": "^- .*\\n- .*\\n- .*"}
  ]
}

Supported assertion types:

  • contains for substring checks
  • not_contains for absence checks
  • regex for pattern validation
  • exact_match for exact output comparisons
  • json_field for structured response validation

Test cases can also include uploaded documents such as PDFs, images, CSV, JSON, and plain text files. Aludel stores the document metadata in PostgreSQL and persists the file contents through the configured storage backend.

5. Track Evolution

Every prompt update creates a new version, which makes it possible to compare:

  • Success rate across versions
  • Latency trends over time
  • Cost changes by provider and prompt version
  • Provider-specific execution failures and partial failures

Use the Evolution view to see whether each change refined the prompt or introduced fresh impurities.

Next Steps

Clone this wiki locally