Hacker GitHub

← All repos

guidance-ai/guidance

View on GitHub ↗ ★ 21,813 Jupyter Notebook

A guidance language for controlling large language models.

72 mentions on Hacker News by 64 people: 9 stories, 63 comments · first 2023-05-09 · latest 2026-09-15

Mentions per year 72 mentions · busiest year 2023 (52)
20082026
  1. Congrats on the launch! What's different between Jev and Microsoft's Guidance package? https://github.com/guidance-ai/guidance Is it a diffusion generator under the hood?
    comment by theredsix · 2026-09-15 · in Introducing System One Models and Jev
  2. trumps voice wrong https://developers.openai.com/api/docs/guides/structured-out... https://github.com/guidance-ai/guidance https://github.com/noamgat/lm-format-enforcer https://github.com/mlc-ai/xgrammar…
    comment by Der_Einzige · 2026-06-15 · in Not everyone is using AI for everything
  3. …- Guidance (already covered by FlyingLawnmower in this thread), another nice library - https://github.com/guidance-ai/guidance - XGrammar, a less-featureful but really well optimized constrained generation library -…
    comment by mcyc · 2026-01-17 · in LLM Structured Outputs Handbook
  4. …grammar (so long as the backend LLM has full support for Guidance). More on this below." --from https://github.com/guidance-ai/guidance/ I didn't find any more on that comment below. Is there a list of supported LLMs?
  5. …on how this works: User friendly library that connects to lots of OSS model serving backends: https://github.com/guidance-ai/guidance/ Core Rust library written for high performance mask computation (written mostly by my collaborator…
    comment by FlyingLawnmower · 2025-09-23 · in Sampling and structured outputs in LLMs
  6. …tokens are valid JSON immediately after a `{`, etc. [0] https://github.com/dottxt-ai/outlines [1] https://github.com/guidance-ai/guidance
    comment by evnc · 2025-08-07 · in GPT-5 for Developers
  7. …degradation and reliability issues. My next experiment on that thread is to either use guidance ( https://github.com/guidance-ai/guidance ) or reimplement some of their heuristics to try to get tool calling without 100% reliance on JSON.
  8. …much I appreciate your work. I'm curious if you have considered implementing Microsoft's Guidance ( https://github.com/guidance-ai/guidance )? Their approach offers significant speed improvements, which I understand can sometimes be…
    comment by mwieler · 2024-12-08 · in Structured Outputs with Ollama
  9. …Guidance which forces the models to write valid JSON as they generate text solves this trivially ( https://github.com/guidance-ai/guidance ) For json in particular these frameworks have functions that take in json schemas or pydantic…
  10. …aware token filling. I hope this implies API-based LLMs may be moving in a similar direction. [1] https://github.com/guidance-ai/guidance
    comment by blixt · 2024-08-07 · in Structured Outputs in the API
  11. Via APIs, yes. But if you have direct access to the model you can use libraries like https://github.com/guidance-ai/guidance to manipulate the output structure directly.
  12. …Have you tried out instructor [0] or Guidance [1]? [0]: https://github.com/jxnl/instructor/ [1]: https://github.com/guidance-ai/guidance/tree/main
    comment by Joschkabraun · 2024-04-08 · in Anthropic's Haiku Beats GPT-4 Turbo in Tool Use
  13. …model with focus on JSON tokens and a combination of the technique involved in grammar/guidance https://github.com/guidance-ai/guidance Same principle
    comment by AmazingTurtle · 2024-03-19 · in Inversion: Fast, Reliable Structured LLMs
  14. …and others [2] already solved much more elegantly? 0. https://github.com/outlines-dev/outlines 1. https://github.com/guidance-ai/guidance 2. https://github.com/sgl-project/sglang
    comment by PheonixPharts · 2024-03-12 · in Show HN: Prompts as WASM Programs
  15. Isn't that also similar to the (formerly?) Microsoft Guidance project? https://github.com/guidance-ai/guidance
    comment by nighthawk454 · 2024-03-11 · in Show HN: Prompts as WASM Programs
  16. Mentioned packages https://github.com/eth-sri/lmql https://github.com/outlines-dev/outlines https://github.com/guidance-ai/guidance
  17. Why do you have Guidance in caps? https://github.com/guidance-ai/guidance or ... https://huggingface.co/docs/text-generation-inference/concep... or ... ? A quick glance through these, they don't seem yet to leverage json_object on OpenAI…
  18. These may be useful https://github.com/ggerganov/llama.cpp/blob/master/grammars https://github.com/guidance-ai/guidance?tab=readme-ov-file#c... https://github.com/eth-sri/lmql/issues/172
  19. …prompting and external tools. As others have mentioned, instruct tuning would help too. [0] https://github.com/guidance-ai/guidance
  20. Microsoft Guidance: https://github.com/guidance-ai/guidance
  21. …to converse with each other. The original comparison to LangChain from Microsoft was Guidance ( https://github.com/guidance-ai/guidance ) which appears to have shifted development a bit. I haven't had much experience with it but from the…
  22. …of our models to ensure safety. It is also possible to restrict the output domain of our models ( https://github.com/guidance-ai/guidance ). Instead of allowing our LVMs to output any words, we could restrict it to only being able to…
  23. …data if it wasn't a simple extraction. Hopefully OpenAI and others will offer something like https://github.com/guidance-ai/guidance at some point to guarantee overall output structure. Failed validations will retry, but from what I've…
  24. …that implements generating structured output like https://github.com/outlines-dev/outlines or https://github.com/guidance-ai/guidance . If you have ideas how this should be done let me know - on a github issue would be great to make it…
  25. …comes down to "pausing" template rendering and calling the LLM with all content generated so far. https://github.com/guidance-ai/guidance/blob/main/guidance/l... This is how we implemented it anyhow, with some more parameters to control…
  26. This IS Microsoft Guidance, they seem to have spun off a separate GitHub organization for it. https://github.com/microsoft/guidance redirects to https://github.com/guidance-ai/guidance now.
  27. …a grammar, for example to guarantee JSON output 100% of the time. Here's one library to do this https://github.com/guidance-ai/guidance
  28. …likely help improve this problem. [1] A guidance language for controlling large language models. https://github.com/guidance-ai/guidance [2] Knowledge Infused Decoding https://arxiv.org/abs/2204.03084
  29. …this specifically but logit control/manipulation is often used to conform to a specific schema. https://github.com/guidance-ai/guidance I'm going to butcher this explanation - after you've generated your selection of logits but before you…
  30. Microsoft Guidance integration? https://github.com/guidance-ai/guidance
    comment by adamgordonbell · 2023-08-17 · in DeepEval – Unit Testing for LLMs
  31. …the output of LLMs (so you can, among many other things, output JSON in a deterministic way) [1]: https://github.com/guidance-ai/guidance
  32. …not even guarantee the output will be valid JSON. When this is, really, a solved problem. I've been using github.com/microsoft/guidance for weeks, and it genuinely, truly guarantees correct output, because it simply does not sample from…
  33. …[0] https://openai.com/blog/function-calling-and-other-api-updat... [1] https://resgen.app [2] https://github.com/guidance-ai/guidance
  34. LQML (and guidance https://github.com/guidance-ai/guidance ) are much more inefficient. They loop over the entire vocabulary at each step, we only do it once at initialization.
  35. LMQL - https://lmql.ai/ Guidance (microsoft) - almost abandoned - https://github.com/microsoft/guidance
  36. …but its fairly rote and I think other prompting chains have a similar repetitiveness to them. https://github.com/microsoft/guidance
  37. …of being able to upload a bit of code or a context-free grammar to guide the model is super smart. https://github.com/microsoft/guidance/blob/d2c5e3cbb730e337b...
    comment by ttul · 2023-07-22 · in Llama: Add grammar-based sampling
  38. Isn’t this what Microsoft Guidance does? https://github.com/microsoft/guidance
    comment by eightysixfour · 2023-07-21 · in Llama: Add grammar-based sampling
  39. …that conforms to the requested format . This is what Guidance does already, also from Microsoft: https://github.com/microsoft/guidance But OpenAI apparently does not expose the full scores of all tokens, it only exposes the highest-scoring…
    comment by andy_xor_andrew · 2023-07-21 · in TypeChat
  40. …process of building this very thing and good ol' Misrocoft just swung in and ate my lunch.. :/ [0] https://github.com/microsoft/guidance [1] https://github.com/microsoft/TypeChat/blob/main/src/typechat...
    comment by parentheses · 2023-07-21 · in TypeChat
  41. …not super clear how this differs from another recently released library from Microsoft: Guidance ( https://github.com/microsoft/guidance ). They both seem to aim to solve the problem of getting typed, valid responses back from LLMs
    comment by Zaheer · 2023-07-20 · in TypeChat
  42. …similar project that can actually integrate into the token sampling to enforce formats. [1]: https://github.com/microsoft/guidance
    comment by osaariki · 2023-07-20 · in TypeChat
  43. …that seems incredibly useful to local inference [token healing and acceleration especially]. [0] https://github.com/microsoft/guidance
  44. …being the models these prompts were run on. So maybe a simpler library like Microsoft's Guidance ( https://github.com/microsoft/guidance )? It does this really well. Also LangChain has a lot of integrations, that just pop up as soon as new…
  45. I am unclear on the status of the project but here is the conversation that seem to be tracking it: https://github.com/microsoft/guidance/discussions/201
  46. What are the benefits over https://github.com/microsoft/guidance/ ?
  47. Have you tried guidance? https://github.com/microsoft/guidance
    comment by vczf · 2023-07-07 · in GPT-4 API General Availability
  48. …And it has its own caching. Set temp to 0 and it caches. no need for LLM specific caching libs :) ) https://github.com/microsoft/guidance
    comment by adamgordonbell · 2023-06-21 · in Emerging architectures for LLM applications
  49. …like Guidance where you have a pre structured JSON format ready to go and all you need is text: https://github.com/microsoft/guidance
    comment by imranq · 2023-06-14 · in Native JSON Output from GPT-4
  50. …to fine-tuning validator models to new programming/modeling languages. Here's some examples: - https://github.com/microsoft/guidance - https://github.com/NVIDIA/NeMo-Guardrails/ - https://github.com/r2d4/rellm -…