Show HN: RAG Firewall – retrieval-time guardrails for LangChain/LlamaIndex
1 talbuilds 0 8/29/2025, 7:48:12 PM github.com ↗
RAG pipelines are great, but they can still retrieve "toxic" chunks:
– prompt injection attempts
– leaked API keys/secrets
– stale or conflicting content
– unapproved external URLs
We built an open-source "retrieval firewall" that scans chunks before they reach the LLM: – denies injection & secrets – flags/reranks PII, encoded blobs, untrusted URLs – audit log (JSONL) of all decisions – drop-in wrappers for LangChain and LlamaIndex retrievers
Install: pip install rag-firewall Repo: https://github.com/taladari/rag-firewall
Curious if others here handle retrieval-time risks, or just ingest/output filtering. Would love feedback and red-team payloads.
No comments yet