AI RAG Injector

AI License Required

RAG injection with ACLs using OpenAI and Redis

v3.13+ Configure the AI RAG Injector plugin with access control lists (ACLs) to restrict which consumer groups can access specific knowledge base collections. This configuration uses Redis as the vector database and OpenAI text-embedding-3-large for embeddings.

The example demonstrates a three-tier access model:

  • Public documents accessible to all authenticated users
  • Finance reports restricted to finance and executive groups
  • Executive confidential content accessible only to executives

Check this how-to guide for a detailed walkthrough.

Prerequisites

  • You have enabled the AI Proxy or AI Proxy Advanced plugin

  • You have configured Key Auth or another authentication plugin

  • You have created Consumer Groups that match your ACL configuration

  • You have an OpenAI account

  • A Redis instance

  • Port 6379, or your custom Redis port is open and reachable from Kong Gateway

Environment variables

  • OPENAI_API_KEY: The API key to use to connect to OpenAI

  • REDIS_HOST: The Redis server’s host

Set up the plugin

Something wrong?

Help us make these docs great!

Kong Developer docs are open source. If you find these useful and want to make them better, contribute today!