

Zapier's LLM-powered spec-generation system automatically produced OpenAPI specifications from API documentation, but its performance was opaque. The team could not measure accuracy, quantify the impact of pipeline changes, or identify where to prioritize improvements.
Fractional AI built a comprehensive LLM evaluation framework with seven distinct metrics measuring correctness and hallucination rates across endpoint paths and field properties, paired with iterative experimentation to optimize the four-step pipeline.
The pipeline scrapes API docs to markdown, lists endpoints, extracts relevant documentation, and generates OpenAPI specs. Evaluations ran on Braintrust against curated, manually reviewed test data. Winning experiments included targeted prompt engineering, passing extra context (name, HTTP verb, URL) between stages, model selection (GPT-4o default, Claude Sonnet 3.5 for extraction), and prompt caching for cost savings.
Best fit for product teams shipping LLM features who need rigorous, metric-driven evaluation to reduce hallucinations before scaling.






