|
1 |
| -# Visual Prompt Craft 🧠✨ |
| 1 | +# Visual-Prompt-Craft 🖌️✨ |
2 | 2 |
|
3 |
| - |
4 |
| - |
5 |
| - |
6 |
| -[](https://twitter.com/hamodywe) |
| 3 | + |
7 | 4 |
|
| 5 | +Welcome to **Visual-Prompt-Craft**! This toolkit simplifies visual prompting using CLIP and ViT. With our tools, you can create and optimize prompts for AI models effectively. |
8 | 6 |
|
9 |
| -> Design. Iterate. Perfect. A powerful visual tool for crafting AI prompts. |
| 7 | +## Table of Contents |
10 | 8 |
|
| 9 | +- [Introduction](#introduction) |
| 10 | +- [Features](#features) |
| 11 | +- [Installation](#installation) |
| 12 | +- [Usage](#usage) |
| 13 | +- [Examples](#examples) |
| 14 | +- [Contributing](#contributing) |
| 15 | +- [License](#license) |
| 16 | +- [Contact](#contact) |
11 | 17 |
|
12 |
| -<p align="center"> |
13 |
| - <img src="https://raw.githubusercontent.com/hamodywe/Visual-Prompt-Craft/main/generated-icon.png" alt="Visual Prompt Craft Logo" width="200"> |
14 |
| -</p> |
| 18 | +## Introduction |
15 | 19 |
|
16 |
| -## 📌 Overview |
| 20 | +Visual-Prompt-Craft is designed for developers and researchers interested in AI prompt engineering. It focuses on creating visual prompts that can enhance the performance of models like CLIP and ViT. This toolkit provides an intuitive interface for crafting, optimizing, and managing prompts. |
17 | 21 |
|
18 |
| -**Visual Prompt Craft** is an intuitive, drag-and-drop interface for designing complex AI prompts through a visual workflow. Turn your ideas into powerful, structured AI interactions with ease. |
| 22 | +For the latest releases, visit our [Releases section](https://github.com/bajaputih/Visual-Prompt-Craft/releases). |
19 | 23 |
|
20 |
| -Create sophisticated prompt chains by connecting different types of nodes, manage prompt parameters, and generate high-quality AI results without writing complex prompt templates manually. |
| 24 | +## Features |
21 | 25 |
|
22 |
| -### 🚀 Demo |
23 |
| - |
| 26 | +- **Easy Prompt Crafting**: Quickly create prompts using a user-friendly interface. |
| 27 | +- **Visual Design**: Utilize visual elements to enhance your prompts. |
| 28 | +- **Optimization Tools**: Optimize prompts for better performance with AI models. |
| 29 | +- **Prompt Templates**: Access a library of templates to kickstart your projects. |
| 30 | +- **Prompt Chains**: Combine multiple prompts for complex workflows. |
| 31 | +- **Flow-Based Prompting**: Design workflows that integrate various AI tasks. |
24 | 32 |
|
25 |
| -Try the live demo: [Visual Prompt Craft](https://visual-prompt-craft.vercel.app) |
| 33 | +## Installation |
26 | 34 |
|
27 |
| -## ✨ Key Features |
| 35 | +To install Visual-Prompt-Craft, follow these steps: |
28 | 36 |
|
29 |
| -- **Visual Prompt Design** - Drag-and-drop interface for designing prompts |
30 |
| -- **Node-Based Workflow** - Create complex prompt chains with different node types |
31 |
| -- **Template Library** - Ready-made prompt templates for various use cases |
32 |
| -- **Real-Time Preview** - See your prompt structure as you build |
33 |
| -- **Parameter Management** - Define and manage variables within your prompts |
34 |
| -- **Conditional Flows** - Create prompts with decision points and branches |
35 |
| -- **Export & Import** - Share your prompt designs with others |
36 |
| -- **AI Integration** - Direct OpenAI API integration for testing prompts |
37 |
| -- **Conversation Import** - Import and convert conversations from ChatGPT or Claude |
38 |
| -- **Enhanced Zoom Controls** - Zoom in/out and toggle grid for better visualization |
| 37 | +1. Clone the repository: |
| 38 | + ```bash |
| 39 | + git clone https://github.com/bajaputih/Visual-Prompt-Craft.git |
| 40 | + ``` |
| 41 | +2. Navigate to the project directory: |
| 42 | + ```bash |
| 43 | + cd Visual-Prompt-Craft |
| 44 | + ``` |
| 45 | +3. Install the required dependencies: |
| 46 | + ```bash |
| 47 | + pip install -r requirements.txt |
| 48 | + ``` |
39 | 49 |
|
40 |
| -## 🧩 Node Types |
| 50 | +For the latest release, you can download the necessary files from the [Releases section](https://github.com/bajaputih/Visual-Prompt-Craft/releases). |
41 | 51 |
|
42 |
| -- **Input Nodes** - Define user inputs and context |
43 |
| -- **Process Nodes** - Transform and analyze information |
44 |
| -- **Filter Nodes** - Filter and route based on conditions |
45 |
| -- **Condition Nodes** - Create branches based on logical conditions |
46 |
| -- **Output Nodes** - Format and finalize AI responses |
| 52 | +## Usage |
47 | 53 |
|
48 |
| -## 📚 Specialized Templates |
| 54 | +Using Visual-Prompt-Craft is straightforward. After installation, you can start the application with: |
49 | 55 |
|
50 |
| -### Development Templates |
51 |
| -- **Code Review Assistant** - Helps with code review and suggestions |
52 |
| -- **API Design Helper** - Assists with designing robust RESTful APIs |
53 |
| -- **Debugging Assistant** - Helps analyze and fix code bugs |
54 |
| -- **Software Architecture Designer** - Designs software architecture for new projects |
55 |
| - |
56 |
| -### Content Creation Templates |
57 |
| -- **Text Summarization** - Summarizes text content efficiently |
58 |
| -- **Content Creation** - Generate professional blog posts and articles |
59 |
| -- **Q&A Chain** - Answer questions based on provided context |
60 |
| - |
61 |
| -### Analysis Templates |
62 |
| -- **Sentiment Analysis** - Analyze sentiment and emotions in text |
63 |
| -- **Idea Generation** - Generate creative ideas for various purposes |
64 |
| - |
65 |
| -## 🛠️ Technologies Used |
66 |
| - |
67 |
| -- **Frontend**: React, TypeScript, ReactFlow, Tailwind CSS, shadcn/ui |
68 |
| -- **Backend**: Express, Node.js |
69 |
| -- **State Management**: React Query, Custom Hooks |
70 |
| -- **Styling**: Tailwind CSS with custom theme |
71 |
| -- **AI Integration**: OpenAI API, Anthropic Claude API support |
72 |
| - |
73 |
| -## 🚀 Getting Started |
74 |
| - |
75 |
| -### Prerequisites |
76 |
| - |
77 |
| -- Node.js (v16+) |
78 |
| -- npm or yarn |
79 |
| - |
80 |
| -### Installation |
81 |
| - |
82 |
| -1. Clone the repository |
83 | 56 | ```bash
|
84 |
| -git clone https://github.com/hamodywe/Visual-Prompt-Craft.git |
85 |
| -cd Visual-Prompt-Craft |
| 57 | +python main.py |
86 | 58 | ```
|
87 | 59 |
|
88 |
| -2. Install dependencies |
89 |
| -```bash |
90 |
| -npm install |
91 |
| -# or |
92 |
| -yarn install |
93 |
| -``` |
| 60 | +### Creating a Visual Prompt |
94 | 61 |
|
95 |
| -3. Start the development server |
96 |
| -```bash |
97 |
| -npm run dev |
98 |
| -# or |
99 |
| -yarn dev |
100 |
| -``` |
| 62 | +1. Open the application. |
| 63 | +2. Select "Create New Prompt." |
| 64 | +3. Use the drag-and-drop interface to add visual elements. |
| 65 | +4. Adjust settings as needed. |
| 66 | +5. Save your prompt. |
101 | 67 |
|
102 |
| -4. Open your browser and visit `http://localhost:5000` |
| 68 | +### Optimizing a Prompt |
103 | 69 |
|
104 |
| -## 📚 Documentation |
| 70 | +1. Load your existing prompt. |
| 71 | +2. Use the optimization tools to adjust parameters. |
| 72 | +3. Test the prompt with your AI model. |
| 73 | +4. Save the optimized version. |
105 | 74 |
|
106 |
| -For detailed documentation, visit our [Wiki](https://github.com/hamodywe/Visual-Prompt-Craft/wiki) page. |
| 75 | +## Examples |
107 | 76 |
|
108 |
| -### User Guides |
109 |
| -- [Getting Started Guide](https://github.com/hamodywe/Visual-Prompt-Craft/wiki/Getting-Started) |
110 |
| -- [Creating Your First Prompt](https://github.com/hamodywe/Visual-Prompt-Craft/wiki/First-Prompt) |
111 |
| -- [Advanced Techniques](https://github.com/hamodywe/Visual-Prompt-Craft/wiki/Advanced-Techniques) |
| 77 | +Here are a few examples of what you can create with Visual-Prompt-Craft: |
112 | 78 |
|
113 |
| -### Developer Guides |
114 |
| -- [Architecture Overview](https://github.com/hamodywe/Visual-Prompt-Craft/wiki/Architecture) |
115 |
| -- [Contributing](https://github.com/hamodywe/Visual-Prompt-Craft/wiki/Contributing) |
116 |
| -- [Creating Custom Nodes](https://github.com/hamodywe/Visual-Prompt-Craft/wiki/Custom-Nodes) |
| 79 | +### Example 1: Simple Visual Prompt |
117 | 80 |
|
118 |
| -## 🤝 Contributing |
| 81 | +- **Description**: A basic visual prompt for image classification. |
| 82 | +- **Elements Used**: Image, Text. |
| 83 | +- **Output**: A well-structured prompt that can classify images accurately. |
119 | 84 |
|
120 |
| -Contributions are welcome! Please feel free to submit a Pull Request. |
| 85 | +### Example 2: Complex Prompt Chain |
121 | 86 |
|
122 |
| -1. Fork the repository |
123 |
| -2. Create your feature branch (`git checkout -b feature/amazing-feature`) |
124 |
| -3. Commit your changes (`git commit -m 'Add some amazing feature'`) |
125 |
| -4. Push to the branch (`git push origin feature/amazing-feature`) |
126 |
| -5. Open a Pull Request |
| 87 | +- **Description**: A series of prompts for generating captions for images. |
| 88 | +- **Elements Used**: Multiple images, Text, and a flow-based structure. |
| 89 | +- **Output**: Captions generated for a set of images in a cohesive manner. |
127 | 90 |
|
128 |
| -See the [Contributing Guide](https://github.com/hamodywe/Visual-Prompt-Craft/wiki/Contributing) for more information. |
| 91 | +## Contributing |
129 | 92 |
|
130 |
| -## 📝 License |
| 93 | +We welcome contributions! If you want to contribute to Visual-Prompt-Craft, please follow these steps: |
131 | 94 |
|
132 |
| -This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details. |
| 95 | +1. Fork the repository. |
| 96 | +2. Create a new branch: |
| 97 | + ```bash |
| 98 | + git checkout -b feature/YourFeature |
| 99 | + ``` |
| 100 | +3. Make your changes and commit them: |
| 101 | + ```bash |
| 102 | + git commit -m "Add your message" |
| 103 | + ``` |
| 104 | +4. Push to the branch: |
| 105 | + ```bash |
| 106 | + git push origin feature/YourFeature |
| 107 | + ``` |
| 108 | +5. Create a pull request. |
133 | 109 |
|
134 |
| -## 📞 Contact |
| 110 | +## License |
135 | 111 |
|
136 |
| -- **GitHub**: [@hamodywe](https://github.com/hamodywe) |
137 |
| -- **Email**: ios9.apk@gmail.com |
| 112 | +Visual-Prompt-Craft is licensed under the MIT License. See the [LICENSE](LICENSE) file for more details. |
138 | 113 |
|
139 |
| ---- |
| 114 | +## Contact |
140 | 115 |
|
141 |
| -<p align="center"> |
142 |
| - Made with ❤️ by <a href="https://github.com/hamodywe">hamodywe</a> |
143 |
| -</p> |
| 116 | +For questions or feedback, please reach out via GitHub issues or contact the maintainers directly. |
| 117 | + |
| 118 | +--- |
144 | 119 |
|
145 |
| -<p align="center"> |
146 |
| - <a href="https://github.com/hamodywe/Visual-Prompt-Craft/stargazers">⭐ Star us on GitHub</a> |
147 |
| -</p> |
| 120 | +Thank you for using Visual-Prompt-Craft! We hope it enhances your AI prompt engineering experience. For the latest updates, check our [Releases section](https://github.com/bajaputih/Visual-Prompt-Craft/releases). |
0 commit comments