Safeguarding Your RAG Pipelines: A Step-by-Step Guide to Implementing Llama Guard with LlamaIndex

How to add Llama Guard to your RAG pipelines to moderate LLM inputs and outputs and combat prompt injection

Wenqi Glantz
Towards Data Science
15 min readDec 27, 2023

--

Image generated by DALL-E 3 by the author

LLM security is an area that we all know deserves ample attention. Organizations eager to adopt Generative AI, from big to…

--

--