📚 Documentation • 🖥️ Application • 🏠 Home
- Install
node
Create a new app of type Prompt named "Doctor GPT" in the Autoblocks platform.
You can either create a .env
file (copy from .env.example
) in the root of the project or set the following environment variables:
export AUTOBLOCKS_TEST_RUN_MESSAGE="Made prompt more concise"
export AUTOBLOCKS_V2_API_KEY=<your-api-key>
Note: You can get your Autoblocks API key from the Autoblocks settings page.
export OPENAI_API_KEY=<your-api-key>
Note: You can get your OpenAI API key from the OpenAI dashboard.
Run the following script to create the prompts:
npm run create_prompts
Then generate the prompt classes:
npm run gen
Run the following script to setup the dataset and test cases:
npm run create_dataset
npm run test
First, fork the repository to your own GitHub account.
Note: After forking, you will need to enable actions on the forked repository. See this issue for more information.
Then, set the following repository secrets:
AUTOBLOCKS_V2_API_KEY
OPENAI_API_KEY
Note: You can view how these are used in the .github/workflows/autoblocks_tests.yml
file.
Now you can run the workflow in the Actions tab on the GitHub UI.
Go to your application at app-v2.autoblocks.ai and view the results.