WhoBuilt

Prompt Engineering Tactics

Feb 5, 2025· 5 min· 1.4K views·Watch on YouTube

Speaker

Dan Cleary, co-founder of PromptHub, speaks on AI Engineer about three tactics for getting more accurate and safer responses from language models.

Why prompt engineering matters

Cleary says small prompt changes can have outsized effects because language models are nondeterministic. For products that use AI, an unreliable response can damage user trust, especially when people expect fast, accurate results without hallucinations.

Use multiple personas

Multi-persona prompting assigns different roles to collaborate on a task. For a book, Cleary suggests bringing together a publicist, an author, and the intended audience to brainstorm toward a final answer. He finds this useful for complex or generative tasks.

Ground answers in a source

The “according to” method names a source in the prompt, such as Wikipedia, to encourage the model to draw on it. Cleary says this can reduce hallucinations by up to 20% when the model uses a consistent source, citing research from Johns Hopkins University.

Add emotional context

Emotion prompting adds an emotional stimulus to the end of a prompt, drawing on how people may take a task more seriously when the stakes are clear. Cleary says experiments showed improvements ranging from 8% to 115%, depending on the task, and gives cover letters and change logs as examples.

Try the tactics with PromptHub

Cleary says PromptHub provides templates for the three methods. Users can copy them, run them in the playground, share them with a team, or access them through links.

Takeaways

  • Treat prompts as part of product quality: small changes can affect model output substantially.
  • For complex creative tasks, ask distinct roles to collaborate before producing a final answer.
  • Name a trusted source in the prompt when the model can reliably draw on it.
  • Test emotional context prompts on your own tasks; reported gains vary widely.
  • Share prompt templates with teammates so they can test and refine them together.

Mentioned in this talk

Search inside this talk

What was claimed 5

  • feature
    PromptHub: Prompt management tool designed for teams to test, collaborate, and deploy prompts
    “a prompt management tool designed for teams to make it easy to test, collaborate, and deploy prompts”
    YouTube
    Unverified1 source· Talk
  • feature
    multi-persona prompting: Uses task-specific agents to collaborate on a task
    “calls on various agents to work on a specific task”
    YouTube
    Unverified1 source· Talk
  • metric
    according to method: Can reduce hallucinations by up to 20%
    “This can help reduce hallucinations by up to 20%.”
    YouTube
    Unverified1 source· Talk
  • metric
    emotion prompting: Reported output improvement ranges from 8% to 115%, depending on the task
    “anywhere from an 8% increase to a 115% increase”
    YouTube
    Unverified1 source· Talk
  • feature
    PromptHub: Provides prompting templates and a playground for running prompts
    “available as templates in PromptHub ... run them through our playground”
    YouTube
    Unverified1 source· Talk

Related talks