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
20082026
-
…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…
comment by ironbound · 2026-01-16 · in How to wrangle non-deterministic AI outputs into conventional software? (2025) -
The general concept is called output guardrails. See https://github.com/guardrails-ai/guardrails for an open source implementation.
comment by koliber · 2024-09-13 · in I fixed the strawberry problem because OpenAI couldn't -
Post-LLM validation. We're currently working on this at https://github.com/guardrails-ai/guardrails
comment by safeerm · 2024-03-23 · in Launch HN: DryMerge (YC W24) – Automate Workflows with Plain English -
…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…
comment by newhouseb · 2023-05-02 · in Jsonformer: Generate structured output from LLMs -
…way of getting a LLM to always produce results in JSON for example. Have you tried Guardrails? https://github.com/ShreyaR/guardrails
comment by bugglebeetle · 2023-04-20 · in Ask HN: People who were laid off or quit recently, how are you doing? -
…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" @…
comment by newhouseb · 2023-04-19 · in Ask HN: AI to study my DSL and then output it? -
https://shreyar.github.io/guardrails/ https://github.com/shreyar/guardrails
comment by Cyphase · 2023-04-04 · in Introducing Agents in Haystack: Make LLMs resolve complex tasks