rag-cag-security

Community

Secure RAG/CAG systems with multi-tenant isolation.

Authorjpoutrin
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Ensuring data privacy, access control, and protection against prompt injection in Retrieval-Augmented Generation (RAG) and Cache-Augmented Generation (CAG) systems, especially in multi-tenant environments, is a complex and critical challenge. This Skill provides robust security patterns.

Core Features & Use Cases

  • Multi-Tenant Architecture: Strategies for tenant isolation, including namespace isolation, metadata filtering, and separate collections in vector stores.
  • Access Control: Patterns for implementing document-level permissions based on user roles, groups, and data classification.
  • Prompt Injection Prevention: Techniques and code examples for sanitizing retrieved content before it's included in an LLM prompt.
  • Data Classification: Guidelines for categorizing data (Public, Internal, Confidential, Restricted) and handling it securely.
  • Use Case: Designing a secure multi-tenant RAG system, implementing document-level access control for retrieved content, sanitizing retrieved chunks before prompt inclusion, or classifying sensitive data in an AI pipeline.

Quick Start

Use the rag-cag-security skill to generate a Python code snippet for filtering vector store results by tenant_id.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: rag-cag-security
Download link: https://github.com/jpoutrin/product-forge/archive/main.zip#rag-cag-security

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.