Skip to main content
Prompts can contain variables as placeholders for various uses such as end user input, retrieved context, etc. The Variables Editor allows you to quickly test your prompt with different variable values, helping you simulate production test cases.

Variable Sources

Variables in Adaline support different types of sources:
  • Static Variables (Text, Image, and PDF): Static content that can be swapped for different test cases
  • API Variables: Fetch live data from external HTTP endpoints at runtime
  • Prompt Variables: Execute other prompts and use their results as input

Dynamic Variables

Dynamic variables allow you to inject live, external data into your prompts and API requests. This transforms static prompts into modular, data-driven workflows. There are two primary types of dynamic variables:
  • API Variables: Fetch data from external HTTP endpoints at runtime, enabling real-time integration with external systems
  • Prompt Variables: Execute a secondary prompt and use its output as a variable in the current one, enabling prompt chaining and agent-like workflows

Features

Setting Variable valuesSetting variable values provides you with a wide array of flexible options, which includes: * Building prompts that work across multiple test cases. * Quickly swapping values to assess the outputs of different test cases. * Managing all the variable values in a single place.