AI Semantic Response Guard

AI License Required

Allow only responsesv3.12+

The AI Semantic Response Guard plugin analyzes the full response from an LLM service and permits it only if it semantically matches one of the configured allow patterns.

If a response does not match any of the allow patterns, it is blocked with a 400 Bad Request.

Prerequisites

Environment variables

  • OPENAI_API_KEY: Your OpenAI API key

  • REDIS_HOST: The host where your Redis instance runs

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!