Use Prompt Engineering to Level Up Your AI Assistant (Claude)

Research-backed techniques to optimize prompts and few-shot learning

Dr. Tânia Frazão, M.C.S., D.V.M.
The ABCs of GenAI

--

Steampunk robot writing on paper — generated using AI by the author.

AI assistants like chatbots and voice assistants are becoming more capable every day. However, even advanced models like Claude can benefit from careful prompt engineering to get the most out of their skills.

In this post, I’ll share prompt engineering techniques you can use to enhance your AI assistant’s performance on tasks like:

  • Recalling information from long documents
  • Answering ambiguous questions
  • Avoiding biased word choices
  • Getting more creative and varied responses

With the right prompts, you can level up your AI assistant to be more helpful, knowledgeable, and human-like. I’ll provide examples and code samples for prompt techniques like using a <scratchpad>, providing contextual examples, and structuring instructions clearly.

In summary, while tested on MCQs (multiple choice questions), these prompt engineering best practices can serve as guidelines for optimizing many different types of prompts and outputs with an AI assistant. The core principles apply broadly. Let me know if any part of my explanation needs clarification!

--

--

Dr. Tânia Frazão, M.C.S., D.V.M.
The ABCs of GenAI

Computer scientist &Vet.(DVM) passionate about animals, the potential of generative AI and Python. Shares insights on pet health and tech.