What are common security risks in RAG?
AdvancedProductionRAG & vector databases
Answer
Indexed documents can contain prompt injections that steer the model, restricted data can leak if permissions are not filtered at query time, and poisoned documents can spread wrong answers. Sanitise and restrict sources, enforce access control in retrieval, mark retrieved text as untrusted data in the prompt, and monitor outputs.