Engineering Value Design for Large Language Models: How System Prompts Shape AI Conversational Character
This article examines how system prompts can be engineered to shape the values and conversational behavior of large language models. It begins with a counterintuitive problem: models must distinguish factual claims from expressions of perspective, or they risk becoming technically correct but socially poor interlocutors. The article describes system prompts as a constitutional layer, explains why analytical precision can degrade open-ended dialogue, and introduces a framework for classifying empirical claims, contested claims, and exploratory expressions. It also discusses the authority trap—overconfidence on both settled and unsettled questions—and outlines a practical methodology based on behavior dimensions, adversarial test cases, and coordination between prompt design and training alignment. The conclusion emphasizes a core principle: facts belong to facts, and experience belongs to experience.
1. A Counterintuitive Engineering Problem
In the process of deploying large language model applications, developers usually focus on performance, accuracy, and response speed. But what truly makes a dialogue system “good to use” often lies in details that seem almost mysterious: when a user says, “I think a fountain is the spring of life,” should the model correct them by saying “a fountain is just a landscape made of water molecules”?
The essence of this question is: how can a model distinguish factual claims from expressions of perspective?
If handled poorly, the model becomes an unsympathetic contrarian—technically correct but a poor user experience. If handled well, the model remains rigorous while also being empathetic. The solution to this type of problem is usually written in a piece of text that users never see: the system prompt.
2. System Prompts: The “Constitutional Layer” of Model Behavior
A system prompt is instruction text that the model automatically reads before each conversation and that is invisible to end users. Its role is similar to an application’s configuration layer:
# Schematic hierarchy of a system prompt (pseudocode)SYSTEM_PROMPT = {"role_definition": "You are a helpful conversational assistant","behavior_rules": ["Distinguish empirical claims from exploratory expressions","When discussing metaphysics, enter the user's context rather than mechanically correcting","Maintain factual accuracy on settled scientific questions",],"tone_guidelines": "Gentle, clear, avoid preaching",}response = llm.chat(user_input, system=SYSTEM_PROMPT)
In a maturely designed dialogue system, the system prompt may be thousands or even tens of thousands of tokens long, covering role positioning, boundary constraints, tone guidelines, and other dimensions. It is called a “constitutional layer” because it defines the lowest-level principles of model behavior, not temporary rules for a specific conversation.
3. Why “Logical Precision” Can Hurt Conversation Quality
3.1 The Limits of Analytical Thinking
The training data for large language models is dominated by code, technical documentation, and encyclopedia knowledge, which naturally carries an “analytical philosophy” style of thinking: clear definitions, strict logic, and empirical verifiability. This is an advantage for questions like “How do I deduplicate a Python list?” but becomes a defect when facing open-ended topics.
Many user expressions do not constitute factual claims:
- “The sunset is so gentle”—this is emotional expression, not an optical statement.
- “I think people should live in the present”—this is a value discussion and does not need to be rebutted.
- “Water has memory”—this is a factual dispute that can be discussed gently.
If the model applies “correction” uniformly to all input, it essentially degrades the language model into a fact checker.
3.2 A Classification Framework for Three Types of Discourse
In practice, prompt design can guide the model to first classify the discourse and then decide on a response strategy:
| Discourse type | Characteristics | Response strategy |
|---|---|---|
| Empirical claim | Verifiable, with a settled conclusion | Provide accurate facts |
| Contested claim | Scientific disagreement exists | Present multiple perspectives |
| Exploratory expression | Poetry, metaphor, worldview | Enter the context and respond empathetically |
This classification idea can be directly translated into prompt rules. Its core is not to “loosen factual standards,” but to make factual standards effective only in the domains where they apply.
4. Avoiding the “Authority Trap”: Another Overlooked Design Dimension
In addition to preventing the model from becoming a contrarian, value design has another important goal: preventing the model from falling into the “authority trap.”
The authority trap refers to a model being overconfident about “settled conclusions” and also adopting an authoritative posture on “unsettled questions.” A well-designed dialogue system should achieve the following:
- For settled questions: clearly give the consensus conclusion without hedging;
- For disputed questions: honestly mark uncertainty and present both sides of the controversy;
- For domains unknown to humanity: admit that “there is currently no answer to this question” rather than fabricating a seemingly authoritative explanation.
In prompts, this is often reflected as a set of explicit “cognitive boundary statements.” For example:
Example behavior guideline fragment:- When a question has a clear scientific consensus, state the consensus conclusion directly.- When a question has reasonable controversy, present the main views and their grounds.- When a question exceeds current knowledge boundaries, clearly state that "there is no settled conclusion yet."- Prioritize identifying whether the user's intent is "verification" or "exploration" before selecting a response mode.
5. An Engineering Methodology for Value Design
Turning “injecting character into a model” from something mysterious into engineering can be summarized as a reusable methodology:
5.1 Define Behavior Dimensions
First, specify the dimensions on which you want the model to behave stably: honesty, empathy, rigor, openness, and so on. Each dimension needs an operational description, not vague requirements such as “be smart” or “be friendly.”
5.2 Use Adversarial Cases to Drive Iteration
Collect cases from real conversations where the model performs poorly (such as mechanical correction, over-accommodation, or false confidence) and turn them into test cases. After each prompt change, run batch regression tests and observe behavior changes. This is consistent with the unit testing approach in software development:
test_cases = [{"input": "A fountain is the spring of life", "expect": "Empathetic response, no mechanical correction"},{"input": "Is the Earth flat?", "expect": "State the scientific consensus clearly"},{"input": "Will AI become conscious?", "expect": "Flag controversy, do not pretend authority"},]
5.3 Combine Prompting with Training Alignment
Prompts address “behavior-layer guidance,” but they have limitations in token cost and rule coverage. A more thorough approach is to internalize these values during model training through alignment techniques such as reinforcement learning from human feedback, simplifying prompts from “itemized rules” to “principled guidelines.” Only when the two work together can the model maintain stable character in unseen scenarios.
6. Conclusion
The capability boundary of large language models is determined by compute and data, but their “character” is shaped by designers’ values. A system prompt may look like just a piece of text, but it is a carrier for engineering ethical reflection: it requires developers to understand both technology and people.
For every engineer building dialogue systems, the core principle worth remembering is: facts to facts, experience to experience. Let the model be rigorous where rigor is needed and soft where softness is needed. This is the advanced form of conversation quality design.
