AI Integration for Documentation (Experimental)

AI in Documentation (Experimental)

Lucee 6.2 introduces experimental support for AI-driven assistance in the Documentation tab of Luceeā€™s Monitor, aiming to provide intelligent guidance by connecting to various AI engines. This feature will see further refinement in Lucee 7. For an overview of Lucee's AI capabilities, see the general AI documentation.

Configuration for AI in Monitor/Documentation

To enable AI in the Documentation tab of the Monitor, set up a compatible AI connection in the Lucee Administrator or via the .CFConfig.json file. Configurations for OpenAI (ChatGPT), Google Gemini, or local services like Ollama are possible.

Example Configuration

Below are example configurations to enable AI functionality in the Documentation tab, important here is the default setting.

OpenAI (ChatGPT) Configuration Example:

"ai": {
  "docChatGPT": {
    "class": "lucee.runtime.ai.openai.OpenAIEngine",
    "custom": {
      "message": "Provide concise, accurate answers",
      "secretKey": "${CHATGPT_SECRET_KEY}",
      "model": "gpt-4",
      "type": "openai",
      "timeout": 2000
    },
    "default": "documentation"
  }
}