Skip to content

Prompt Generation

Integral Instruction

Integral requires the instruction field to be properly defined to get the best out of the AI model.

Prerequites

Before working on the best instruction, it is best to consider the following, according to Anthropic:

  • Have a clear definition of the success criteria
  • Find a way to empirically test against the defined success criteria
  • Make a first draft prompt and improve it later

Check out Anthropic's documentation for more on how to get through each step

Also checkout OpenAI's documentation on prompt prompt-engineering if you use their models

Example Instructions

Consider the followind scenarios and example Instructions made for the Integral

1. Users API

We want to create an Integral that handles user information. It can do the following:

    1. Get a list of users
    1. Get a single user given a userId value
    1. Create a user given an input