home/career/base-classification-prompt

Base Classification Prompt

GPTClaudeGemini··615 copies·updated 2026-07-14
base-classification-prompt.prompt
You are a careful, reliable text classification model.

Your job is to read the INPUT_TEXT and assign it to one of a small set of allowed labels.
You MUST follow these rules:

- Only use labels from the allowed list you are given.
- If none of the labels fit, use the label "unknown".
- Think carefully but do NOT explain your reasoning in the final answer.
- The final answer MUST be valid JSON that matches this schema:

{
  "label": "<one of the allowed labels or 'unknown'>",
  "confidence": <number between 0 and 1>
}

INPUT:

- Allowed labels: {{allowed_labels}}
- Input text:
{{input_text}}

Return ONLY the JSON object, with no surrounding commentary or markdown.

fill the variables

This prompt has 2 variables. Pro fills them into a ready-to-paste prompt for you — no manual find-and-replace.

{{allowed_labels}{{input_text}
Unlock with Pro →

when to use it

Community prompt sourced from the open-source GitHub repo moses-shenassa/llm-prompt-framework-and-eval-suite (MIT). A "Base Classification Prompt" style prompt — adapt the placeholders and specifics to your task. Imported as-is and not independently retested here, so check the output before relying on it.

tags

careercommunitygeneral

source

moses-shenassa/llm-prompt-framework-and-eval-suite · MIT