Skip to content

Latest commit

 

History

6 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

prompt-observatory 🔭

A unified visual dashboard for LLM interpretability — real-time token streams, hallucination scoring, and prompt cost analysis in one interface.

Combines the power of three tools:

Features

  • Live Token Stream Panel — watch tokens arrive with perplexity heatmap coloring
  • Hallucination Score Panel — real-time confidence levels and flagged tokens
  • Prompt Cost Panel — token count, cost estimate, compression suggestions
  • Side-by-side comparison — run two prompts simultaneously and diff the results
  • Export — save sessions as JSON or HTML reports

Quick Start

pip install prompt-observatory
observatory --api-key $ANTHROPIC_API_KEY

Or run from source:

git clone https://github.com/Mattbusel/prompt-observatory
cd prompt-observatory
pip install -e ".[dev]"
python -m observatory

Open http://localhost:7860 in your browser.

Architecture

prompt-observatory/
├── observatory/
│   ├── __init__.py
│   ├── __main__.py
│   ├── app.py              # Gradio UI entrypoint
│   ├── core/
│   │   ├── stream.py       # Token stream interceptor
│   │   ├── hallucination.py # Hallucination scorer
│   │   └── cost.py         # Prompt cost analyzer
│   ├── ui/
│   │   ├── panels.py       # Gradio panel components
│   │   └── export.py       # Session export
│   └── providers/
│       ├── anthropic.py
│       └── openai.py
└── tests/

Related Projects by @Mattbusel

License

MIT

About

Unified LLM interpretability dashboard — real-time token streams, hallucination scoring, and prompt cost analysis

Topics

Resources

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages