Skip to main content

Query Templates

Query Templates in Releval define reusable, parameterized search requests using Mustache / Handlebars syntax. They allow you to dynamically construct search queries by substituting variables into request bodies and query strings. This enables consistent, flexible evaluation across varying query sets and configurations.

Templates support conditional logic, iteration, and raw JSON insertion via the toJson helper. When combined with query sets, each query is rendered into a complete request, making it easy to test and compare different search strategies. Templates can be tested via the Test Query Template API to validate output before full-scale evaluation.