Initialize and configure the AI Content Assistant via Essentials

This guide walks you through the process of setting up and configuring the BrXM AI Content Assistant using the Essentials application.

Configuring the AI assistant via the Essentials application stores the API keys in plain text in the JCR configuration, which is not secure for production environments.

Configuring the Content Assistant via Essentials results in:

  1. Addition of new dependencies in your cms-dependencies pom file.

  2. Addition of JCR configuration under /hippo:configuration/hippo:modules/ai-service/hipposys:moduleconfig

If you are upgrading to v16.6 or v16.8, see also AI Module upgrade instructions.

Initialize and configure via Essentials

You can initialize and configure the AI Content Assistant with the Essentials application. To do so:

  1. Go to Essentials.

  2. Go to Library - Make sure Enterprise features are enabled.

  3. Look for Content AI and click Install feature

  1. Now, rebuild and restart your project.

  2. Once your project has restarted, go to Installed features.

  3. Find Content AI and click Configure.

  1. Select the Model Provider tab.

  2. Choose the desired AI Model from the available options of supported providers.

  3. Configure the other details such as API URL (endpoint), API key, and so on. Each provider has different configuration options (see Model Provider Configuration options section below).

  1. Once you’re done, click Save.

  2. If you don't have an external vector database configured, skip to step 15.

  3. (Optional) Select the Vector Store and Ingestion tab.

  4. (Optional) Choose your configured Vector Store (Redis or Postgres).

  5. (Optional) Configure Ingestion Options and options for your selected vector store (see Vector Store and Ingestion Configuration options section below).

  6. (Optional) Once you’re done, click Save.

  7. Lastly, rebuild and restart your project again.

Model Provider Configuration options

The AI Content Assistant is only accessible to users with the xm.chatbot.user role

Each model provider can have different settings to configure, like:

  • API key/project ID: Enter your API key or project ID, depending on your model provider.

  • Model to use: Specify the exact model name and version to use in the AI Assistant. This allows you to choose the best performing model for a particular type of tasks.

  • Temperature: Set the temperature of the model. That controls the creativity, depth and randomness of the ai responses.

  • Max tokens: Specify the maximum number of tokens that can be used by a conversation. This helps you keep your token usage in check, so it doesn't exceed your allowed limit with your AI provider.

  • Max messages: Limit the maximum number of messages allowed in a single conversation. The user will not be allowed to send more messages once they have exhausted the limit, thereby keeping token usage in check.

  • Max PDF Size in Bytes: Specify the maximum number, in bytes, over which a pdf will not be allowed to be added as a reference to a conversation.

  • Completions Path: Allows setting a custom path for the chat endpoint.

  • Embedding Options: Allows configuring options for Embedding model (required for Vector Store and Ingestion process).

Please see Initialize and configure via Properties for references on all available properties.

Vector Store and Ingestion Configuration Options

Once you have selected a vector database, you can configure its options, such as connection URL, username, password, etc. You will also be able to configure Ingestion options here, such as:

  • Ingestion Mode: Ingestion operating mode. In preview mode, unpublished content is indexed upon save/rename/copy/move operations, while in live mode only published content in indexed during publication (and scheduled publication).
  • Ingestion Document Types: Comma sepatated list of fully qualified document types. Only content of those types will be indexed. If not provided, no content will be ingested.
  • Ingestion Include Directories: Comma sepatated list of absolute paths. Unless the document is under one of those paths, it will be skipped from ingestion. Leave empty to allow ingestion from any directory.
  • Ingestion Exclude Directories: Comma sepatated list of absolute paths. If the document is under any of those paths, it will be skipped from ingestion.
  • Ingestion Initial Delay (seconds): How long, in seconds, after system startup, should the Ingestion process begin.
  • Ingestion Interval (seconds): How often the process runs.
  • Ingestion Batch Size: The ingestion processes multiple documents at once and sends them all together to the Vector Store.
  • Ingestion Delay (milliseconds): Back-off time after processing of every batch.

The ingestion process will be disabled unless you have configured a vector store. A running instance of a vector database must be accessible.
See Initialize and configure the Vector Store and Ingestion process for references on all available options.

Maintenance Scripts

The AI module installs tooling for maintenance of your Vector Store, in the form of Groovy scripts. See more details in Maintenance Groovy Scripts.

Did you find this page helpful?
How could this documentation serve you better?
On this page
    Did you find this page helpful?
    How could this documentation serve you better?