Guidance Logo
GitHub →

The Most Advanced Control Layer
for Large Language Models

Constrain generation, guarantee structure, and run anywhere.

🧠 Granular LLM Control

Structured outputs, regex constraints, and CFGs in pure Python.

Cost & Latency Efficient

Control decoding directly. Avoid chaining and slow retries.

🛠️ Production-Ready

Stateless programs. Compatible with OpenAI, llama.cpp, Transformers.

# Select: User chooses an option
gpt + f"Pick one: {select(['red', 'blue', 'green'])}"