AI and Deep Learning Community Question

Best frameworks for implementing guidance in LLMs?

Posted on 2025-06-15 • In AI and Deep Learning • By Daniel Foster

I want to start moving away from raw strings and start using guidance in my Python apps. Which frameworks are currently considered industry standard for this? I've looked at the Microsoft library, but are there other open-source alternatives that play better with LangChain or AutoGPT?

3 Answers 12,543 Views

All answers to this question 3 Answers

Sharon Myers Answered on 2025-06-17
Answered

The landscape is moving fast! Microsoft’s "Guidance" is excellent for its syntax, but many are shifting toward "Outlines" by the .dot team. Outlines is particularly powerful because it uses FSM (Finite State Machines) to guide the sampling, making it incredibly fast. Another one to watch is LMQL (Language Model Query Language), which allows for very complex logic nested within the prompt. If you are already deep into the LangChain ecosystem, check out their "Output Parsers," though they are more of a post-processing step than true "guidance" which happens during the token selection itself.

Joshua Hayes Answered on 2025-06-18
Answered

Between Outlines and Guidance, which one have you found to be more stable when dealing with frequent API updates from providers like OpenAI?

Larry Gardner Commented on 2025-06-19
Commented

Joshua, that's the catch—most guidance libraries work best with local models (via Transformers or llama.cpp) where you have control over the logits. For OpenAI, you are limited to their "JSON Mode" or "Function Calling," which are their versions of guidance. If you want the full programmatic power of these libraries, you're usually better off hosting your own model on a cloud GPU to get that granular control.

Cheryl Bishop Answered on 2025-06-20
Answered

I’ve been using Outlines for a few months now for my Data Science work and it’s been a game changer for extracting structured entities from messy text.

Daniel Foster Commented on 2025-06-21
Commented

I've heard great things about Outlines as well! It’s interesting to see how the industry is pivoting toward these more rigorous Software Development practices for AI.

Write a Comment

Your email address will not be published. Required fields are marked (*)

Join the LearnersEra Community

Ask questions, share knowledge and learn from professionals across technology, project management and certification topics.

Change Country and Nearest City

Select your country and nearest city to see courses available in your region.