Haystack Integration
Add deterministic governance to your Haystack pipelines with custom components. PII detection, tool authorization, cost limits, secret scanning, and structured audit evidence — no LLM in the governance path.Package:tealtiger-haystackon PyPI
Haystack Version: v3 and above
License: Apache-2.0
Latency: Sub-2ms per evaluation
Source: GitHub
Installation
Quick Start
Custom Component Pattern
For full pipeline integration, create aTealTigerGuard component that slots into any Haystack pipeline:
Governed RAG Pipeline
A complete retrieval-augmented generation pipeline with governance:Tool Governance Component
For agentic Haystack pipelines with tool use:Governance Capabilities
PII Detection
Scans messages for 40+ PII patterns before they leave your infrastructure:Secret Scanning
Catches leaked credentials before they reach external APIs:Tool Authorization
Control which tools agents can invoke:read_* matches read_file, read_database, etc.
Cost Governance
Hard budget enforcement per session:Prompt Injection Detection
Deterministic pattern matching for injection attacks:Governance Modes
Audit Evidence
Every governance decision produces a structured receipt:Performance
TealTiger’s governance path is deterministic (regex + fnmatch, no LLM calls):
For comparison, a single LLM call takes 500–3000ms. Governance adds negligible overhead.
Why Not Just Validate in Code?
OWASP AI Security Coverage
TealTiger addresses 7/10 OWASP Agentic Security Issues:Complete Example
Next Steps
- LangChain Integration — Full-lifecycle governance with LangChain middleware
- AG2 Integration — Built-in governance extension for AG2 agents
- Policy Authoring Guide — Full policy configuration reference
- OWASP Policy Pack — Map TealTiger to OWASP Agentic Security Issues

