-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: Adam Nolte <[email protected]>
- Loading branch information
Showing
12 changed files
with
1,447 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,81 @@ | ||
<!-- banner start --> | ||
<p align="center"> | ||
<img src="https://app.autoblocks.ai/images/logo.png" width="300px"> | ||
</p> | ||
|
||
<p align="center"> | ||
📚 | ||
<a href="https://docs.autoblocks.ai/">Documentation</a> | ||
| ||
• | ||
| ||
🖥️ | ||
<a href="https://app.autoblocks.ai/">Application</a> | ||
| ||
• | ||
| ||
🏠 | ||
<a href="https://www.autoblocks.ai/">Home</a> | ||
</p> | ||
<!-- banner end --> | ||
|
||
<!-- getting started start --> | ||
|
||
## Getting started | ||
|
||
- Sign up for an Autoblocks account at https://app.autoblocks.ai | ||
- Grab your Autoblocks ingestion key from https://app.autoblocks.ai/settings/api-keys | ||
- Grab your OpenAI API key from https://platform.openai.com/account/api-keys | ||
- Create a file named `.env` in this folder and include the following environment variables: | ||
|
||
``` | ||
OPENAI_API_KEY=<your-api-key> | ||
AUTOBLOCKS_INGESTION_KEY=<your-ingestion-key> | ||
``` | ||
|
||
<!-- getting started end --> | ||
|
||
## Install dependencies | ||
|
||
``` | ||
npm install | ||
``` | ||
|
||
## Start the template watcher | ||
|
||
``` | ||
npm run gen:watch | ||
``` | ||
|
||
## Run the script | ||
|
||
``` | ||
npm run start | ||
``` | ||
|
||
## View the prompts in Autoblocks | ||
|
||
You should see the prompt tracking ID (`feature-a`) at https://app.autoblocks.ai/prompts. | ||
Click on the tracking ID to view its history. | ||
At this point it should only have one version. | ||
|
||
## Make a change to one of the templates | ||
|
||
Make a change to one of the templates in the [`prompt-templates`](./prompt-templates/) folder. | ||
For example, update [`common/language`](./prompt-templates/common/language) to say: | ||
|
||
``` | ||
ALWAYS respond in {{ language }}. | ||
``` | ||
|
||
## Run the script | ||
|
||
Run the script again: | ||
|
||
``` | ||
npm run start | ||
``` | ||
|
||
After running the script, you should see a new version at https://app.autoblocks.ai/prompts/feature-a. | ||
|
||
![new-version](https://github.com/autoblocksai/autoblocks-examples/assets/7498009/9c3a3c0b-1984-4cf6-8461-32ab9d2f18b6) |
Oops, something went wrong.
df99efe
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
autoblocks-examples – ./
autoblocks-examples-autoblocks.vercel.app
autoblocks-examples-git-main-autoblocks.vercel.app
chatbot-example.autoblocks.ai