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. ▲ 1
    Guardrails AI
    story by andy99 · 2023-12-30 · 0 comments
  5. …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…
  6. …way of getting a LLM to always produce results in JSON for example. Have you tried Guardrails? https://github.com/ShreyaR/guardrails
  7. …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" @…
  8. https://shreyar.github.io/guardrails/ https://github.com/shreyar/guardrails
  9. ▲ 62
    Adding guardrails to large language models
    story by swyx · 2023-03-14 · 13 comments
  10. ▲ 3
    Guardrails is a Python package that lets developers specify SLAs for GPT-3
    story by shreyarajpal · 2023-03-13 · 1 comment