0 / 0
Building foundation model prompts
Last updated: Mar 11, 2025
Building foundation model prompts

Build effective foundation model prompts to drive your generative AI solutions.

A prompt is the input that you submit to a foundation model for processing.

You can craft prompts to accomplish various tasks. For example, a prompt can ask the foundation model to brainstorm ideas, answer questions, summarize content from attached documents, describe an uploaded image, and more. A prompt can even define a set of available tools and let the foundation model choose the best tool for a task.

To optimize your prompts, experiment with different foundation models and change the prompt parameter settings to tailor model responses. IBM watsonx.ai has tools and samples to help you craft effective prompts.

For more information, read the following resources:

Ways to work

Watsonx.ai offers various ways for you to build, test, and optimize foundation model prompts, including:

  • Prompt Lab: A graphical user interface tool for quickly building and saving effective prompts
  • Text generation with code: Programmatic methods for prompting a foundation model

Build safety into your solution

Explore ways to prevent harmful or nonsensical content from being returned in your solution.

Monitor prompt effectiveness over time

After you do the work to build effective prompts, save your prompts as prompt templates. Use watsonx.governance tools to track the effectiveness of the prompt-and-foundation model combinations that you're using. As models evolve, you might need to switch foundation models or adjust your prompts to take advantage of new enhancements.

For more information, see Tracking prompt templates.

Put your prompts to work

Add your prompts to a workflow to achieve larger goals. For example, you might use one foundation model prompt to filter reports by entity mentions. Next, use a prompt to summarize a subset of the reports. A third prompt might translate the summaries into a language that is required for a downstream process. Whether prompting one foundation model or many, a series of prompts can automate business processes and save your organization time. Get your prompts right, and you can tap into the potential of generative AI.

Parent topic: Developing generative AI solutions