Guidance
Microsoft's constrained generation library for structured LLM output
Verdict
Powerful constrained decoding — guarantees LLM output matches your grammar or regex. Works at the token level for maximum control. Best for complex structured extraction tasks.
Other Frameworks & SDKs
- DSPyStable
Stanford framework for programming (not prompting) LMs
- HaystackStable
Deepset open-source NLP framework for production LLM pipelines
- InstructorProduction
Structured outputs from LLMs using Pydantic schemas
- LMQLExperimental
Query language for LLMs — SQL-like syntax for constrained generation
- LangChainProduction
Composable LLM application framework — chains, agents, RAG
- LlamaIndexProduction
Data framework for LLM applications — indexing and retrieval

