AGENCYSCRIPT
CoursesEnterpriseBlog
đź‘‘FoundersSign inJoin Waitlist
AGENCYSCRIPT

Governed Certification Framework

The operating system for AI-enabled agency building. Certify judgment under constraint. Standards over scale. Governance over shortcuts.

Stay informed

Governance updates, certification insights, and industry standards.

Products

  • Platform
  • Certification
  • Launch Program
  • Vault
  • The Book

Certification

  • Foundation (AS-F)
  • Operator (AS-O)
  • Architect (AS-A)
  • Principal (AS-P)

Resources

  • Blog
  • Verify Credential
  • Enterprise
  • Partners
  • Pricing

Company

  • About
  • Contact
  • Careers
  • Press
© 2026 Agency Script, Inc.·
Privacy PolicyTerms of ServiceCertification AgreementSecurity

Standards over scale. Judgment over volume. Governance over shortcuts.

On This Page

1. Model SelectionDefine the task category firstEvaluate trade-offs explicitly2. Prompt EngineeringWrite structured, testable promptsTest before you deploy3. Data and Context Preparation4. Infrastructure and IntegrationAPI and rate limit managementSystem reliability5. Evaluation and Quality ControlEstablish baselines before launchMonitor continuously post-launch6. Safety, Ethics, and GovernanceContent and output controlsOrganizational accountability7. Real-World Validation8. Cost Management9. Iteration and ImprovementFrequently Asked QuestionsWhat should I check first when an LLM feature starts producing bad outputs?How do I know if I need a fine-tuned model vs. a better prompt?Is it safe to use a frontier model API for client data?How many test cases do I actually need in an eval suite?How often do I need to update my prompts after deployment?What's the biggest mistake teams make with large language models?Key Takeaways
Home/Blog/Between a Professional Result and an Expensive Mess: 30 Checks
General

Between a Professional Result and an Expensive Mess: 30 Checks

A

Agency Script Editorial

Editorial Team

·May 31, 2026·10 min read
large language modelslarge language models checklistlarge language models guideai fundamentals

Whether you're deploying a language model inside a client workflow, evaluating a vendor's AI stack, or building internal tooling on top of an API, the difference between a professional result and an expensive mess usually comes down to preparation. Most teams skip steps not out of laziness but because nobody handed them a systematic list. This checklist exists to fix that.

The items below are organized by the natural sequence of an LLM project: from initial selection through deployment, governance, and ongoing improvement. Each item includes a one- or two-sentence justification so you understand why it matters, not just what to do. Some items will be obvious if you've shipped a few AI features; others surface failure modes that only appear at scale or under pressure. Either way, treat this as a working document—print it, fork it, adapt it to your stack.

This is also a living framework for 2026 specifically. Models have become cheaper, more capable, and far more accessible than they were two years ago. That accessibility is a trap as much as an opportunity: it's easier than ever to ship something fragile. The checklist is designed to make you deliberate.


1. Model Selection

Before writing a single line of prompt, you need to choose the right model for the job. This is often where teams lose weeks.

Define the task category first

  • Classify your use case: Is this extraction, generation, classification, conversation, coding, or reasoning? Each favors different architectures and sizes.
  • Set a latency budget: Sub-second responses require smaller or cached models. If users are waiting 8–12 seconds, that's often an architecture problem, not a model problem.
  • Decide on context window requirements: Tasks involving long documents, entire codebases, or multi-turn memory need 32k+ tokens. Many tasks don't.

Evaluate trade-offs explicitly

  • Cost per token vs. quality: Frontier models (GPT-4-class, Claude Sonnet-class) cost 5–20Ă— more per token than mid-tier models. Run a quality gap analysis before defaulting to the most capable option.
  • Open vs. closed weights: Closed API models are faster to start but create vendor dependency and data-sharing considerations. Open-weight models (Llama, Mistral, Qwen families) offer control at the cost of infrastructure overhead.
  • Fine-tuning readiness: If you anticipate needing domain adaptation, confirm the model provider supports fine-tuning or that you can run the weights yourself.

Review The Best Tools for Large Language Models for a current breakdown of model tiers and hosting options.


2. Prompt Engineering

Prompt quality is the single highest-leverage variable you control. A 10% improvement in prompt structure often outperforms a model upgrade.

Write structured, testable prompts

  • Use a consistent template: Role, task, constraints, output format. Every production prompt should follow the same anatomy.
  • Pin the output schema: If you need JSON, specify every field. If you need prose, specify approximate length and tone. Ambiguity in instructions produces variance in outputs.
  • Version-control your prompts: Store prompts in a repo, not a Notion page. You need to track what changed when quality shifts.

Test before you deploy

  • Build a golden set of 20–50 test cases: Include edge cases, adversarial inputs, and examples where the model historically fails.
  • Measure, don't eyeball: Use a rubric (accuracy, relevance, format compliance, refusal rate) scored programmatically or by a secondary model.
  • Test prompt sensitivity: Change one word and re-run your eval suite. If the score swings more than 10–15 percentage points, your prompt is fragile.

The Large Language Models: Best Practices That Actually Work guide covers prompt engineering patterns in depth, including chain-of-thought, few-shot structure, and output validation.


3. Data and Context Preparation

What you feed the model matters as much as which model you choose.

  • Clean your retrieval corpus: For RAG (retrieval-augmented generation) pipelines, garbage-in is literal. Remove duplicates, truncated documents, and stale records before indexing.
  • Chunk strategically: Fixed-size chunking is easy but dumb. Semantic or structural chunking (by paragraph, section, or logical unit) improves retrieval precision by a meaningful margin in most tasks.
  • Audit PII exposure: Before any document enters a context window that touches an external API, confirm it doesn't contain personally identifiable information that violates your privacy policy or client agreements.
  • Set a freshness schedule: Retrieval indexes go stale. Build a reindexing cadence—daily, weekly, or event-triggered—from day one.

4. Infrastructure and Integration

API and rate limit management

  • Implement retry logic with exponential backoff: API outages and rate limits are not edge cases; they're operational facts. Handle them gracefully.
  • Cache deterministic outputs: If the same query produces the same correct answer, cache it. This cuts costs and latency significantly on repetitive workloads.
  • Use streaming where UX demands it: Streaming token delivery feels faster to users even when total latency is identical. It's worth the added implementation complexity for interactive applications.

System reliability

  • Build a fallback model path: If your primary model endpoint goes down, what happens? A fallback to a cheaper, smaller model is better than a 500 error.
  • Log every request and response: Not forever, but for at least 30 days. You cannot debug quality issues or diagnose regressions without a log.
  • Set token budget limits per request: Runaway prompts can generate surprisingly large outputs. Set max-token caps and handle truncation explicitly rather than letting it happen silently.

5. Evaluation and Quality Control

Shipping an LLM feature without an eval framework is like deploying code with no tests. You will have bugs; you just won't know about them.

Establish baselines before launch

  • Define your success metric: Precision, recall, BLEU, human preference score, task completion rate—pick the metric that maps to business value, not the one that's easiest to compute.
  • Run a pre-launch human evaluation: Have 3–5 people from your target audience rate 50–100 outputs. Automated evals are fast; human evals are real.

Monitor continuously post-launch

  • Track output distribution: If the model starts refusing more, hallucinating more, or changing format—that's a signal. Set alerts on metric drift, not just error rates.
  • Build a user feedback loop: A thumbs-up/thumbs-down on every output is underrated. Even sparse signal from real users beats synthetic test sets.
  • Schedule regression testing after model updates: Providers update models without always announcing behavioral changes. Run your eval suite whenever a model version bumps.

For a structured approach to ongoing evaluation, see A Framework for Large Language Models.


6. Safety, Ethics, and Governance

Governance is not a compliance checkbox. It's what keeps clients trusting you and organizations out of legal trouble.

Content and output controls

  • Implement an output filter layer: Don't rely solely on the model's built-in refusals. Add your own content classification layer for high-stakes outputs.
  • Define your acceptable use policy explicitly: Document what the system will and won't do. This prevents scope creep and gives you a basis for dispute if misuse occurs.
  • Red-team before launch: Spend 2–4 hours trying to break your system before users do. Test prompt injection, jailbreaks, and adversarial input patterns.

Organizational accountability

  • Assign a named AI owner per project: Diffuse ownership means nobody notices when things go wrong. One person should own quality and compliance for each deployment.
  • Document model provenance: Which model version, which prompt version, which retrieval index? This matters for audits, incident response, and reproducibility.
  • Establish a data retention policy: Decide upfront how long you keep logs, outputs, and user data. "We'll figure it out later" is not a policy.

7. Real-World Validation

Checklists and evals are proxies. Real-world validation is the test that counts.

  • Pilot with a constrained user group first: 10–20 real users in a controlled environment will surface issues your internal team never imagined.
  • Set a success threshold before you launch, not after: Defining "good enough" post-hoc is rationalization, not measurement. Write the number down before you see the data.
  • Capture qualitative failure patterns: Users who quit, complain, or work around the AI are telling you something. Collect and categorize that feedback systematically.
  • Compare to the baseline: What did the process cost or take before the LLM? Measure the delta. See Large Language Models: Real-World Examples and Use Cases for benchmarks from comparable deployments.

8. Cost Management

LLM costs are easy to underestimate and hard to explain to a CFO after the fact.

  • Model your token costs before you build: Estimate tokens per request, requests per day, and average context size. Multiply by the model's per-token rate. Then multiply by 1.5 to account for system prompts and retry overhead.
  • Review costs weekly in the first month: Unexpected cost spikes usually indicate a prompt loop, an uncached repetitive call pattern, or runaway context accumulation.
  • Evaluate smaller models quarterly: The model landscape moves fast. A mid-tier model in Q4 2025 often outperforms what was a frontier model in Q1 2025. Re-run your eval suite on cheaper options every quarter.
  • Build cost per outcome into your reporting: Cost per token is a vanity metric. Cost per successful task completion is actionable.

9. Iteration and Improvement

A deployed LLM system is not finished; it's just started. Build the loop from day one.

  • Schedule a monthly prompt review: Production prompts drift in relevance as the world, the model, and the task evolve. Review and test monthly at minimum.
  • Maintain a failure log: Every time the system produces a bad output that reaches a user, log it, categorize it, and track whether subsequent changes fix it.
  • Build toward fine-tuning if volume justifies it: When you have 500+ high-quality labeled examples of the task and the prompt approach has plateaued, fine-tuning typically closes 30–60% of remaining error gaps.
  • Review the vendor roadmap quarterly: API changes, deprecations, pricing shifts, and new capabilities all affect your architecture. Don't be surprised by them.

The Case Study: Large Language Models in Practice shows what this iteration loop looks like in a real agency deployment over six months.


Frequently Asked Questions

What should I check first when an LLM feature starts producing bad outputs?

Start with the prompt and the retrieval context before blaming the model. In most cases, output degradation traces back to a prompt that wasn't updated after a workflow change, or a retrieval index that's returning stale or irrelevant chunks. Check your logs to see what context the model actually received.

How do I know if I need a fine-tuned model vs. a better prompt?

Try prompt engineering exhaustively first—it's faster and cheaper. Fine-tuning makes sense when you have a well-defined task, 500+ high-quality training examples, and prompt-based approaches have plateaued on your eval metrics. Don't fine-tune to solve a data quality or prompt clarity problem.

Is it safe to use a frontier model API for client data?

It depends on the provider's data usage terms and your client's data classification. Most enterprise API tiers from major providers explicitly exclude training on your data, but you need to verify this per contract, not per assumption. For highly sensitive data, an open-weight model running on your own infrastructure is often the safer choice.

How many test cases do I actually need in an eval suite?

Twenty well-chosen test cases covering your task's core scenarios, common edge cases, and known failure modes will catch most regressions. Two hundred mediocre test cases with no edge-case coverage will miss them. Quality of coverage matters more than raw count, but aim for at least 50 before shipping a production feature.

How often do I need to update my prompts after deployment?

At minimum, review prompts whenever the underlying model version changes, when your product or domain changes in a meaningful way, or when your quality metrics drift more than 5–10 percentage points from baseline. Monthly reviews are a good default even when nothing appears to be wrong.

What's the biggest mistake teams make with large language models?

Shipping without an evaluation framework. Teams build something that looks good in demo conditions, deploy it, and discover quality problems from user complaints rather than metrics. Building even a minimal eval suite before launch—20 test cases and a scoring rubric—dramatically reduces the cost of catching and fixing problems.


Key Takeaways

  • Choose the model for the task, not for prestige. Cost-quality trade-offs are real and measurable.
  • Prompt engineering is your highest-leverage investment. Version-control prompts and test them like code.
  • Clean data upstream saves quality downstream. RAG pipelines are only as good as the corpus feeding them.
  • Build an eval framework before you ship. A thumbs-up feed and a 20-case golden set is a minimum, not a luxury.
  • Governance is operational, not decorative. Assign owners, document provenance, and red-team before launch.
  • Model costs compound. Forecast token usage, cache aggressively, and re-evaluate cheaper options quarterly.
  • Treat deployment as iteration start, not project end. Monthly prompt reviews and a failure log prevent slow drift into unreliability.

Search Articles

Categories

OperationsSalesDeliveryGovernance

Popular Tags

prompt engineeringai fundamentalsai toolsthe difference between AIMLagency operationsagency growthenterprise sales

Share Article

A

Agency Script Editorial

Editorial Team

The Agency Script editorial team delivers operational insights on AI delivery, certification, and governance for modern agency operators.

Related Articles

General

Prompt Quality Decides Whether AI Earns Its Keep

Prompt quality is the single biggest variable in whether AI delivers real work or expensive noise. The model matters, the platform matters — but the prompt you write determines whether you get a first

A
Agency Script Editorial
June 1, 2026·10 min read
General

Counting the Real Cost of Every Token You Send

Tokens and context windows sit at the intersection of AI capability and operational cost—yet most business cases treat them as technical footnotes. That's a mistake that costs real money. Every time y

A
Agency Script Editorial
June 1, 2026·10 min read
General

Rolling Out AI Hallucinations Across a Team

Most teams discover AI hallucinations the hard way — a confident-sounding wrong answer makes it into a client deliverable, a legal brief, or a published report. The damage isn't just to the output; it

A
Agency Script Editorial
June 1, 2026·11 min read

Ready to certify your AI capability?

Join the professionals building governed, repeatable AI delivery systems.

Explore Certification