FeaturedAI Agents#RAG Security#Data Poisoning#Prompt Injection#Knowledge Base#AI Security#Retrieval Safety

RAG Knowledge Base Poisoning Sentinel

Review newly ingested knowledge chunks for instruction injection, provenance gaps, and suspicious content before retrieval.

Workflow at a glance

The full canvas, before you import it

Click any node to see its config.

#RAG Security#Data Poisoning#Prompt Injection#Knowledge Base#AI Security#Retrieval Safety

Click a node to select it — same as the Heym editor; the panel shows its settings.

9 nodes · Free & source-available

RAG Knowledge Base Poisoning Sentinel

Add a quarantine layer between document ingestion and production retrieval. This workflow reviews pending knowledge chunks for hidden instructions, source impersonation, encoded payloads, unrelated redirects, and missing provenance before they can influence an agent.

What this workflow does

  1. RagSafetySchedule runs every 15 minutes
  2. FindPendingKnowledgeChunks loads unreviewed chunks from DataTable
  3. IterateKnowledgeChunks processes each chunk independently
  4. InspectKnowledgeChunk assigns quarantine, review, or accept status
  5. RouteKnowledgeSafety sends each decision to a different path
  6. Quarantined chunks are marked and removed from the publish queue
  7. Ambiguous chunks alert the knowledge security team
  8. Accepted chunks are recorded as approved

Use cases

  • RAG poisoning detection
  • Indirect prompt injection screening
  • Knowledge base ingestion quarantine
  • Retrieval provenance enforcement

Setup

Select the DataTable that receives pending knowledge chunks and map sourceUrl, contentText, contentHash, and ingestionStatus fields. Connect an LLM credential and Slack. Keep deterministic file validation, access controls, and source allowlists around this semantic review.

How to import this template

  1. 1Click Import → Copy JSON on this page.
  2. 2Open your Heym and navigate to a workflow canvas.
  3. 3PressCmd+V/Ctrl+V— nodes appear instantly.
  4. 4Add your API keys in the node config panels and click Run.
More workflow templates
View all templates