Skip to content

Latest commit

 

History

21 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PromptLab

A web app that scores and rewrites AI prompts, powered by a fine-tuned local model. Built for CS 568 (UIUC).

Demo (linked)

Watch the demo

Features

Check Prompt mode: paste a prompt and get scores (0 to 10) for clarity, specificity, tone, and ambiguity, a summary assessment, and a rewritten, optimized version.

Generate Prompt mode: describe an idea in plain language and get a ready to use prompt, with an explanation of what was improved.

Tech Stack

Frontend: React 18 + Vite

Backend: Flask API serving a fine-tuned SmolLM2-360M-Instruct with custom LoRA adapters:

  • a BPO (black-box prompt optimization) adapter that rewrites prompts
  • a HelpSteer-trained rater adapter that scores prompts across clarity, specificity, tone, and ambiguity

Google Gemini is used for auxiliary explanation text on the scored feedback.

Figures

Prompt analysis Latency chart Training loss curves

Quickstart

npm install
npm run dev

Then open http://localhost:5173

About

React and Claude powered web app that scores and rewrites AI prompts (CS568, UIUC)

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages