Our AI-driven evaluation loop iteratively improves your language model prompts by analyzing failures, synthesizing improvements, and determining when it's optimized.
Pythia provides clinical, privacy-preserving and locally hosted sensitivity and specificity aware optimization that runs on open source models, meaning optimization stays transparent and within the institution. Optimization can be performed on any scale of model, from one billion to one trillion parameters, allowing optimization to scale with the user's needs.
Get StartedPlatform
Live Demo
About
Pythia implements a fully autonomous optimization loop: evaluate, analyze, improve, repeat. Pythia is powered by LangGraph's stateful agentic workflows, so you can stop guessing at prompts and start iterating systematically.
Read the docs# Run the optimization loop from pythia import Pythia optimized_result = Pythia( LLMbackend = backend, dev_data_path= dev_eval_dataset, val_data_path= val_eval_dataset, output_dir = "outputs", SOP = "", initial_prompt = "Do the patients show signs of a common cold?", max_iterations=10, sens_threshold = 0.7, spec_threshold = 0.7, ) print(optimized_result.selected_prompt)
Research
Pythia draws on work in automatic prompt optimization, chain-of-thought prompting, and multi-agent LLM systems. The evaluation-synthesis loop is inspired by other prompt optimizing systems, and uses a stateful LangGraph workflow with backtracking and intelligent halting logic to provide systematic senstivity and specificity based clinical prompt optimization.
View on GitHub Our Previous WorkGrant Acknowledgements
This project was supported by the National Institute on Aging (R01AG074372 RF1AG074372)
This project was supported by the National Institute of Allergy and Infectious Diseases (R01AI165535)