Permissions: enforce user and tenant access in the retrieval query using metadata or namespaces, and never let the LLM decide who can see what.
Prompt injection: treat retrieved text as untrusted data, delimit it, strip or flag instruction-like content, and limit tools and actions available after reading documents.
Data protection: redact personal data and secrets before indexing, encrypt data, set retention rules, and log retrievals for audit; control who can add documents to prevent knowledge-base poisoning.
Test with adversarial prompts and cross-user probes before release.
Loading…