Skip to main content

Fun Hypothesis

CI PyPI version Python 3.10+ License: MIT

Test whether different prompt framings affect LLM output quality.

Hypothesis

LLM output quality varies based on how prompts are framed. This tool tests that hypothesis with rigorous double-blind methodology.

Quick Start

pip install fun-hypothesis

# Run with default "fun" framing
fun-hypothesis --prompt "Explain quantum computing"

# Try different framings
fun-hypothesis --prompt "Explain quantum computing" --framing pirate
fun-hypothesis --prompt "Explain quantum computing" --framing expert
fun-hypothesis --prompt "Explain quantum computing" --framing eli5

Built-in Framings

Framing Description
fun Make it engaging and playful
pirate Like a pirate
expert As a senior expert
eli5 Explain like I'm 5
formal Very formal and professional
socratic As questions to explore

Methodology

  1. Session A: Send raw prompt to LLM, collect response
  2. Session B: Have LLM transform prompt with framing
  3. Session C: Send framed prompt to LLM, collect response
  4. Session D: Judge panel evaluates Response A (blind)
  5. Session E: Judge panel evaluates Response C (blind)
  6. Compare scores, iterate, aggregate, analyze

All sessions are independent (no context leakage). Judging is double-blind.

Requirements

  • Python 3.10+
  • Anthropic API key (ANTHROPIC_API_KEY environment variable)

Documentation

License

MIT

Metadata

Release files for fun-hypothesis 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for fun-hypothesis 0.1.1
File Size Uploaded Provenance
fun_hypothesis-0.1.1.tar.gz 16.6 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for fun-hypothesis 0.1.1
File Interpreter ABI Platform
fun_hypothesis-0.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 28.5 kB

Release files / fun_hypothesis-0.1.1.tar.gz

Download URL fun_hypothesis-0.1.1.tar.gz
Size 16.6 kB
Tags Source
SHA-256 checksum
How to use checksums
a436bbf35df583c620511e45ecc581004a20efb624e8dbc74b55161d169b082b
BLAKE2b-256 checksum
How to use checksums
ac04679ae7c167fa3bf6ee4725a53903d40a08cbc68200fcc007cd0be5e2fab0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.2

Release files / fun_hypothesis-0.1.1-py3-none-any.whl

Download URL fun_hypothesis-0.1.1-py3-none-any.whl
Size 11.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4d973007c3b6d652e278f2e8211a8f74a0c3070be7b38ed3fdcc1458c028a2a2
BLAKE2b-256 checksum
How to use checksums
30ab73b9070ec106ce4b62c9df35a23c78ad8361bbb4f61462798f26ee0e5fdb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.2

Security for fun-hypothesis 0.1.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page