top of page
  • Writer's pictureBolaji Atanda

Taming the Wild West: Don't Let Your Prompts Go Rogue!

Updated: Mar 26


poorly crafted prompt

Ever typed a question into an AI chat and received gibberish back? That's the nightmare scenario of poorly crafted prompts. This blog will guide you through the art of Prompt Testing and Quality Assurance (QA), ensuring your prompts lead to clear, consistent, and downright brilliant results.


Here's the thing: prompts are the secret sauce behind many cool technologies these days. They guide chatbots, power creative AI tools, and even fuel those mind-blowing deep-fakes. However, just like with any recipe, if you don't test your prompts, the outcome can be a real disaster.


What is QA in a Nutshell?

At Gyre, QA plays a crucial role in ensuring a seamless and effective user experience. Quality Assurance (QA) involves taking a proactive stance to identify and resolve issues before they reach customers, thereby ensuring a high-quality experience. This process aligns with ISO 9000, which defines quality assurance as 'part of quality management focused on providing confidence that quality requirements will be fulfilled,' emphasising its role in instilling confidence in the fulfilment of quality standards.


Traditional QA vs. AI QA:  A New Ball Game

Many QA techniques, such as bug detection methods and CI/CD tools, have been developed to assure the quality of traditional software. However, for platforms like Gyre, where AI plays a significant role, these techniques may not be directly applicable to AI systems due to the inherently non-deterministic nature of Generative AI. As a result, researchers have proposed a series of properties to evaluate various quality aspects of AI systems, including correctness, bias detection, security, and consistency.


Why Prompt Testing and QA Matters

Imagine asking your fancy new AI assistant for a recipe, only to receive instructions on building a spaceship. That's what happens when prompts aren't rigorously tested. Here's why it matters:


  • Correctness: You want your prompts to deliver the right information, not fantastical fairy tales. Testing ensures they consistently trigger the desired response.

  • Bias Detection: Prompts can inherit our biases, leading to unfair or inaccurate results. Testing helps identify and eliminate these biases.

  • Security: Malicious actors can exploit poorly crafted prompts to manipulate AI outputs or trick users into revealing sensitive information. Testing helps identify potential security vulnerabilities and ensure your prompts are not easily hijacked.

  • Consistency: Imagine a chatbot that gives different answers to the same question depending on the day. Testing helps maintain a consistent user experience.


The Secret Sauce: The Testing Process

In this example, we'll use Gyre's "Goals & Key Results Scratchpad" to demonstrate the testing process. This is an AI-enabled tool in the Gyre platform that is designed to help users draft goals that are stretching yet achievable.


Step 1: Define Your Prompt Goals & Audience: What do you want your prompts to achieve? Who will be using them? Knowing this helps tailor your test cases.

For example:

Prompt Goal: Our aim is for Gyre to assist users in setting realistic and motivating goals.

Audience: Individuals seeking to set and achieve goals.


Step 2: Brainstorm Test Cases: Think of all the ways users might interact with your prompts. This could involve testing different phrasings, providing incomplete information, and even throwing in some curveballs.

Example Test case: Enter a simple, single-sentence goal such as "I want to run a marathon" and a current reality that appears to contradict the goal, like "I hate running."


Step 3: Run the Tests! Get your hands dirty and put your prompts to the test. Analyse the results, looking for inconsistencies, errors, or biases.

Example Test Case  Result: The Scratchpad analyses the situation and provides a helpful response. 

Scratchpad Response




Step 4: Refine & Repeat: Based on your findings, refine your prompts and test again. Remember, testing is an ongoing process, not a one-time thing. The more scenarios your test cases cover, the more robust your prompts become. Run multiple tests each time you change your prompt.


The Takeaway: Become a Master Prompt Tester!

By following this process, you can ensure your prompts are reliable workhorses, not unpredictable trick ponies. So, the next time you craft a prompt, remember: a little testing goes a long way in ensuring your AI creations are clear, consistent, and truly powerful.


0 comments

Recent Posts

See All
bottom of page