Skip to content

Add cookbook: Governed RAG pipeline with TealTiger governance guardrails - #312

Open
nagasatish007 wants to merge 2 commits into
deepset-ai:mainfrom
nagasatish007:main
Open

Add cookbook: Governed RAG pipeline with TealTiger governance guardrails#312
nagasatish007 wants to merge 2 commits into
deepset-ai:mainfrom
nagasatish007:main

Conversation

@nagasatish007

Copy link
Copy Markdown

Adds a cookbook demonstrating how to add deterministic governance guardrails to a Haystack RAG pipeline using TealTiger.

What the cookbook covers:

  • Building a standard RAG pipeline (document store + retriever + LLM generator)
  • Adding TealTigerGovernanceChecker as a pipeline component
  • PII detection in queries before they reach the LLM
  • Cost budget enforcement (deny requests once budget is exceeded)
  • Secret detection in generated responses
  • Structured audit trail (TEEC receipts for every governance decision)
  • Three governance modes: ENFORCE (block), MONITOR (log only), OBSERVE (passthrough)

Integration page: https://haystack.deepset.ai/integrations/tealtiger
Package: pip install haystack-tealtiger

This Jupyter notebook demonstrates how to implement a governed RAG pipeline using TealTiger for governance checks, including PII detection, cost limits, and secret detection.
@nagasatish007
nagasatish007 requested a review from a team as a code owner August 13, 2026 05:07
@review-notebook-app

Copy link
Copy Markdown

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

@nagasatish007

Copy link
Copy Markdown
Author

@kacperlukawski — thanks for merging the integration docs update yesterday. Following up with a cookbook contribution to deepset-ai/haystack-cookbook:

PR: deepset-ai/haystack-integrations#561

It's a "Governed RAG Pipeline with TealTiger" notebook showing how to add PII detection, cost budgets, and audit trails to a standard Haystack RAG pipeline using the haystack-tealtiger package. Covers all three governance modes (ENFORCE/MONITOR/OBSERVE) with a worked example.

Would appreciate a look when you get a chance.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant