NLU Intents Classification with LLM

NLU intents classification with LLM enables intent classification using a large language model (LLM). This model automatically learns from flow intents and training phrases, reducing the need for manual classification. It is built into the Flow Predict Engine, enhancing accuracy and adaptability in intent recognition.

NOTE: This feature is available as technology preview in DRUID 8.10 and higher. NLU intents classification with LLM currently does not support Named Entity Recognition (NER).

Supported LLM providers

You can choose from the following large language model (LLM) providers:

  • AzureOpenAI
  • OpenAI
  • Google
  • Mistral
  • Mesolitica – MaLLaM - This LLM provider is available in DRUID 9.1 and higher.
  • AWS Bedrock - This LLM provider is available in DRUID 9.5 and higher. Contact your DRUID representative to activate it on your tenant.

DRUID-dedicated LLM resources

  • Druid Becus 3.0 / 1.0 (Proprietary LLM)
  • Azure OpenAI - gpt-4o-mini
  • AwsBedrock - mistral-large-2407-v1:0

  • Google Vertex AI

If you want to use DRUID-dedicated LLM resources, contact your sales representative to activate them for your tenant.

How It Works

When NLU intents classification with LLM is configured, the system leverages a LLM for intent classification using two key prompts:

  • System prompt: Instructs the LLM to classify a user query by scoring provided intents based on relevance, adhering to strict JSON formatting and predefined scoring rules while considering both user-supplied and system intents.
  • User prompt: Provides the intent list and user query, ensuring the model has the necessary context for classification.

Configure NLU Intents Classification with LLM

Once configured, the model uses the two prompts to classify user intents automatically.

IMPORTANT! When using NLU intents classification with LLM, it’s important to separate natural language training phrases from technical commands. To avoid introducing noise into intent detection, move any technical training phrases—such as exact keywords, system triggers, or command-like inputs — into the Commands section of the respective flow. These phrases will then be matched exactly, without affecting the NLP model's understanding of user intent. Commands are available in DRUID 8.14 and higher.