Prompt Engineering for Research¶
| Category | Prompt Engineering |
| Status | โ Completed |
| Repo | nextwork-prompt-engineering-for-research |
| Original NextWork guide | nextwork.ai |
Learning project
Practice work following a NextWork guide, separate from my production projects.
๐ NextWork learning project. This is a practice project I built while working through NextWork's Prompt Engineering for Research guide. It is part of my Learning portfolio and is fully separate from my production projects.
Category: Learning โบ Prompt Engineering
Status: โ
Completed
Overview¶
One fictional research question ("Does a 4-day school week change student attendance?") is taken through four techniques. Role prompting picks a methodology, iterative prompting refines a survey, chain-of-thought walks through the analysis, and adversarial prompting attacks the design. The secret mission combines all four into one template.
Summary¶
All four techniques (role, iterative multi-turn, chain-of-thought, adversarial review) and the secret-mission mega-prompt template ran against one fictional research question, and the outputs are saved. The model is a local open model instead of Claude.
The checks behind this are in docs/verification.txt.
Skills & tools¶
Role prompting, Iterative prompting, Chain-of-thought, Adversarial prompting, Research methods
What I built¶
prompts/1-role.mdโฆprompts/4-adversarial.md: one technique each (2 is multi-turn).prompts/5-mega-prompt.md: the combined template (secret mission).run_prompts.py: runs every prompt (including multi-turn follow-ups) on a local model.outputs/: the real responses from the verification run.
How to run¶
ollama pull qwen2.5:3b
pip install ollama
MODEL=qwen2.5:3b python run_prompts.py # writes outputs/*.md
prompts/ (turns are separated by ---FOLLOWUP---).
Verification¶
I ran the verification command on 2026-12-02. The full output is in docs/verification.txt.
rm -rf outputs && PATH=/workspace/nextwork-portfolio/.venv/bin:$PATH python run_prompts.py && python3 check_outputs.py difference
Notes¶
Model substitution: the guide runs these prompts in Claude. I don't have an account there, so every prompt ran on a local open model (qwen2.5:3b via Ollama). The prompts and techniques are the deliverable and work the same in any chat model; paste the files from prompts/ into Claude to use them there. A 3B model's answers are weaker than a frontier model's, so judge the outputs as evidence that each technique was run, not as expert content.
Original project: https://nextwork.ai/projects/ab15adf9-b347-5635-9366-981dd567d992 ยท Part of my NextWork Learning portfolio (hub).
Verification output¶
From docs/verification.txt:
$ rm -rf outputs && PATH=/workspace/nextwork-portfolio/.venv/bin:$PATH python run_prompts.py && python3 check_outputs.py difference
wrote outputs/1-role.md (1 turn(s))
wrote outputs/2-iterative-survey.md (3 turn(s))
wrote outputs/3-chain-of-thought.md (1 turn(s))
wrote outputs/4-adversarial.md (1 turn(s))
wrote outputs/5-mega-prompt.md (1 turn(s))
OK 1-role.md: 597 words
OK 2-iterative-survey.md: 791 words
OK 3-chain-of-thought.md: 513 words
OK 4-adversarial.md: 419 words
OK 5-mega-prompt.md: 587 words
OK some output mentions 'difference': 3-chain-of-thought.md
[exit code 0]