PromptCrafter is an advanced multi-agent tool designed to generate high-quality prompts for any given task. Whether you're working with LLMs, automating workflows, or optimizing AI interactions, this tool ensures you get the perfect prompt—every time!
PromptCrafter operates with two intelligent agents working together:
1️⃣ Prompt Writer – Crafts an initial prompt tailored to the given task.
2️⃣ Prompt Reviewer – Analyzes and refines the prompt for clarity, completeness, and effectiveness.
Together, they create optimized prompts that maximize accuracy and efficiency in AI-driven applications.
Get started today and take your prompt engineering to the next level! 🚀
- 🎯 Smart prompt generation based on your task description
- 🔄 Automated prompt review and optimization
- 🎨 Intuitive web interface built with Streamlit
- 🌡️ Temperature control for creativity adjustment
- 📋 Easy copy-paste functionality
- 🔒 Reliable error handling and user feedback
- Python 3.9 or higher
- pip package manager
git clone https://github.com/akhil-bot/PromptCrafter.git
cd PromptCrafterpython -m venv venv
source venv/bin/activate # On Windows, use: venv\Scripts\activatepip install -r requirements.txtstreamlit run main.py-
Configure Model Settings
- Select any model provider(for now we support OpenAI)
- Enter your API key
- Choose your preferred model (e.g., GPT-3.5-turbo, GPT-4o)
- Adjust the temperature slider for creativity control
-
Generate a Prompt
Task: Create a prompt that helps generate creative story ideas Result: A well-structured prompt optimized for story generation -
Review and Copy
- Review the generated prompt
- Use the copy button to copy the prompt to your clipboard
- Use the prompt with your favorite AI model
prompt-engineer/
├── agents/
│ └── Agents.py # Agent implementations
├── graphs/
│ └── graph.py # Workflow graph definition
├── models/
│ └── openai_models.py # Model integrations
├── prompts/
│ └── prompts.py # Prompt templates
├── states/
│ └── state.py # State management
├── main.py # Main application
└── README.md
We welcome contributions! Here's how you can help:
- Use the GitHub issue tracker
- Include detailed descriptions and steps to reproduce
- Add relevant tags and labels
- Fork the repository
- Create a feature branch
- Make your changes
- Submit a pull request
- Follow PEP 8 guidelines
- Include docstrings for new functions
- Add type hints where applicable
- Write unit tests for new features
- Chain-of-Thought Integration: Implement specialized prompting patterns for complex reasoning tasks
- Zero/Few-Shot Templates: Add pre-built templates optimized for different learning approaches
- Task-Specific Patterns:
- Code Generation prompts
- Story Writing frameworks
- Mathematical problem-solving structures
- Data Analysis templates
- Creative writing patterns
- And many more...
- Model-Aware Prompting: Customize prompts based on specific LLM architectures
- GPT-4 optimized patterns
- Claude-specific formatting
- Gemini-enhanced templates
- Llama/Mistral adaptations
- Context Window Optimization: Smart prompt compression for different model context limits
- Prompt Library: Build a collection of proven prompt patterns for common use cases
- Performance Analytics: Track and analyze prompt effectiveness across different models
- Human-in-the-Loop: Allow users to review and refine prompts
- Interactive Prompt Builder: Visual interface for constructing complex prompts
- A/B Testing: Compare different prompt versions for optimal results
- Multi-Language Support: Prompt templates optimized for different languages
- Template Sharing: Platform for users to share and rate prompt templates
- Collaborative Editing: Real-time collaboration on prompt engineering
- Version Control: Track prompt evolution and improvements
- Best Practices Database: Crowdsourced knowledge base for prompt engineering
For any inquiries or support, please contact Akhil Maddala at [email protected].
You can also find more interesting projects on GitHub.
This project is licensed under the MIT License - see the LICENSE file for details.
- Streamlit for the amazing web framework
- The open-source community for their invaluable contributions