Guidance

Guidance language for controlling LLM generation with constraints, grammars, and JSON schemas.

Open SourceSelf HostedOffline Capable
0.0 (0)

About

Guidance approaches LLM control as a programming problem rather than prompt writing. The Python framework constrains generation with regex patterns, context-free grammars, and JSON schemas, including Pydantic models, and lets developers interleave conditionals, loops, tool calls, and generation inside composable decorated functions. Its gen() and select() primitives capture output into named variables or force a choice among fixed options, so responses always parse. A notable optimization is token fast-forwarding: any tokens the grammar makes inevitable are filled in without model forward passes, cutting latency and GPU cost during structured generation. Backends include Hugging Face Transformers, llama.cpp, and OpenAI-compatible APIs, and a Mock model allows offline grammar debugging. Installable from PyPI and released under the MIT license, Guidance is used by engineers who need guaranteed structured output from both local and hosted models.

Reviews (0)

Leave a Review

No reviews yet. Be the first to review!

Details

Price
Free
Platform
Local/Desktop
Difficulty
Intermediate (3/5)
License
MIT
Added
May 7, 2026

Related Tools

Unified system for large-scale distributed training and inference.

Open SourceSelf HostedOfflineGPU 8GB+
Advanced
0.0 (0)

Library for easily accessing and processing ML datasets.

Open SourceSelf HostedOffline
Beginner
0.0 (0)

JAX neural network library with PyTorch-like module system.

Open SourceSelf HostedOffline
Advanced
0.0 (0)

High-level deep learning API supporting JAX, TensorFlow, and PyTorch backends.

Open SourceSelf HostedOffline
Easy
0.0 (0)

Neural network library for JAX by Google providing Linen module system.

Open SourceSelf HostedOffline
Advanced
0.0 (0)

Gradient boosting library by Yandex with native categorical feature handling.

Open SourceSelf HostedOffline
Easy
0.0 (0)
Browse all AI Frameworks & Libraries tools