Prompt Machine is a generative AI application built using Flask and the OpenAI GPT-3.5-turbo model. The app is designed to help engineers create more effective prompts for AI models.
-
Prompt Generator: Users can input a title, instruction, examples, target task, and desired output format. The app sends this information to the OpenAI API, which generates an improved prompt. The app then sends this improved prompt back to the API to generate a response.
-
Chat Feature: After generating a prompt, users can continue the conversation by sending additional messages, which are also processed by the AI model.
Before you begin, ensure you have met the following requirements:
To run Prompt Machine, follow these steps:
-
Pull the Docker image from Docker Hub:
docker pull joschenk/prompt_machine:v2
-
Run the Docker container:
docker run -p 5000:5000 -e OPENAI_API_KEY=your_openai_api_key joschenk/prompt_machine:v2
Replace
your_openai_api_key
with your actual OpenAI API key. -
Access the application:
Open your web browser and go to
http://localhost:5000
.
To contribute to Prompt Machine, follow these steps:
- Fork this repository.
- Create a branch:
git checkout -b <branch_name>
. - Make your changes and commit them:
git commit -m '<commit_message>'
- Push to the original branch:
git push origin <project_name>/<location>
- Create the pull request.
Alternatively, see the GitHub documentation on creating a pull request.
If you want to contact me, you can reach me at <[email protected]>
.
This project uses the following license: MIT.