Prompting technique

Prompt-Constructor (Component-Based Prompting)

An Investigation of Prompt Variations for Zero-shot LLM-based Rankers, arXiv:2406.14117 (2024) · read the paper

What it does

Method for constructing prompts using five functional blocks: role-play, task instructions, output format, reinforcement words, and data order. Research showed that variations in prompt structure and tone can influence result quality more than the base ranking algorithm.

Task typemulti step
Shapesingle shot
Efforttwo or three steps
Addressesanswers that are close but wrong; the same prompt giving different answers; output that ignores the requested format
Published2024-06-20
AuthorsShuoqi Sun, Shengyao Zhuang, Shuai Wang et al.

When it helps

Use this technique when creating prompts for evaluation, ranking, comparison, or selection tasks where accuracy and predictability are crucial. Especially effective for RAG systems, search solutions, recommendation systems, and scenarios requiring structured output. Apply when basic prompts yield unstable results or when systematically improving model response quality is needed.

A prompt you can paste

Generic by design: it applies the technique without knowing your task. Adapt the marked parts.

Prompt
**# РОЛЬ (RP)**
Ты — специалист по разработке и оптимизации промптов, эксперт в области применения LLM для задач ранжирования и классификации информации.

**# КОНТЕКСТ И ЗАДАЧА (Evidence + TI)**
Я хочу создать универсальный шаблон промпта, который читатель сможет легко адаптировать для своих задач. Этот шаблон должен основываться на методологии "Промпт-Конструктор", выделяющей 5 ключевых компонентов: Ролевая Игра (RP), Инструкция к Задаче (TI), Тип Вывода (OT), Слова-усилители (TW) и Порядок/Позиция Данных (EO/PE).

**# ТРЕБОВАНИЯ К ВЫВОДУ (OT)**
Представь результат в виде структурированного шаблона промпта. Используй маркеры `[ ]` для обозначения мест, которые читатель должен заполнить или адаптировать под свою конкретную задачу. Шаблон должен явно включать все 5 компонентов методологии "Промпт-Конструктор".

**# ТОН И ОГРАНИЧЕНИЯ (TW)**
Крайне важно, чтобы шаблон был максимально универсальным и понятным для широкого круга пользователей, даже тех, кто не имеет глубоких знаний в области LLM. Пожалуйста, предоставь краткие пояснения для каждого компонента шаблона прямо внутри него, используя комментарии или пояснительные фразы.

If this one does not fit, the two closest alternatives in the corpus are Requirement-Oriented Prompt Engineering (ROPE) and MetaPrompting (Structured Reasoning), which target the same failure from a different angle.

Worked example

The same technique applied to a concrete job: sort inbound support tickets by urgency. Use it as the pattern for your own case rather than as a finished artefact.

Worked example
**# РОЛЬ (RP)**
Ты — опытный аналитик службы поддержки, специализирующийся на классификации и приоритизации входящих запросов. Твоя задача — обеспечить, чтобы самые срочные вопросы решались в первую очередь.

**# КОНТЕКСТ И ЗАДАЧА (Evidence + TI)**
Я получаю множество тикетов в службу поддержки. Мне нужно, чтобы ты проанализировал каждый тикет и определил его уровень срочности.

**# ТРЕБОВАНИЯ К ВЫВОДУ (OT)**
Представь результат в виде нумерованного списка. Для каждого тикета укажи:
1.  **ID Тикета:** (если известен, иначе пропусти)
2.  **Краткое Описание:** (1 предложение, своими словами)
3.  **Уровень Срочности:** (Высокий, Средний, Низкий)
4.  **Ключевые Аргументы:** (2-3 буллита, почему выбран этот уровень срочности)

**# ТОН И ОГРАНИЧЕНИЯ (TW)**
Крайне важно, чтобы ты был точен и последователен в своей оценке. Пожалуйста, не добавляй никаких вводных или заключительных фраз, только сам список. Сосредоточься на фактах, изложенных в тикете, чтобы определить срочность.

Get this written for your actual task

Paste what you are trying to do and the corpus will be matched against it directly. Free, no account, about ten seconds.

Free · no signup · ~10s
0.00match confidence
single retrieval pass
Prompt for your task

      

That number is low on purpose, and it is real. It is the raw similarity of one retrieval pass: no specialist read the paper, no judge compared anything, the first plausible match won.

6,235techniques in the corpus
one of which is this page

Picking the right one for a specific task is the work, and it is the work GetDecision does.

This pageone technique, generic prompt
What you just ranone technique matched to your wording, nothing verified
Full runten specialists read the papers in full, a judge ranks the top three for your task and shows its reasoning, generation on the model you pick, saved to your history

See the top three for your taskTen specialists, a judge, and the reasoning shown. Free account, first run included.

Run the full analysis

Related techniques

Requirement-Oriented Prompt Engineering (ROPE)ROPE (Requirement-Oriented Prompt Engineering) is an approach to creating prompts as detailed technical specif…MetaPrompting (Structured Reasoning)Method of prompting structuring by providing LLM with a ready-made response template in JSON or Markdown forma…Meta-Thought PromptingA method that forces an LLM to generate a 'meta-thought' before answering — a combination of a detailed expert…MLPrompt (Multilingual Prompting)MLPrompt is a prompting technique where critical but ignored model instructions are translated into a rare lan…

All techniques · Failure modes and fixes