Model Selection for a Legal Task
Analyses a legal task's requirements and produces a justified model selection with a measurable criterion, a fallback path, and a trigger for switching.
Prompt
Select a model for the task. Rule: the cheapest model that clears the quality bar, not the strongest one available.
Task: [describe] Volume: [calls per day] Typical input length: [tokens] Latency requirement: [interactive / background] Privacy constraint: [external provider permitted / local hosting required] Consequence of an error: [failure severity]
Produce:
- Hard requirements — what disqualifies a model from candidacy: context window, Hebrew support, structured output, local hosting, processing jurisdiction.
- Three candidates — for each: fit for the task, estimated monthly cost at the stated volume, expected latency, and principal risk.
- Decision criterion — the test you will actually run to decide. It must be measured on a real domain sample, not general impression or a public benchmark.
- Hybrid routing — whether a cheap model should handle most cases with escalation to a stronger one for hard cases. If so: what triggers escalation and how a hard case is identified in advance.
- Fallback — what happens when the provider is unavailable. Alternative model, degraded response, or explicit failure. Choose and explain.
- Switching trigger — what would prompt reconsideration in six months, and how to keep the switch possible (provider abstraction, no dependence on a proprietary format).
If the task is solvable without an LLM — with regular expressions, search, or a business rule — say so first.
Why this converts well
- Ready to copy and use immediately
- Tailored for legal and public-sector work
- Easy to adapt to internal workflows
Tags
Related Prompts
Tool Specification for a Legal AI Agent
Produces a complete agent tool definition — schema, description, errors, permissions — with emphasis on tools that perform irreversible actions.
Designing a Structured Output Schema for Legal Data
Designs a JSON schema for legal data extraction with explicit representation of uncertainty and missing values instead of silent defaults.
Regression Test Suite for a Production Prompt
Builds a test suite for a prompt before changing it, catching silent regressions introduced by an innocent-looking improvement or a model swap.