Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

haystack_vaultak-0.1.0.tar.gz (3.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

haystack_vaultak-0.1.0-py3-none-any.whl (3.7 kB view details)

Uploaded Python 3

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

Hashes for haystack_vaultak-0.1.0.tar.gz
Algorithm Hash digest
SHA256 fbaaf8d4c4d3745b91d9681f2cc699e5888f525a052ed0d8234c9e1326464fd3
MD5 22bb7002e966239bdb2e78659ea2156b
BLAKE2b-256 70cb791d2cadd9c1872dfc77b7a43b18e7f147e7108ebf53691847f42cf39bc8

See more details on using hashes here.

File details

Details for the file haystack_vaultak-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for haystack_vaultak-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 639d5131bd44bac78729affcfa727ecda1d093d9ee90787ad2b5c1b0639a770b
MD5 62dcc0c88126cac6be6c758ae8222b58
BLAKE2b-256 9e0a0b8e73e33440354eece9ab802e107dbf33763a77e8ed56b846854cbddfa5

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page