Apply to my task
arXiv:2507.14944 ★ 72 Jul 20, 2025

LEKIA, Constitution + Precedents: how to make an LLM act like an experienced professional

Key result

Finding: an LLM fills in details that were never there. A user writes "my family hurt me" and the model replies "your father's behavior is unacceptable." Not a word about a father. This is the semantic reconstruction risk: the model fills gaps with whatever seems likely to it, and in sensitive situations that can do harm. LEKIA lets you build an onboarding-style prompt that turns an LLM from a technically accurate answering machine into a professional who behaves appropriately and safely. The trick: a three-layer "Constitution + Precedents" structure, rules and ethics first, then real examples of correct behavior. The model understands not only WHAT to do but exactly what it looks like in a real answer.

LEKIA: Expert-Aligned AI Behavior Design for High-Risk Human-AI Interactions

Key Aspects of the Study:

The study proposes LEKIA, a framework that teaches an LLM to behave like an experienced professional (a psychologist, for example) rather than just give technically correct answers. It does this with a three-layer "knowledge injection" system: first the model gets foundational principles and ethics (a "Constitution"), then high-quality examples of correct behavior ("Precedents"), and finally the system learns from expert feedback.

Key Result: This multi-layer approach, combining theory and practice, significantly improves how well the LLM's behavior matches expert expectations, making its answers more appropriate, empathetic and safe in difficult situations.


The Core Idea of the Method:

For an everyday user, LEKIA comes down to building a "super-prompt" that imitates this three-layer architecture. Instead of just handing the LLM a task, you first build a complete "training program" for it, right inside a single prompt.

Think of it as onboarding a new employee:

  1. The theory layer ("Constitution" / "Why"): This is your set of rules and principles. You clearly spell out the role, values, ethical boundaries and core directives. Not just "be polite," but concrete guidance: "Never blame the user," "Show empathy before offering a solution," "Avoid sweeping statements." This layer answers the question "WHY do we act this way?"

  2. The practice layer ("Precedents" / "How"): This is your library of best practices, or "Golden Seeds," as the paper calls them. You give the LLM a few concrete dialogue examples (input -> ideal response) that illustrate how the "Constitution" principles are applied. This layer shows HOW the theory looks in practice, setting the right tone, style and response structure.

  3. The evaluation layer ("How well"): Within a single prompt, this layer is handled by the user. When the LLM answers, you evaluate it and, if needed, adjust the "Constitution" or add a new "Precedent" to sharpen the task in your next prompt.

One of the study's most important findings is the "semantic reconstruction risk". That's when an LLM, trying to be helpful, fills in and states facts the user never shared. For example, in response to "My family hurt me," the model might say "Your father's behavior is unacceptable," even though no father was mentioned. Knowing about this risk teaches users to write prompts that forbid the model from making assumptions like that.


Practical Applicability Analysis:

  • Direct applicability: Users can immediately start structuring their complex prompts on the "Constitution + Precedents" model. Instead of a messy pile of instructions, they can create a clear section of rules and a section of examples. This is especially useful for building personal assistants, customer support bots or any task that requires a consistent style.

  • Conceptual value: The main idea is "technical accuracy ≠ meeting expectations". This fundamentally changes how you approach prompting. The user starts thinking not only about whether the model solves the task, but also about how it does it. It helps explain why an LLM sometimes behaves "dumb" or "inappropriately" even when the answer is formally correct, and gives you the tools to fix that.

  • Adaptation potential: The method adapts easily to any field.

    • Copywriting: The "Constitution" lays out brand principles (tone, vocabulary, off-limits topics), and the "Precedents" contain examples of good and bad copy.
    • Customer service: The "Constitution" holds the company's complaint-handling policy, the "Precedents" hold response scripts for common requests.
    • Personal assistant: The "Constitution" holds your personal communication-style preferences, the "Precedents" show how you want it to format emails or summaries.

Practical Example:

You are an empathetic customer service assistant for the online store "Cozy Home." Your job is to respond to customer complaints, following the strict principles and examples below.

---
### **THEORY LAYER (CONSTITUTION): YOUR PRINCIPLES**
1.  **Empathy above all:** Always start with sympathy and acknowledgment of the customer's problem. Use phrases like "I'm so sorry you ran into this" or "I understand how frustrating this is."
2.  **Never blame the customer:** Even if it seems the customer is wrong, don't argue or shift the blame.
3.  **Offer a solution, not excuses:** Don't explain *why* the mistake happened (warehouse issues, system glitch). Go straight to *how* you can help.
4.  **Be specific:** Offer clear steps, timelines or options.
5.  **No semantic reconstruction:** Don't make assumptions about details the customer didn't mention. If the customer says "the package didn't arrive," don't assume it was "stolen" or "lost by the carrier."

---
### **PRACTICE LAYER (PRECEDENTS / "GOLDEN SEEDS")**

**Example 1:**
*   **Customer message:** "I ordered a throw blanket from you and it arrived with a hole in it! This is outrageous! Don't you check your products before shipping?"
*   **Your ideal response:** "Hello! I'm so sorry you received the blanket in that condition. That's completely unacceptable, and I understand your disappointment. Let's fix this right away. We can ship you a new blanket today or give you a full refund. Which option works better for you?"

**Example 2:**
*   **Customer message:** "Where is my order #12345? It was supposed to arrive yesterday and it's still not here!"
*   **Your ideal response:** "Hi there! I understand how annoying it is to wait for an order that's running late. I apologize for the situation. I'm already checking the status of your order #12345. Please give me just a couple of minutes; I'll contact the courier service and get back to you with the exact location of your package."

---
### **CURRENT TASK**

Now, based on these principles and examples, respond to the following customer message:

**Customer message:** "I'm furious! Your coffee maker broke after a week of use! It just stopped turning on. For this price I expected better quality!"

Why It Works:

This prompt is effective because it reproduces LEKIA's logic exactly:

  1. The "Constitution" sets the boundaries: The principles (empathy, no blame, focus on solutions) create a solid foundation for the LLM's behavior. The model understands that its main goal isn't just to generate text but to do it within a specific professional ethic. Principle #5 directly prevents the "semantic reconstruction risk."
  2. "Precedents" show how it's done: The "Golden Seeds" examples translate abstract rules into concrete wording. The model sees exactly what "empathy" looks like ("I'm so sorry..."), what "a solution, not an excuse" looks like (options are offered right away), and the right tone of voice. This helps it avoid robotic, inappropriate responses.
  3. Combining theory and practice: The model doesn't just copy the examples; it uses them to understand how to apply the "Constitution" rules to a new, unique situation. That lets it produce an answer that both follows the rules and sounds natural and fitting for a complaint about a coffee maker.

Another Practical Example

You are an experienced HR manager who helps managers write constructive feedback for employees. Your job is to rephrase a manager's feedback so it becomes motivating and growth-oriented.

---
### **THEORY LAYER (CONSTITUTION): PRINCIPLES OF CONSTRUCTIVE FEEDBACK**
1.  **Focus on behavior, not personality:** Critique specific actions or their results, not the employee's personal traits ("Your report was late" instead of "You're irresponsible").
2.  **Specifics and facts:** Use measurable facts and examples, not general judgments ("Three of your last five reports were missing data for region X" instead of "You're careless").
3.  **Balance and positive intent:** Start by acknowledging strengths or a positive contribution to build trust.
4.  **Future focus:** End the conversation by discussing concrete steps for improvement and offering support ("Let's think together about how we can fix this" instead of "Don't do that again").
5.  **No "sandwiches":** Avoid the outdated "praise-criticism-praise" model. Keep the conversation honest and open.

---
### **PRACTICE LAYER (PRECEDENTS / "GOLDEN SEEDS")**

**Example 1:**
*   **Manager's feedback:** "Emma keeps missing deadlines. She's very slow and disorganized. She needs to start working faster."
*   **Your ideal rephrased version:** "Emma, I'd like to talk about your work on the last few projects. I really value your thoughtfulness and attention to detail; that's a real strength. At the same time, I noticed that the tasks for projects A and B were delivered 2-3 days past the deadlines. Let's figure out together what might have caused that and think about what resources or support from me would help you hit deadlines going forward. Maybe we should revisit how we plan?"

---
### **CURRENT TASK**

Now, based on these principles and the example, rephrase the following feedback from a manager:

**Manager's feedback:** "Jake does a poor job in meetings. He mumbles, sounds unsure and can't get his point across. Clients don't listen to him. It looks unprofessional."

Why This Example Works.

This prompt works by giving the LLM the role of an "expert intermediary" who has mastered a professional methodology (the principles of constructive feedback).

  1. The "Constitution" as methodology: The principles (focus on behavior, facts, future orientation) aren't just etiquette rules; they're the foundation of modern HR practice. The model gets a clear framework that filters out toxic and ineffective wording.
  2. The "Precedent" as a demonstration of skill: The example with Emma shows how a dry, negative review turns into a supportive, solution-oriented conversation. The model sees how the abstract principle "focus on behavior, not personality" plays out in specific phrases ("the tasks were delivered late" instead of "you're slow").
  3. Solving a hard task: The original feedback about Jake is emotional and full of value judgments ("mumbles," "unsure"). Without the clear LEKIA structure, the model might just soften the wording. But thanks to the prompt, it understands that the message has to be completely rebuilt: find a positive point to open with, translate judgments into a description of specific behavior, and propose looking for a solution together, demonstrating "alignment with expert expectations" (in this case, an HR expert's).

Usefulness Score: 85

02

Main Evaluation Criteria

  • A. Relevance to prompting techniques: High. The study proposes an architecture (Theory + Practice + Evaluation) that translates directly into the structure of a complex prompt: "Constitution" (a system prompt with rules) + "Precedents" (few-shot examples).
  • B. Better conversational answers: Very high. The whole point of the study is to improve the nuances of LLM behavior in dialogue so that answers aren't just technically correct but match expert expectations (empathy, tone, professionalism).
  • C. Direct practical applicability: Medium, but with high adaptation potential. The user can't recreate the entire LEKIA system with its agents, but can fully simulate its core (the Theory and Practice layers) in a single prompt.
  • D. Conceptual value: Very high. It introduces a critically important distinction between "technical correctness" and "meeting expert expectations." It explains why a set of rules alone isn't enough and why high-quality examples are needed. It exposes a risk like "semantic reconstruction" (when the LLM fills in facts).
  • E. New useful practice: The paper falls into several clusters at once:
    • Cluster 1 (Phrasing techniques): Provides a methodology for combining role-play, instruction structuring and few-shot.
    • Cluster 3 (Structure optimization): Proposes a clear hierarchical structure for complex prompts.
    • Cluster 7 (Reliability and stability): The whole paper is aimed at making AI behavior more reliable and predictable in difficult scenarios.

Practicality checklist (+15 points): Yes, the study explains how to structure complex requests, reveals non-obvious LLM behavior (semantic reconstruction) and offers ways to improve answer consistency. That's +15 points to the base score.

03

Numeric Usefulness Score

Arguments for a score of 85: The study provides a powerful mental model for building complex, "expert" prompts. The "Theory (Why) + Practice (How)" concept is a ready-made recipe for anyone who wants the LLM not just to answer but to act within a specific role and style. The "semantic reconstruction risk" it identifies is extremely valuable knowledge for anyone working with sensitive information. The paper teaches how to think about prompting for complex tasks, which is worth more than any single trick.

Counterarguments (why the score could be lower): * For a beginner, this may seem too complicated. The study describes a whole architecture, not a simple "add this phrase" technique. Getting direct value requires effort from the user to adapt it and build their own "Theory" and "Practice" layers in the prompt. * The main focus is on high-risk domains (psychology), which may seem niche. However, the principles carry over easily to any task where tone and style matter (customer service, management, copywriting).

Counterarguments (why the score could be higher): * For an advanced user or a prompt engineer building LLM agents, this study is a gold mine. It provides a proven methodology for designing AI behavior that can take work quality to a whole new level. For that audience, the score might be 90-95.


Research digest

Key result

Finding: an LLM fills in details that were never there. A user writes "my family hurt me" and the model replies "your father's behavior is unacceptable." Not a word about a father. This is the semantic reconstruction risk: the model fills gaps with whatever seems likely to it, and in sensitive situations that can do harm. LEKIA lets you build an onboarding-style prompt that turns an LLM from a technically accurate answering machine into a professional who behaves appropriately and safely. The trick: a three-layer "Constitution + Precedents" structure, rules and ethics first, then real examples of correct behavior. The model understands not only WHAT to do but exactly what it looks like in a real answer.

Principle

A standard prompt is a list of tasks. LEKIA builds an onboarding, like for a new employee. Layer 1, the "Constitution": rules and ethics (WHY this way and not another). Not just "be polite," but specific: "Never name people or roles the user didn't mention." That's an explicit ban on semantic reconstruction right inside the prompt. Layer 2, "Precedents" (the authors call them "Golden Seeds"): real examples of correct answers (HOW). The model sees not an abstract "show empathy" but a concrete phrase: "I want to understand what happened. Tell me more." Layer 3, evaluation: you look at the result and adjust the Constitution or add a new Precedent if the model missed the mark. This is an iteration you do yourself.

Why it works

Technical accuracy is not the same as meeting an expert's expectations. An LLM is trained to give correct answers, not to behave correctly. A single instruction like "be empathetic" is vague. The model interprets it its own way and produces something formally correct but cold or out of place. Precedents solve this: they translate abstract principles into a concrete style and tone. The model doesn't copy the example; it extracts a pattern from it and applies it to a new situation. The Constitution sets the boundaries. Precedents show what those boundaries look like in a real answer. Drop either layer and you have either no boundaries or no idea how to stay within them.

When to apply

Customer support → especially for handling complaints and conflicts, when tone and emotional precision matter. Psychological and emotional support → when the cost of an inappropriate answer is high. HR communications → turning harsh feedback into constructive feedback. Personal assistants with a consistent style → support bots, brand voice, internal tools. NOT a fit for: simple factual tasks ("find the date," "translate the text," "summarize the article"), where a three-layer structure is overkill and just bloats the prompt with no payoff.

Mini recipe

1. State the role: not a task but a professional stance. Not "answer complaints" but "you are an empathetic customer support specialist whose main goal is to defuse tension and offer a solution." 2. Write the Constitution: 4-6 specific principles with prohibitions. Be sure to add a separate item: "Don't name people, roles or details the user didn't mention." 3. Add Precedents: 2-3 "situation → ideal answer" pairs. Pick hard cases: aggression, uncertainty, emotional charge. Easy examples don't teach anything important. 4. Give the task: insert the real user request after the whole structure. 5. Evaluate and iterate: if the answer goes off course, add a new Precedent or refine a rule. That's your third layer.

Examples

[BAD]: `You are a psychologist. Reply to this message: "My family hurt me"` (Result: the model will likely start filling in who hurt them and what happened, and say something like "your loved ones' behavior is unacceptable") [GOOD]: `You are an empathetic counseling psychologist. Your goal is to support and understand, not to judge or advise. ### CONSTITUTION: 1. Always start with sympathy, before asking any question. 2. Never name specific people or roles the user didn't mention themselves. 3. Don't give advice until you've fully clarified the situation. 4. Ask open questions: "Tell me more" instead of "Was it your husband?" 5. Don't make assumptions about details the user didn't name. ### PRECEDENT: User: "Everything's going wrong at work, I don't know what to do" Answer: "That sounds hard, and I'm glad you decided to talk about it. I want to understand what exactly is going on. What happened?" ### TASK: User: "My family hurt me"`

In plain words

The point of LEKIA is that ordinary instructions for AI models are hot air in critical situations. When an AI has to talk to someone under stress or in a conflict, standard bans like "don't be rude" don't work, because the model starts dodging or spitting out dry corporate-speak. The researchers figured out that for an AI to act like a pro, it needs not just instructions but a rigid framework of values that keeps the model from sliding into fake sympathy or, worse, excuses.

It's like hiring an intern for customer support and, instead of handing them a script, pairing them with an experienced mentor who slaps their wrist every time they start mumbling. You don't just say "be polite"; you sew a professional code into them, where every word has been vetted by experts. As a result, the AI stops guessing what to say and starts working by clear gold standards that can't be ignored.

The method rests on two things: a constitution and precedents. First you give the model the "law": for example, you forbid blaming the customer or making excuses, focusing it only on the solution. Then you feed it Golden Seeds, ideal sample answers that human experts have polished to a shine. This kills the main problem, semantic reconstruction, where the model seems to say the right words but sounds like a soulless robot or, the other way around, starts making up dangerous stuff on its own.

The system was tested on high-risk scenarios, but this approach is an absolute must-have for any business. If your chatbot talks to unhappy customers, gives medical guidance or simply represents a brand, you don't need "hallucinations" about politeness. The LEKIA principle lets you scale the expertise of your best employees across thousands of conversations, making sure the AI doesn't blurt out something it shouldn't and turn a small problem into a reputational disaster.

Bottom line: stop counting on the model being "smart". It's time to build ethical guardrails for it. If you just ask an AI to be empathetic, it will pretend; if you implement expert behavior design, it will actually help. 6 principles and a set of reference answers turn an unstable algorithm into a reliable pro that won't let you down when it matters most. Anyone who doesn't put this kind of control in place now will be apologizing tomorrow because their bot drove a customer up the wall.

AI lab assistant

Apply this study to your task

Describe what you're working on. AI takes the method and the measured results from this paper and adapts them to your case, or writes a ready prompt built on them.

Based on LEKIA, Constitution + Precedents: how to make an LLM act like an experienced professional arXiv:2507.14944

Sign in to apply this study New accounts get 50 free credits.

Get the week’s best papers by email

One email on Sundays with the highest-rated new techniques. Unsubscribe with one click.