Library for prompt engineering
Project description
Prompt Pilot
DISCLAIMER: This is a work in progress, and I'm sharing it as a temporary solution with some functions that you can experiment with.
Prompt Pilot is a library designed for prompt engineering in AI models. It introduces the concept of "prompt functions" to streamline the prompt creation process. With just one function, developers can create complex prompts effortlessly.
Here's an example implementation for creating a digital marketing chatbot:
# import the required functions from prompt_pilot.
from prompt_pilot.assistants import life_coach
from prompt_pilot.api_ai import gpt3
#import config function from decouple to read api_key
import decouple
# use promptpilot to generate prompt
prompt = life_coach(name="Rocky")
print(prompt)
# configure your apikey
openai_api_key = decouple.config("OPENAI_API_KEY")
# use promptpilot's api call functions to pass prompt and apikey
output = gpt3(prompt=prompt, api_key=openai_api_key)
print(output)
By automating both prompt engineering and API calls to AI models, Prompt Pilot significantly reduces the code required to build a chatbot. With just 5-6 lines of code, you can have a fully functional chatbot up and running in very little time.
Here's what you can build with prompt-pilot:
- Chatbots and other NLP tasks : Personalized chatbots for business usecase, personal usecase, and academic usecase. API calls to OpenAI and LLMs on Replicate
- Image models : Varying styles for image generators. API calls to image models on Replicate
- Data science : Automating data-science by incorporating LLMs (OpenAI) into the process to perform analysis
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file prompt_pilot-0.1.3.1.tar.gz
.
File metadata
- Download URL: prompt_pilot-0.1.3.1.tar.gz
- Upload date:
- Size: 16.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.5.1 CPython/3.10.6 Linux/5.19.0-46-generic
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | dc4efa3ba79d02060ff94090ea2e74e54e71a9234ab421f5aeca81a1aea5f453 |
|
MD5 | 79d5e3e3f503522ad3a6cb6374a300df |
|
BLAKE2b-256 | 3f9befcd75c08320225c4b4cebe5013d3492125974c83eaa572a4915ebfadffc |
File details
Details for the file prompt_pilot-0.1.3.1-py3-none-any.whl
.
File metadata
- Download URL: prompt_pilot-0.1.3.1-py3-none-any.whl
- Upload date:
- Size: 18.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.5.1 CPython/3.10.6 Linux/5.19.0-46-generic
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | eaefe623cf425ec152994904b0585b5877a86f98c3ddea51e629638625edfa91 |
|
MD5 | d2541461b735c2653477e7987b40d307 |
|
BLAKE2b-256 | ccbc456565e19842f78cb9e8fb97f98756cc4e7b1858c2e250d4c90f743bca7d |