Skip to content

Examples

Ready-to-run examples demonstrating Guardrails in various scenarios. See the guardrails/examples/ folder for complete implementations. TypeScript examples are available in the guardrails-ts/examples/ folder.

Example Implementations (Python)

Example Implementations (TypeScript)

Hallucination Detection Example

Complete implementation using real documents as knowledge sources: examples/hallucination_detection/

Getting Started

  1. Follow the Quickstart guides: Python · TypeScript
  2. Explore repositories: Python examples · TypeScript examples
  3. Run scripts to see Guardrails in action

Each example is self-contained with clear configuration and usage patterns.