$git clone https://github.com/xbotter/PromptPlaygroundA simple Semantic Kernel prompt debugging tool.
| 1 | # Prompt Playground |
| 2 | |
| 3 | A simple Semantic Kernel prompt debugging tool. |
| 4 | |
| 5 | ## How to use 🐣 |
| 6 | |
| 7 | ### Download and Install |
| 8 | |
| 9 | 1. Download the latest installation package from Release. |
| 10 | 2. Install and run `prompt-playground.exe`. |
| 11 | |
| 12 | ### First-time use |
| 13 | |
| 14 | You need to enter the configuration settings for the first time. |
| 15 | |
| 16 | Click on the configuration in the menu to enter the configuration interface. |
| 17 |  |
| 18 | |
| 19 | The current model selection supports: |
| 20 | |
| 21 | 1. Azure OpenAI ChatCompletion (gpt-35/gpt-4) |
| 22 | 1. OpenAI ChatCompletion |
| 23 | 1. Baidu ERNIE-Bot |
| 24 | 1. Aliyun DashScope |
| 25 | |
| 26 | `Generation quantity` refers to the maximum number of results generated, the default is 3. |
| 27 | |
| 28 | Fill in the corresponding parameters and close. |
| 29 | |
| 30 | ### Direct use |
| 31 | |
| 32 | Enter the prompt directly in the prompt box on the main interface, and click `Generate` (Ctrl+G/Ctrl+Enter). |
| 33 | |
| 34 | ### Import skprompt |
| 35 | |
| 36 | Click the `Open File` button on the menu bar, select the skprompt.txt file, and the prompt will be automatically imported, and the corresponding config.json file will be imported at the same time. |
| 37 | |
| 38 | For skprompts without a config.json file, a default config.json file will be automatically created. |
| 39 | |
| 40 | Click the Tab above the input box to switch to the config.json editing interface. |
| 41 | |
| 42 | ### Save skprompt |
| 43 | |
| 44 | After modifying the skprompt.txt or config.json file, click the Save (Ctrl+S) button to save to the corresponding file. |
| 45 | |
| 46 | ## Import Semantic Plugin |
| 47 | |
| 48 | 1. Click on the menu bar, select [Open Folder], and choose the folder containing Semantic Functions |
| 49 | 1. Expand the sidebar to see all Semantic Functions in the current folder |
| 50 | 1. Select the corresponding Function to edit and run |
| 51 | |
| 52 | ## Screenshots |
| 53 | |
| 54 |  |
| 55 | |
| 56 | ## Build 🛠 |
| 57 | |
| 58 | 1. Install .NET 8 SDK |
| 59 | 2. Download the source code |
| 60 | 3. Run `dotnet build` |
| 61 | |
| 62 | ## Roadmap 🚧 |
| 63 | |
| 64 | See [Roadmap](https://github.com/xbotter/PromptPlayground/issues/1) |
| 65 | |
| 66 | ## Dependencies 📦 |
| 67 | |
| 68 | - [AvaloniaUI](https://github.com/AvaloniaUI/Avalonia) |
| 69 | - [Semi.Avalonia](https://github.com/irihitech/Semi.Avalonia) |
| 70 | - [AvaloniaEdit](https://github.com/AvaloniaUI/AvaloniaEdit) |
| 71 | - [Icons.Avalonia](https://github.com/Projektanker/Icons.Avalonia) |
| 72 | - [Semantic-Kernel](https://github.com/microsoft/semantic-kernel) |
| 73 | - [semantic-kernel-ERNIE-Bot](https://github.com/custouch/semantic-kernel-ERNIE-Bot) |
| 74 | |
| 75 | ## License 📃 |
| 76 | |
| 77 | This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details |