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.1.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.1-py3-none-any.whl (3.7 kB view details)

Uploaded Python 3

File details

Details for the file haystack_vaultak-0.1.1.tar.gz.

File metadata

  • Download URL: haystack_vaultak-0.1.1.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.1.tar.gz
Algorithm Hash digest
SHA256 f28d987b18d9f68a606262912274c96b22d1225bd065a6ebd1026f8718453a3d
MD5 a7b9686754366cf8d40c9abcae3dfe60
BLAKE2b-256 2c6f1dc16ba45be7838a255ebc87ed8e7679a61046ab27a538c457b3dac594ae

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for haystack_vaultak-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 3769088334582c6bf1910e6282c7279f445fa35346f3cea1ae368f10e41377f4
MD5 0f080c6ce28682cbb2a357ce388cb5d1
BLAKE2b-256 9f8354a29728300262c63b1533f80451667920b6afc68d908ae2cf2ba5151ac0

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