Document-Level Prompt Injection in RAG Systems
A single, cleverly crafted PDF document can bring down an entire RAG system, hijacking the behavior of AI agents and causing unforeseen consequences.
The Problem
import PyPDF2
import torch
from transformers import AutoModelForSeq2SeqLM, AutoTokenizer...
botguard.hashnode.dev5 min read