This is the open-source repository for 2024 VIS submission: Towards Dataset-scale and Feature-oriented Evaluation of Large Language Model Prompts: https://doi.org/10.1109/TVCG.2024.3456398.
We introduce a feature-oriented workflow for dataset-scale prompt evaluation.
Awesum is an implementation of the workflow on text summarization.
Awesum has a Flask back-end and a vite front-end. They need to be launched separately.
Navigate to server/ and run:
pip install -r requirements.txtThese packages need extra care:
OpenAI:
pip install --upgrade openai Spacy:
pip install spacy
python -m spacy download en_core_web_sm
Or if you're using M1:
pip install 'spacy[apple]'
python -m spacy download en_core_web_sm
Finally,
# directory: server/
flask run
The backend server should then be listening to localhost:5000 by default.
npm i
npm run dev
Backend:
Flask
Frontend:
Svelte,
MeltUI,
TailwindCss,
Lucide,
D3,
Vite
Dataset:
BBC
Computational Linguistics:
Spacy,
VADER,
Textstat,
Lexical Diversity,
scikit-learn
Intelligent Agents:
OpenAI
src/*
- Flask server:
server/app.py - Feature metrics:
server/metrics/stylistic.py - Prompts:
server/AnalysisUtils/gpt.py - Clustering:
server/AnalysisUtils/clusters.py - Dimensionality Reduction:
server/AnalysisUtils/dr.py - Data:
server/data/prod/*

