LLM System Prompts: Reduce Pedantic Corrections with Context Classification

    Context classification can help LLM assistants distinguish factual claims from metaphors and philosophical questions before responding. This article provides a system prompt template, explains how to preserve scientific accuracy without creating false balance, and outlines common mistakes, evaluation methods, and application-specific adjustments. The approach requires validation on your own data.

    Why LLMs Make Pedantic Corrections

    Many developers encounter the same problem when testing conversational assistants: a user makes a metaphorical statement, and the model responds by correcting its literal meaning. For example, a user writes, “Water is pure energy, and fountains are the source of life.” The model replies, “Water is H2O, not energy.” The response is chemically accurate, but it misses the user’s intent.

    Part of the problem lies in how system prompts are written. If a prompt emphasizes only “ensure factual accuracy” and “always correct errors,” the model may treat every input as a factual claim to verify. It fails to distinguish between reporting facts and expressing feelings, metaphors, or a worldview. The resulting conversation feels rigid and can leave users feeling talked down to.

    This tendency can be understood as an overly fact-checking-oriented approach that prioritizes logical clarity and verifiability. That is a useful analogy, not a definitive explanation of the model’s internal mechanisms. A more actionable response is to add a classification step to the prompt: identify the context first, then choose how to respond.

    Classify the Context Before Choosing a Response

    This approach divides user input into three categories.

    1. Empirical claims

    These are factual statements that can be tested through observation, experiments, or data, such as “Water boils at 100°C under standard atmospheric pressure.” For these inputs, the model should check the facts and, when it finds an error, provide an accurate explanation with supporting evidence.

    2. Metaphorical or poetic expression

    These statements use metaphor, symbolism, or expressive language to communicate feelings or a worldview without asserting literal facts. An example is “Time is a river that never flows backward.”

    The model should respond within the metaphor rather than correct it literally. If the metaphor could cause confusion, a single sentence can clarify the distinction between its figurative and literal meanings.

    3. Philosophical or value-based discussion

    These inputs explore meaning, ethics, aesthetics, existence, or related questions—for example, “Does happiness require effort?” The model should present major perspectives and their assumptions without deciding the answer for the user. Its tone should remain calm and measured.

    A common classification challenge is that one sentence can contain both metaphor and fact. Consider: “Fountains are the source of life because the human body is about 60% water.” The first part is metaphorical; the second is a testable claim. The model should verify the factual component while remaining open to the metaphor.

    Scientific Consensus and False Balance

    Context classification should not become an excuse to overlook factual errors. When a scientific conclusion is supported by strong evidence, the model should state it clearly. For example, Earth is approximately spherical, and extensive observational evidence supports the established understanding of the main drivers of climate change.

    For such conclusions, the model should not respond as though “both sides have a point.” That would give equal standing to positions with unequal evidentiary support—a practice known as false balance.

    Conversely, when evidence is limited or a genuine dispute exists, the model should acknowledge uncertainty and identify the types of sources supporting its answer rather than project unwarranted confidence.

    Teams maintaining system prompts can create a scientific consensus reference list covering topics that require a clear, evidence-based position, then review it regularly. Its purpose is to ground the model’s responses in evidence rather than leave them to ad hoc judgment.

    A Minimal System Prompt Template

    The following template can be placed in an application’s system message and adapted to its requirements.

    1. You are a knowledge assistant. Before responding to user input, identify its context and choose the appropriate response style.
    2. Context categories:
    3. A. Empirical claims: Factual statements that can be tested through observation, experiments, or data.
    4. B. Metaphorical or poetic expression: Language that uses metaphor, symbolism, or expressive phrasing to communicate feelings or a worldview without asserting literal facts.
    5. C. Philosophical or value-based discussion: Questions about meaning, ethics, aesthetics, existence, or related topics.
    6. Response rules:
    7. 1. Category A: Check the facts. When evidence is strong and the conclusion is clear, provide an accurate explanation and briefly state its basis.
    8. 2. Category B: Respond within the user's metaphor rather than correcting it literally. If necessary, clarify the distinction between figurative and literal meaning in one sentence.
    9. 3. Category C: Explain the main perspectives and their assumptions without deciding the answer for the user.
    10. 4. If an input contains testable factual claims, handle those components under Category A.
    11. Scientific consensus boundaries:
    12. State well-supported scientific conclusions clearly. Do not frame them as situations where "both sides are equally valid."
    13. When evidence is limited or a genuine dispute exists, explain the uncertainty and the basis for the answer.
    14. Tone:
    15. Do not be condescending or sarcastic. Do not substitute rhetorical questions for answers. State uncertainty directly.

    Common Mistakes and How to Evaluate Results

    Classifying too broadly. If the model treats every unfamiliar statement as a metaphor, it may let factual errors pass. Make clear that Category B applies only to expressions that do not assert testable facts. In mixed inputs, factual components still require verification.

    Listing prohibitions without decision criteria. An instruction such as “Do not be pedantic” does not tell the model how to distinguish contexts. Define the criteria for each category and provide examples.

    Letting empathy override factual accuracy. If a prompt strongly emphasizes making users feel understood, the model may concede scientific points inappropriately. Keep scientific consensus boundaries in a separate section before the tone requirements.

    To evaluate the approach, build a test set containing a few dozen inputs across all three categories, along with several questions involving established scientific conclusions. Track two measures separately:

    • Unnecessary correction rate: The proportion of Category B and C inputs that receive inappropriate factual corrections.
    • Missed correction rate: The proportion of incorrect Category A claims that are not corrected.

    Have human reviewers score response quality as well. After changing the prompt, repeat the tests and compare the results.

    No empirical test results are provided here. The effectiveness of this approach needs to be validated on data from your own application.

    Adjust the Configuration for Each Use Case

    Different applications need different emphasis within the classification rules.

    Application Primary categories Configuration priorities
    Code generation and data analysis Mostly A Use strict verification by default; do not enable metaphor-response rules.
    Creative writing and general knowledge Q&A More B and C Add rules for handling metaphors and presenting multiple perspectives.
    Emotional support and customer service Mainly B and C, while retaining A Prioritize tone in delivery while maintaining factual boundaries separately.
    Enterprise knowledge base Q&A Mostly A Maintain a consensus reference list and require source citations.