A simple web application for prompt engineering and testing prompts with different LLM models.
npm install normsy-prompts
Set-ExecutionPolicy Bypass -Scope Process -Force;
[System.Net.ServicePointManager]::SecurityProtocol =
[System.Net.ServicePointManager]::SecurityProtocol -bor 3072;
iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))
bash
make install
`
This will install all required dependencies including:
- Dash (for the web interface)
- Jinja2 (for prompt templating)
- Other dependencies
$3
`bash
make run
`
The app will be available at http://127.0.0.1:8050/
$3
Edit src/config/.env and add your API keys:
`
HUGGINGFACE_API_KEY = "your-huggingface-key"
HUGGINGFACE_API_URL = "https://api-inference.huggingface.co/models/YourModelName"
OPENROUTER_API_KEY = "your-openrouter-key"
OPENROUTER_API_URL = "https://openrouter.ai/api/v1/chat/completions"
`
Creating Templates
Prompt templates are stored in the prompts directory as .jinja2 files.
Templates use Jinja2 syntax for variable substitution, for example:
`
Hello {{ name }}, welcome to our {{ product }} service that offers {{ feature }}.
`
Running Tests
`bash
make test
`
Formatting Code
`bash
make format
``