AI Semantic Cache

AI License Required

Set up with OpenAI and PGVectorv3.8+

Enable AI Semantic Caching with OpenAI embeddings API and a PGVector database.

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

Environment variables

  • OPENAI_API_KEY: Your OpenAI API key

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!