mirror of
https://github.com/wassname/stampy-chat.git
synced 2026-09-09 11:36:23 +08:00
Prompt Engineering Workflow
As I had said previously, our prompt is a function - not a template. Certain parameters like what goes in a system vs a user prompt, how we delineate sources, where to break messages, how to handle history, etc - it's too much weight to be cleanly represented with anything but code. That said, this process should be fairly simple and straightforwards even to non-technical people:
- Edit the function
construct_promptinapi/chat.py cd api- run
pipenv run python3 prompteng/prompteng.py - open the google sheet
- click
file->import. Clickupload. Drag and drop the fileapi/prompteng/data/answers.csv - press
cmd + a. Clickformat->wrapping->wrap. Adjust column widths to preference.