Guidance

Interleave control and generation
LLM / RAG frameworkConstrained generation libraryMITCloud-optionalPythonAdvanced
OSAI Pulse ⓘ ★★★★★★★★★★ /100 signals tracked
🐳 Docker pulls 📦 PyPI downloads / month 📦 npm downloads / month 🚀 Latest release ·
Visit website →View on GitHub

What is Guidance?

Guidance is a programming paradigm for steering LLMs that interleaves control flow with generation, with constrained decoding and rich templating.

Why people choose Guidance

Guidance at a glance

CategoryLLM / RAG framework
TypeConstrained generation library
LicenseMIT
Runs locallyCloud-optional
Built withPython
Skill levelAdvanced
Best fordevelopers scripting complex generation logic

Open-source alternatives to Guidance

Other open-source llm / rag framework tools worth comparing:

LangChainCompose chains, tools and agentsLlamaIndexThe data framework for RAGHaystackProduction pipelines for search and RAGDSPyProgram — not prompt — language modelstxtaiAll-in-one embeddings databaseRAGFlowDeep-document-understanding RAGSemantic KernelMicrosoft's enterprise agent frameworkGraphRAGRAG that builds a knowledge graph firstLiteLLMOne API for 100+ LLM providersInstructorReliable structured outputs from LLMsOutlinesGuarantee valid JSON and grammarsLLMWareEnterprise RAG with small specialised modelsFlashRankUltra-light reranking for better RAGSentence TransformersThe standard way to make embeddingsRagasMeasure whether your RAG is any goodPromptfooUnit tests for your promptsLangfuseSee what your LLM app actually didPhoenixTrace, evaluate and debug LLM apps

Guidance head-to-head

Guidance vs LangChainGuidance vs LlamaIndexGuidance vs HaystackGuidance vs DSPyGuidance vs txtaiGuidance vs RAGFlowGuidance vs Semantic KernelGuidance vs GraphRAGGuidance vs LiteLLMGuidance vs InstructorGuidance vs OutlinesGuidance vs LLMWareGuidance vs FlashRankGuidance vs Sentence TransformersGuidance vs RagasGuidance vs PromptfooGuidance vs LangfuseGuidance vs Phoenix

FAQ

Is Guidance free?

Guidance is free and open-source (MIT license), so you can use, self-host and modify it at no cost.

Can I run Guidance locally?

Guidance can be used locally or in the cloud depending on your setup.

What is the best alternative to Guidance?

Popular open-source alternatives include LangChain, LlamaIndex, Haystack. See the comparisons above to choose.

Explore more open-source AI

Browse the full directory of open-source AI tools, models and projects — updated daily.

Browse all tools →