docs: add Vaultak runtime security integration#516
Open
samueloladji-beep wants to merge 1 commit into
Open
Conversation
Adds integration page for haystack-vaultak (https://pypi.org/project/haystack-vaultak/). Ships two @component classes — VaultakSecurityChecker and VaultakPIIMasker — that can be inserted into any Haystack 2.0 pipeline to risk-score inputs and mask PII in LLM replies. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
|
@samueloladji-beep is attempting to deploy a commit to the deepset Team on Vercel. A member of the Team first needs to authorize it. |
bilgeyucel
requested changes
Jun 18, 2026
bilgeyucel
left a comment
Contributor
There was a problem hiding this comment.
Thanks for the PR @samueloladji-beep! Left my comments
Comment on lines
+123
to
+124
| pipeline.add_component("prompt_builder", PromptBuilder(template=prompt_template)) | ||
| pipeline.add_component("llm", OpenAIGenerator()) |
Contributor
There was a problem hiding this comment.
Can you replace these components with ChatPromptBuilder and OpenAIChatGenerator compoennts?
Comment on lines
+59
to
+68
| from haystack_vaultak import VaultakSecurityChecker | ||
|
|
||
| checker = VaultakSecurityChecker( | ||
| api_key="YOUR_VAULTAK_API_KEY", | ||
| threshold=7.0, | ||
| verbose=True, | ||
| ) | ||
|
|
||
| pipeline.add_component("security", checker) | ||
| pipeline.connect("security.query", "retriever.query") |
Contributor
There was a problem hiding this comment.
This code doesn't work. It misses the pipeline object. Also, when I initialize the VaultakSecurityChecker, I get "Vaultak.init() got an unexpected keyword argument 'agent_name'" error
Comment on lines
+77
to
+82
| from haystack_vaultak import VaultakPIIMasker | ||
|
|
||
| masker = VaultakPIIMasker(api_key="YOUR_VAULTAK_API_KEY") | ||
|
|
||
| pipeline.add_component("pii_masker", masker) | ||
| pipeline.connect("llm.replies", "pii_masker.replies") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds an integration page for haystack-vaultak, a runtime security package for Haystack pipelines.
The integration ships two
@componentclasses:VaultakSecurityChecker— inserted before the LLM/retriever; risk-scores every query on a 0–10 scale and raisesRuntimeErrorif the score exceeds the configured thresholdVaultakPIIMasker— inserted after the LLM; scans replies for PII and masks before they reach usersIncludes a full RAG pipeline example demonstrating both components working together.
Checklist
pip install haystack-vaultakYOUR_VAULTAK_API_KEY,YOUR_OPENAI_API_KEY)RuntimeErrorused throughout (no custom exception classes)samueloladji-beepVaultakAI