> For the complete documentation index, see [llms.txt](https://docs.layerlens.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.layerlens.ai/more-in-this-section-2/eval-patterns-12.md).

# Travel and hospitality evaluation patterns

Recommended primitive ratio for travel AI: **55/30/15** — deterministic rules, code assertions, judges. Disruption regulations (DOT, EU 261) and full-fare disclosure carry heavy rule density; fairness scorers and accessibility checks lean on code; tone and clarity use judges.

## Primitive ratio

| Primitive           | Share | Why                                                                                  |
| ------------------- | ----- | ------------------------------------------------------------------------------------ |
| Deterministic rules | 55%   | Fare-rule citation, total-price disclosure, regulation citation, junk-fee guardrails |
| Code assertions     | 30%   | Inventory freshness, change/cancel accuracy, group fairness, compensation math       |
| LLM judges          | 15%   | Plain-language quality, accessibility-statement clarity, multilingual parity         |

## Pattern table

| Scenario                              | Primary primitive | Specific check                |
| ------------------------------------- | ----------------- | ----------------------------- |
| Booking — fare-rule citation          | Rule              | Output cites applicable rules |
| Booking — total price                 | Rule              | DOT 399.84 elements present   |
| Booking — change/cancel accuracy      | Code assertion    | Stated rules match database   |
| Booking — cross-border                | Rule              | Visa/passport/health current  |
| Disruption — regulation citation      | Rule              | DOT/EU 261/APPR cited         |
| Disruption — compensation match       | Code assertion    | Offer ≥ regulation minimum    |
| Disruption — care obligation          | Rule              | Meals/lodging surfaced        |
| Disruption — plain language           | Judge             | Clear and actionable          |
| Loyalty — award accuracy              | Code assertion    | Live availability match       |
| Loyalty — TOS citation                | Rule              | Program terms referenced      |
| Loyalty — fairness                    | Code scorer       | Offered-price parity          |
| Pricing — full disclosure             | Rule              | Mandatory fees up front       |
| Pricing — junk-fee guardrail          | Rule              | FTC 2024 rule compliance      |
| Pricing — emergency surge             | Rule              | State emergency caps          |
| Accessibility — claim citation        | Rule              | Source cited per claim        |
| Accessibility — verified availability | Rule              | Live verification             |

## Span rules

* `inventory.lookup` — freshness window enforced
* `fare.rule.cite` — applicable rules cited
* `regulation.cite` — DOT / EU 261 / APPR / state law
* `accessibility.verify` — live verification of stated availability
* `loyalty.tos.cite` — program-terms reference

## GEPA labeling

For each travel judge, label ≥ 50 paired examples:

* **Disruption plain-language:** Customer-care leads + accessibility advocates label
* **Accessibility statements:** Disability-rights specialists + ops managers label
* **Multilingual parity:** Native-speaker QA per language
* **Fare-rule paraphrase:** Travel-agent leads label

Run [judge optimization](/more-in-this-section-9/judge-optimizations-1.md) with `budget="medium"`. Hold out 20%.

## Cadence

| Cadence        | Activity                                                           |
| -------------- | ------------------------------------------------------------------ |
| **Per-deploy** | CI gate runs scenario suite (rules + assertions)                   |
| **Continuous** | Inventory-freshness watch; OFAC/sanctions on cross-border travel   |
| **Daily**      | Sample production traces; full evaluation                          |
| **Weekly**     | Disruption-compensation accuracy audit; emergency-state monitoring |
| **Monthly**    | GEPA re-optimization on judges; fare-rule database refresh         |
| **Quarterly**  | DOT / EU 261 compliance audit; accessibility-claim audit           |
| **Annually**   | Full bias audit; ACAA / ADA verification campaign                  |

## See also

* [Travel scenarios](/more-in-this-section-2/scenarios-12.md)
* [Travel compliance](/more-in-this-section-2/compliance-12.md)
* [Recipe: GEPA basics](/9.-improve-tune-the-system/gepa-basics.md)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.layerlens.ai/more-in-this-section-2/eval-patterns-12.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
