Hacker GitHub

← All repos

guardrails-ai/guardrails

View on GitHub ↗ ★ 7,579 Python

Adding guardrails to large language models.

10 mentions on Hacker News by 9 people: 3 stories, 7 comments · first 2023-03-13 · latest 2026-01-16

Mentions per year 10 mentions · busiest year 2023 (7)
20082026
  1. …output libraries: https://github.com/outlines-dev/outlines https://github.com/jxnl/instructor https://github.com/guardrails-ai/guardrails https://www.askmarvin.ai/docs/text/transformation/ Some of them allow a JSON schema, others a…
  2. The general concept is called output guardrails. See https://github.com/guardrails-ai/guardrails for an open source implementation.
  3. Post-LLM validation. We're currently working on this at https://github.com/guardrails-ai/guardrails
  4. …so you can do proper beam search). For completeness, another common approach can be found here: https://github.com/ShreyaR/guardrails which essentially boils down to "provide the schema in the prompt and ask the LLM to correct things if it…
  5. …way of getting a LLM to always produce results in JSON for example. Have you tried Guardrails? https://github.com/ShreyaR/guardrails
  6. …model with a final layer that steers token selection towards syntactically valid tokens [2] [1] https://github.com/ShreyaR/guardrails [2] "Structural Alignment: Modifying Transformers (like GPT) to Follow a JSON Schema" @…
  7. https://shreyar.github.io/guardrails/ https://github.com/shreyar/guardrails