AI RAG Injector

AI License Required

RAG injection with OpenAI and Redisv3.10+

Configure the AI RAG Injector plugin to inject content to use Redis as vector database and the OpenAI text-embedding-3-large model for embedding.

If you use the text-embedding-ada-002 as an embedding model, you must set a fixed dimension of 1536, as required by the official model specification. Alternatively, use the text-embedding-3-small model, which supports dynamic dimensions and works without specifying a fixed value.

Prerequisites

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

  • 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!