Vaultak runtime security components for Haystack pipelines
Project description
haystack-vaultak
Vaultak runtime security components for Haystack pipelines.
Installation
pip install haystack-vaultak
Components
- VaultakSecurityChecker — Risk-scores every query before it enters your pipeline. Blocks high-risk inputs.
- VaultakPIIMasker — Masks PII in LLM replies before they reach users.
Quick start
from haystack import Pipeline
from haystack.components.generators.chat import OpenAIChatGenerator
from haystack_vaultak import VaultakSecurityChecker, VaultakPIIMasker
import os
pipeline = Pipeline()
pipeline.add_component("security", VaultakSecurityChecker(api_key=os.environ["VAULTAK_API_KEY"]))
pipeline.add_component("llm", OpenAIChatGenerator(model="gpt-4o-mini"))
pipeline.add_component("pii_masker", VaultakPIIMasker(api_key=os.environ["VAULTAK_API_KEY"]))
pipeline.connect("security.query", "llm.query")
pipeline.connect("llm.replies", "pii_masker.replies")
result = pipeline.run({"security": {"query": "What is the capital of France?"}})
print(result["pii_masker"]["replies"][0].text)
License
MIT
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file haystack_vaultak-0.1.0.tar.gz.
File metadata
- Download URL: haystack_vaultak-0.1.0.tar.gz
- Upload date:
- Size: 3.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fbaaf8d4c4d3745b91d9681f2cc699e5888f525a052ed0d8234c9e1326464fd3
|
|
| MD5 |
22bb7002e966239bdb2e78659ea2156b
|
|
| BLAKE2b-256 |
70cb791d2cadd9c1872dfc77b7a43b18e7f147e7108ebf53691847f42cf39bc8
|
File details
Details for the file haystack_vaultak-0.1.0-py3-none-any.whl.
File metadata
- Download URL: haystack_vaultak-0.1.0-py3-none-any.whl
- Upload date:
- Size: 3.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
639d5131bd44bac78729affcfa727ecda1d093d9ee90787ad2b5c1b0639a770b
|
|
| MD5 |
62dcc0c88126cac6be6c758ae8222b58
|
|
| BLAKE2b-256 |
9e0a0b8e73e33440354eece9ab802e107dbf33763a77e8ed56b846854cbddfa5
|