prompt library for prompt engineers
This is a prompts library designed to be used in tandem with the codeassistant tool for prompt engineers.
We are looking for contributors, please see how you can contribute, and our code of conduct.
cd $HOME
git clone [email protected]:SPANDigital/prompts-library.git
You can clone somewhere else, but you will need to specify in your ~/.codeassistant.yaml file
You will need to configure an OpenAI API Key before usage.
brew tap SPANDigital/homebrew-tap
brew install codeassistant
brew up
brew reinstall codeassistant
It is recommended you set up codeassistant with a config file at $HOME/.codeassistant.yaml
for default values
openAiApiKey: <api key>
userEmail: <your email adresss>
promptsLibraryDir: <directory to load prompts, defaults to $HOME/prompts-library>
More complex configurations are possible
openAiApiKey: <api key>
user: <your email adresss>
promptsLibraryDir: <directory to load prompts, defaults to $HOME/prompts-library>
userAgent: <use this for user agent header>
debug:
- configuration
- sent-prompt
- request-header
- response-header
- request-time
- first-response-time
- last-response-time
To serve a basic web user interface
codeassistant serve
To list available prompts
codeassistant list
Please make a copy of .template directory to get started.
- all debug output goes to STDERR
You can chain multiple debug switches to one command
echo "hamster" | codeassistant run ascii-artist draw-object \
--debug configuration --debug sent-prompt \
--debug request-headers --debug response-headers
echo "Firstname, Surname, Email, State, Mobile Number, Zip Code" \
| codeassistant run csv generate-test-data rows:20
Here's an example of 20 rows of realistic test data with the provided headings:
Firstname, Surname, Email, State, Mobile Number, Zip Code
John, Smith, [email protected], CA, 555-555-5555, 90210
Jessica, Garcia, [email protected], NY, 123-456-7890, 10001
Michael, Johnson, [email protected], TX, 555-867-5309, 75001
Emily, Davis, [email protected], IL, 312-555-5555, 60601
Daniel, Rodriguez, [email protected], FL, 305-555-5555, 33109
Emily, Johnson, [email protected], CA, 818-555-5555, 91301
David, Martinez, [email protected], TX, 214-555-5555, 75201
Sophia, Williams, [email protected], GA, 404-555-5555, 30301
Liam, Thompson, [email protected], MA, 617-555-5555, 02108
Ava, Hernandez, [email protected], TX, 210-555-5555, 78205
Benjamin, Harris, [email protected], FL, 561-555-5555, 33401
Emma, Lee, [email protected], CA, 209-555-5555, 95376
Alexander, Wright, [email protected], NY, 212-555-5555, 10017
Madison, Brown, [email protected], FL, 305-555-5555, 33131
William, Johnson, [email protected], TX, 512-555-5555, 78701
Isabella, Davis, [email protected], CA, 415-555-5555, 94102
Mason, Rodriguez, [email protected], TX, 972-555-5555, 75202
Sophia, King, [email protected], IL, 773-555-5555, 60602
Ethan, Green, [email protected], FL, 305-555-5555, 33166
Natalie, Cook, [email protected], CA, 323-555-5555, 90012
Note that the data is randomly generated and does not represent real individuals or phone numbers.
echo "SA will co-operate with Germans, says Lamola after former Steinhoff CEO Markus Jooste fails to appear in court" \
| codeassistant run copywriting rewrite-headline
Here are six variations using different copywriting formulas:
- AIDA: Get the latest on the Steinhoff scandal as South Africa promises to work with Germany. Lamola speaks out after former CEO Markus Jooste fails to show up in court.
- PAS: Shockwaves in the courtroom as former Steinhoff CEO Markus Jooste fails to appear in court. But there's hope yet as SA's Lamola promises cooperation with Germany.
- 4 Ps: It's official: South Africa will work with Germany after former Steinhoff CEO Markus Jooste's no-show. Details from Lamola inside!
- FAB: What do you get when you cross a former Steinhoff CEO with a court that he fails to show up to? Cooperation from South Africa! Read on for more from Lamola.
- PASTOR: You won't believe what happened in the Markus Jooste case...but there's still hope thanks to SA's Lamola promising cooperation with Germany. Find out more inside.
- SODA: In today's news, South Africa and Germany team up after the Steinhoff scandal. Cheers to Lamola for his promise of cooperation!
echo "I am in San Francisco, I want to visit restaurants." \
| codeassistant run travel-guide advice
Great choice! San Francisco is known for its diverse food scene, here are some recommended places to visit for restaurants:
-
The Ferry Building Marketplace: Located on the Embarcadero, this indoor market features dozens of artisanal food vendors and restaurants.
-
Mission District: This neighborhood has a variety of restaurants featuring different cuisines like Mexican, Salvadoran, and Vietnamese. Some of the popular restaurants include La Taqueria, Tacolicious, and Loló.
-
China Town: One of the oldest and largest Chinatowns in the United States, offering authentic Chinese cuisine.
-
Union Square: If you want to try some upscale restaurants and dining experience, head towards Union Square where you can find some of the city's best fine-dining restaurants.
-
Chestnut Street: This street is popular for its bustling sidewalk cafes and tasty eateries.
If you like to explore more restaurants like these, you could visit North Beach, the Marina, the Fillmore district or Hayes Valley area, all these places have great dining options.
echo "hamster" | codeassistant run ascii-artist draw-object
(\ /)
(='.'=)
(")_(")
Input:
echo "I can't view ppt files on my mac" \
| codeassistant run it-expert solve-problem
There are several ways to view PowerPoint (ppt) files on a Mac computer. Here are a few solutions:
-
Install Microsoft PowerPoint for Mac: Download and install Microsoft PowerPoint for Mac to open and view ppt files.
-
Use Keynote: Keynote is a presentation software developed by Apple that can open and edit PowerPoint files. Just drag and drop the ppt file onto the Keynote icon and it will open.
-
Convert the file to PDF: Convert the ppt file to a PDF file which can be viewed on any device using Preview, Adobe Acrobat, or any other PDF reader.
-
Use Google Slides: If you have a Google account, you can use Google Slides to open and view ppt files. Simply upload the file to Google Drive and open it in Google Slides.
I hope one of these solutions helps you to view your ppt files on your Mac.
echo "Please create a model for an address detailing unit, street (required), street2, suburb, postcode, state. Have the state be a foreign key to a state model and the suburb and postcode be a foreign key to a suburb model. Include __str__ and __repr__ on all models." \
| codeassistant run python-django adhoc