Inferensys

Prompt

Ambiguous Model Selection Clarification Prompt

A practical prompt playbook for using the Ambiguous Model Selection Clarification Prompt in production AI workflows to surface trade-off dimensions before recommending a model.
Operations team reviewing AI workflow automation on laptop, workflow builder visible, casual office setup.
PROMPT PLAYBOOK

When to Use This Prompt

Define the job-to-be-done, the ideal user, and the hard constraints that make this prompt necessary.

This prompt is for MLOps engineers and AI engineering agents that receive a model selection request without the necessary decision dimensions—specifically, the task type, latency budget, cost constraints, or accuracy requirements. The job-to-be-done is not to pick a model, but to interrupt an underspecified workflow and produce a structured clarification that surfaces the trade-offs the requester must resolve first. Use this prompt when a model selection request arrives as a vague natural-language instruction like 'pick the best model for this' or 'use a cheaper one,' and the downstream system cannot safely default to a generic model without risking cost overruns, latency violations, or accuracy failures.

Do not use this prompt when the model selection context is already fully specified in the system prompt, when the task has a hardcoded model routing rule, or when the cost and latency envelope is so wide that any reasonable default is safe. This prompt is also inappropriate for real-time, low-latency paths where a blocking clarification round-trip would violate the user's SLA. The ideal user is an AI engineering agent that has access to a model catalog with known cost, latency, and capability profiles, and that operates in a workflow where pausing for clarification is cheaper than executing the wrong model choice. The required context includes the original user request, the available model catalog metadata, and any organizational policies that constrain model selection (e.g., data residency, approved vendor lists).

Before wiring this prompt into production, define the evaluation criteria for a good clarification: it must identify which dimensions are missing (task, latency, cost, accuracy), it must not ask for information already present in the request, and it must present the trade-off in terms the requester can act on without being an ML expert. The next step after reading this section is to review the prompt template and adapt the placeholders to your model catalog and policy constraints.

PRACTICAL GUARDRAILS

Use Case Fit

Where the Ambiguous Model Selection Clarification Prompt works and where it introduces risk. Use these cards to decide if this prompt fits your MLOps or AI engineering workflow.

01

Good Fit: Underspecified Model Requests

Use when: A user or upstream agent requests a 'model' without specifying the task, latency budget, cost constraints, or accuracy requirements. Guardrail: The prompt forces a structured clarification that surfaces the missing trade-off dimensions before any model is recommended.

02

Bad Fit: Trivial or Single-Model Environments

Avoid when: Only one model is available or the choice has no material impact on cost, latency, or accuracy. Guardrail: Implement a pre-check that skips clarification if the model catalog contains fewer than two viable options for the inferred task.

03

Required Input: Task Context and Constraints

What to watch: The prompt cannot clarify what it does not know. If the system has no context about available models, task categories, or organizational constraints, the clarification will be generic. Guardrail: Always inject a current model catalog, task taxonomy, and organizational cost/latency policies into the prompt context before clarification generation.

04

Operational Risk: Over-Clarification Fatigue

What to watch: Asking for clarification on every model selection, even when reasonable defaults exist, creates user friction and slows down autonomous pipelines. Guardrail: Set a confidence threshold. If a default model matches inferred constraints with high confidence, proceed with a transparent assumption note instead of blocking on clarification.

05

Operational Risk: Stale Model Catalog

What to watch: The clarification prompt may recommend dimensions that are no longer relevant or omit new models if the injected catalog is outdated. Guardrail: Validate the model catalog freshness before prompt assembly. If the catalog is older than a defined TTL, escalate for a catalog update rather than generating a misleading clarification.

06

Good Fit: Cost-Aware Engineering Workflows

Use when: Engineering teams need to justify model selection decisions for cost governance or audit. Guardrail: The clarification output should be logged as evidence that the user explicitly chose a cost/latency/accuracy trade-off, creating an auditable decision record.

PROMPT PLAYBOOK

Copy-Ready Prompt Template

A reusable prompt that forces the AI to surface trade-off dimensions and request missing constraints before recommending a model.

This prompt is designed for MLOps and AI engineering agents that receive model selection requests without the necessary context to make a sound decision. Instead of guessing a model or defaulting to a popular choice, the prompt instructs the system to identify which critical dimensions are missing—such as task type, latency budget, cost constraints, or accuracy requirements—and to produce a structured clarification request. The goal is to prevent premature, costly, or misaligned model recommendations by making the trade-offs explicit to the user before any selection logic runs.

Below is the copy-ready template. It uses square-bracket placeholders that your application must populate before sending the request to the model. The [USER_REQUEST] placeholder receives the original, underspecified query. [AVAILABLE_MODELS] should be a structured list of model names and their key characteristics (e.g., cost per token, typical latency, known strengths). [CONSTRAINTS] allows you to inject organizational policies, such as 'only use models deployed in our VPC' or 'do not recommend models that cost more than $0.10 per 1k tokens.' The [OUTPUT_SCHEMA] placeholder defines the exact JSON structure the model must return, which your harness can then validate and render to the user.

text
You are an MLOps model selection assistant. Your primary directive is to never recommend a model when the user's request is ambiguous regarding task, latency, cost, or accuracy requirements. Your job is to identify missing decision dimensions and ask a targeted clarification question before proceeding.

USER REQUEST:
[USER_REQUEST]

AVAILABLE MODEL CATALOG (name, cost_per_1k_tokens, typical_latency_ms, strengths, constraints):
[AVAILABLE_MODELS]

ORGANIZATIONAL CONSTRAINTS:
[CONSTRAINTS]

INSTRUCTIONS:
1. Analyze the user request against the following required dimensions: primary task, latency budget, cost budget, minimum accuracy/quality threshold, and any domain-specific requirements.
2. Identify which dimensions are missing, underspecified, or contradictory.
3. If all required dimensions are present and unambiguous, you may proceed to recommend a model. Otherwise, you must halt and request clarification.
4. When requesting clarification, structure your response as a JSON object that conforms exactly to the output schema below. Do not include any text outside the JSON.
5. In the clarification question, explicitly surface the trade-off the user needs to make (e.g., 'Do you prioritize speed or accuracy?'). Provide concrete, contrasting options based on the available model catalog.

OUTPUT SCHEMA:
[OUTPUT_SCHEMA]

To adapt this template, start by defining your [OUTPUT_SCHEMA]. A robust schema includes a status field (e.g., "needs_clarification" or "ready_to_recommend"), a missing_dimensions array, a clarification_question string, and an options array of concrete alternatives. Next, populate [AVAILABLE_MODELS] with a machine-readable list from your model registry. If your registry is large, use a retrieval step (RAG) to insert only the top-N relevant models into the prompt to manage context length. Finally, wire the prompt into a harness that validates the JSON output against your schema before displaying anything to the user. If validation fails, retry once with the error message injected into the prompt. If the model recommends a model without clarification when dimensions are missing, log the event as a policy violation and escalate for human review. This prompt is a gating mechanism, not a recommendation engine; its success is measured by how often it correctly prevents a bad recommendation, not by how quickly it produces one.

IMPLEMENTATION TABLE

Prompt Variables

Placeholders required by the Ambiguous Model Selection Clarification Prompt. Wire these into your application before sending the prompt to the model. Each variable gates a dimension the model needs to surface in its clarification question.

PlaceholderPurposeExampleValidation Notes

[USER_REQUEST]

The raw model selection request from the user, which may be missing task, latency, cost, or accuracy constraints.

Pick the best model for my project.

Must be a non-empty string. If null or whitespace, the prompt should return a generic clarification asking for any model selection criteria.

[AVAILABLE_MODELS]

A structured list of candidate models with their known properties (name, provider, modality, known strengths).

["gpt-4o", "claude-3.5-sonnet", "gemini-1.5-pro", "llama-3-70b"]

Must be a valid JSON array of model identifiers or objects. If empty, the prompt should clarify that no models are registered and ask for the user's infrastructure constraints.

[TASK_DIMENSIONS]

The dimensions the system cares about for model selection: task type, latency budget, cost sensitivity, accuracy threshold, data privacy, and throughput.

["task_type", "latency_ms", "cost_per_1k_tokens", "accuracy_requirement", "data_residency"]

Must be a valid JSON array of strings. Each string should map to a dimension the prompt will check for in the user request. If empty, the prompt falls back to a generic request for requirements.

[CONFIDENCE_THRESHOLD]

The minimum confidence score (0.0-1.0) required before the system can recommend a model without clarification. Below this, a clarification question is mandatory.

0.85

Must be a float between 0.0 and 1.0. If null or out of range, default to 0.8. The harness should log a warning if the threshold is set below 0.5.

[MAX_CLARIFICATION_ROUNDS]

The maximum number of back-and-forth clarification turns allowed before the system escalates to a human reviewer.

3

Must be a positive integer. If null or 0, the system escalates immediately on first ambiguity. The harness must track turn count and force escalation when exceeded.

[ESCALATION_QUEUE]

The identifier for the human review queue where unresolved model selection requests are routed.

ml-model-selection-review

Must be a non-empty string matching a configured queue name. If null, the prompt should instruct the model to state that escalation is unavailable and ask the user to contact an ML engineer directly.

[OUTPUT_FORMAT]

The expected output schema for the clarification response, defining fields like missing_dimensions, clarification_question, and suggested_options.

{"missing_dimensions": ["latency_ms"], "clarification_question": "What is your maximum acceptable latency in milliseconds?", "suggested_options": null}

Must be a valid JSON Schema object or example structure. The harness must validate the model's output against this schema. If the output fails validation, trigger a retry or repair prompt.

PROMPT PLAYBOOK

Implementation Harness Notes

How to wire the Ambiguous Model Selection Clarification Prompt into an MLOps agent or model recommendation workflow with validation, retries, and human review gates.

This prompt is designed to sit between a user request for a model recommendation and any downstream model registry, inference endpoint, or automated training pipeline. The implementation harness must treat the prompt's output as a gating decision: if the output indicates ambiguity, the system must not proceed to model selection. Instead, it must surface the structured clarification request to the user and block any model invocation, deployment, or cost-incurring action until the user resolves the ambiguity. The harness should wrap the LLM call in a function that returns a typed result—either a ClarificationNeeded object with the trade-off dimensions and question, or a ModelSelected object with the chosen model and rationale. This typed contract prevents downstream code from accidentally treating a clarification as a recommendation.

Wire the prompt into your application with a pre-validation step that checks the incoming request for the required dimensions before calling the LLM. If the user request already contains explicit task type, latency budget, cost constraints, and accuracy requirements, you can skip the clarification prompt entirely and route directly to a model selection prompt. This saves latency and cost. If any dimension is missing, invoke the clarification prompt. After receiving the LLM response, run a post-validation step: parse the output and confirm that either all ambiguity dimensions are addressed with specific user-facing questions, or a concrete model recommendation is provided with justification. If the output is malformed—missing required fields, providing a recommendation while also flagging ambiguity, or failing to identify which dimensions need clarification—retry once with a repair prompt that includes the validation error. If the retry also fails, escalate to a human reviewer with the original request and both failed outputs. Log every clarification event, including which dimensions were ambiguous, the generated question, and the user's eventual response, to build a dataset for improving the prompt and for auditing selection decisions.

For tool-calling agents, expose the clarification prompt as a tool that the agent can invoke when it detects an underspecified model request. The tool's schema should return a structured clarification object, not a raw text block. The agent's planner should be instructed to call this tool before calling any model registry or deployment tool. If the agent attempts to call a model selection tool without first resolving ambiguity, the harness should intercept the call and force the clarification tool to run. This is a hard gate, not a suggestion. For evaluation, maintain a golden set of ambiguous and unambiguous model requests. Measure the prompt's precision (did it flag ambiguity only when needed?) and recall (did it catch all underspecified requests?). Track the rate of unnecessary clarifications—cases where the user had provided sufficient information but the prompt still asked for clarification—as this directly impacts user friction. Set a target for unnecessary clarification rate below 5% and monitor it in production. When the prompt fails, the most common failure mode is asking for clarification on dimensions the user already provided; address this by iterating on the prompt's instruction to check all provided context before flagging a dimension as missing.

IMPLEMENTATION TABLE

Expected Output Contract

Defines the exact fields, types, and validation rules for the clarification response generated by the Ambiguous Model Selection Clarification Prompt. Use this contract to parse, validate, and route the output in your application harness.

Field or ElementType or FormatRequiredValidation Rule

clarification_question

string

Must be a single interrogative sentence. Must not contain a model recommendation. Length must be between 20 and 300 characters.

trade_off_dimensions

array of objects

Array must contain 2-4 objects. Each object must have 'dimension' (string), 'options' (array of strings with 2-5 items), and 'impact' (string) fields. No dimension may be repeated.

trade_off_dimensions[].dimension

string

Must be one of: 'task_type', 'latency_budget', 'cost_budget', 'accuracy_requirement', 'data_modality', 'deployment_target', 'context_window'. Must match a dimension missing from the original request.

trade_off_dimensions[].options

array of strings

Each option must be a concrete, mutually exclusive choice within the dimension. Example: ['real-time (<100ms)', 'near-real-time (<2s)', 'batch processing'].

trade_off_dimensions[].impact

string

Must explain in one sentence how this choice affects model selection. Must not recommend a specific model. Example: 'Real-time latency requires smaller models or specialized hardware.'

current_understanding

string

Must summarize what was understood from the original request in 1-2 sentences. Must be neutral and factual. Must not assume missing parameters.

missing_parameters

array of strings

Must list 2-4 parameter names that are missing from the original request. Each must correspond to a trade_off_dimension. Must not include parameters that were explicitly provided.

escalation_flag

boolean

Must be true if the original request is too vague to form any clarification (e.g., 'pick a model for me' with zero context). Otherwise false. When true, clarification_question should request basic task description.

PRACTICAL GUARDRAILS

Common Failure Modes

What breaks first when an AI agent tries to clarify an ambiguous model selection request, and how to prevent each failure in production.

01

Clarification Overload: Asking Too Many Questions at Once

What to watch: The prompt returns a long list of missing dimensions (task, latency, cost, accuracy, throughput, hardware) in a single turn. Users abandon the interaction or provide partial answers that leave critical dimensions still unresolved. Guardrail: Prioritize dimensions by decision impact. Ask for the single most constraining dimension first (usually task type or latency budget), resolve it, then ask the next. Implement a maximum of two clarification questions per turn.

02

False Precision: Recommending a Model Without Resolving Ambiguity

What to watch: The agent defaults to a popular model (e.g., GPT-4o) when the user hasn't specified cost sensitivity or latency requirements, silently making assumptions that may violate the user's actual constraints. Guardrail: Require explicit confirmation on any dimension where the agent imputes a default. If cost wasn't specified, the clarification must state the assumed cost profile and ask for confirmation before proceeding to recommendation.

03

Jargon Barrier: Using MLOps Terminology the Requester Doesn't Understand

What to watch: The clarification asks about 'p99 latency,' 'TTFT,' or 'throughput in tokens per second' to a user who thinks in terms of 'fast' or 'cheap.' The user either guesses or ignores the question. Guardrail: Translate each trade-off dimension into plain-language options with concrete examples. Instead of 'What is your latency budget?' ask 'Should responses arrive in under 200ms (real-time), under 2 seconds (interactive), or is longer acceptable (batch)?'

04

Missing the Real Constraint: Optimizing for the Wrong Dimension

What to watch: The user asks for 'the best model for summarization' and the agent clarifies accuracy requirements, but the user's real constraint is that the model must run on a private VPC with no external API calls. The clarification never surfaces the deployment constraint. Guardrail: Include a catch-all clarification step that asks about non-functional requirements: deployment environment, data residency, API vs. local, and compliance constraints before narrowing to performance dimensions.

05

Clarification Loop: Never Converging on a Decision

What to watch: Each clarification answer reveals a new ambiguity, and the agent keeps asking follow-ups without progressing toward a recommendation. The user experiences an infinite question chain. Guardrail: Set a maximum clarification depth (e.g., 3 rounds). After the limit, produce a ranked shortlist of 2-3 models with explicit trade-offs stated and ask the user to pick, rather than asking another clarifying question.

06

Silent Assumption Drift: Changing the Recommendation Basis Mid-Conversation

What to watch: The agent clarifies latency, then later recommends a model based on accuracy without acknowledging that the latency constraint was relaxed. The user doesn't realize the trade-off shifted. Guardrail: Restate all resolved constraints at the start of the recommendation. Use a structured format: 'Based on your requirements: task=summarization, latency=<200ms, cost=low priority, deployment=private cloud. Here is the recommended model and why.'

IMPLEMENTATION TABLE

Evaluation Rubric

Use this rubric to test whether the Ambiguous Model Selection Clarification Prompt produces high-quality clarifications before shipping. Each criterion targets a specific failure mode in model selection workflows.

CriterionPass StandardFailure SignalTest Method

Trade-off Dimension Coverage

Clarification surfaces at least 3 of: task type, latency budget, cost constraints, accuracy requirements, or deployment environment

Clarification asks only about model name or a single dimension; misses critical trade-offs like cost vs. accuracy

Run 20 ambiguous model selection requests; check that each clarification response mentions 3+ trade-off dimensions

No Premature Recommendation

Clarification asks questions without suggesting a specific model before receiving answers

Response includes phrases like 'I recommend using GPT-4o' or 'Claude would work well here' before the user clarifies constraints

Scan 50 clarification outputs for model name mentions; flag any that appear before the user's clarifying response

Question Specificity

Each question targets a single, answerable dimension with concrete options or examples

Questions are vague ('What do you need?') or compound ('What's your budget and latency and accuracy need?') without scaffolding

Human review of 30 clarification outputs; rate each question on specificity scale 1-5; require mean >= 4

Constraint Elicitation Completeness

Clarification asks about all missing dimensions from [INPUT] that are required for model selection

Clarification ignores a dimension that was explicitly absent from the user's request and is necessary for the decision

Schema check: compare dimensions present in [INPUT] against dimensions asked in clarification; flag gaps

Latency Budget Elicitation

When task type implies real-time vs batch trade-off, clarification asks about latency requirements with concrete thresholds

Clarification never mentions latency or asks only 'Is latency important?' without offering ranges (e.g., <100ms, <1s, batch OK)

Test with 10 real-time task descriptions and 10 batch task descriptions; verify latency question appears in >= 80% of real-time cases

Cost Sensitivity Elicitation

Clarification asks about cost constraints when the task could be served by models at different price points

Clarification assumes cost is irrelevant or asks only 'Do you care about cost?' without framing trade-offs

Test with 10 tasks that have clear cost trade-offs (e.g., high-volume classification vs. one-off analysis); verify cost question in >= 80%

Clarification Brevity

Clarification is 2-4 questions, not an exhaustive survey; respects user attention

Clarification asks 6+ questions in a single turn, overwhelming the user with a wall of questions

Count questions per clarification across 50 outputs; flag any with >5 questions; require mean <= 4

No Hallucinated Constraints

Clarification does not invent constraints the user never stated and does not assume defaults

Clarification includes phrases like 'Since you probably need low latency...' or 'Assuming cost is not a concern...'

Adversarial test: submit requests with zero constraints stated; verify clarification contains no assumed values or defaults

ADAPTATION OPTIONS

Adapt This Prompt

How to adapt

Use the base prompt with a frontier model and manual review of clarification quality. Replace [MODEL_CATALOG] with a short static list of 3-5 model families. Skip the structured output schema initially and let the model produce free-text clarification questions.

Watch for

  • Clarifications that are too open-ended and don't surface specific trade-off dimensions
  • Missing cost or latency dimensions in the clarification
  • Model recommending a specific model instead of asking for missing constraints
Prasad Kumkar

About the author

Prasad Kumkar

CEO & MD, Inference Systems

Prasad Kumkar is the CEO & MD of Inference Systems and writes about AI systems architecture, LLM infrastructure, model serving, evaluation, and production deployment. Over 5+ years, he has worked across computer vision models, L5 autonomous vehicle systems, and LLM research, with a focus on taking complex AI ideas into real-world engineering systems.

His work and writing cover AI systems, large language models, AI agents, multimodal systems, autonomous systems, inference optimization, RAG, evaluation, and production AI engineering.