talira

Compare

OutlinesInstructorGuidanceLangExtract
What it isA Python library that guarantees LLM output matches a JSON schema, Pydantic model, regex or grammarStructured outputs from LLMs, validated with PydanticA guidance language for controlling large language modelsExtract structured information from unstructured text using LLMs, with precise source grounding
KindOpen sourceOpen sourceOpen sourceOpen source
Trust0.590.730.470.76
Stars16030141382183239351
Last commit2026-11-252026-11-182026-05-212026-11-24
LicenceApache-2.0MITMITApache-2.0
PricingFree and open sourceFree and open sourceFree and open sourceFree and open source
Free tierYesYesYesYes
Self-hostable————
Ways to run it————
SOC 2————
HIPAA————
SSO————
API———No
Plugins———Yes
MCP server———No
Company.txtJason LiuGuidance AIGoogle
public company (NASDAQ:GOOGL)
Features
  • Constrains generation to a JSON schema or Pydantic model
  • Regular expression constrained output
  • Context-free grammar constrained output
  • Multiple choice outputs
  • Infers structure from function signatures
  • Works with transformers, llama.cpp, vLLM, Ollama, OpenAI and Gemini
  • Prompt templates
  • extract structured data from LLM replies into Pydantic models
  • validation with automatic retries
  • streaming of partial objects and lists
  • one interface for 15+ providers, including local models via Ollama
  • async support and hooks
  • CLI that opens and searches the docs
  • gen() with regex and grammar constraints
  • select() from a fixed set of options
  • JSON generation from a JSON schema or Pydantic model
  • context-free grammars for output
  • interleaved control flow, loops and tool use
  • @guidance decorator for reusable components
  • token fast-forwarding where the structure is fixed
  • backends: Transformers, llama.cpp, OpenAI and others
  • All 9 features
  • few-shot extraction tasks defined by instructions and examples
  • source grounding to exact text spans
  • consistent schema with controlled generation
  • chunking, parallel processing and multiple passes for long documents
  • interactive HTML visualization
  • Gemini, OpenAI and Ollama models
  • custom and community provider plugins
Limitations
        • Not an officially supported Google product