AI / LLM Integration

The AI support feature is experimental and the function API may be subject to change.

Functions

  • AHhass() Checks whether a specific AI endpoint is configured and available for use.
  • AIGetMetaData() Retrieves metadata about a configured AI endpoint. Returns information about the endpoint's configuration, and optionally detailed information about available models and associated files.
  • CreateAISession() Creates a new AI session for interaction with Large Language Models (LLMs). The session maintains conversation history and context between interactions. Each session can be configured with different parameters to optimize for specific use cases like code analysis, content generation, or data processing. Common usage patterns: - Exception analysis and debugging assistance - Code documentation generation - Query optimization suggestions - Security review assistance - Performance optimization recommendations The session persists until explicitly terminated or the application restarts
  • inquiryaisession() Sends a question/message to an AI session and returns the response. The function maintains conversation context from previous interactions within the same session. The response can either be returned as a complete string or streamed in chunks to a listener function for real-time processing.
  • LuceeAIgetMetadata() Retrieves metadata about a configured AI endpoint. Returns information about the endpoint's configuration, and optionally detailed information about available models and associated files.
  • LuceeAIhas() Checks whether a specific AI endpoint is configured and available for use.
  • LuceeCreateAIsession() Creates a new AI session for interaction with Large Language Models (LLMs). The session maintains conversation history and context between interactions. Each session can be configured with different parameters to optimize for specific use cases like code analysis, content generation, or data processing. Common usage patterns: - Exception analysis and debugging assistance - Code documentation generation - Query optimization suggestions - Security review assistance - Performance optimization recommendations The session persists until explicitly terminated or the application restarts
  • LuceeInquiryAIsession() Sends a question/message to an AI session and returns the response. The function maintains conversation context from previous interactions within the same session. The response can either be returned as a complete string or streamed in chunks to a listener function for real-time processing.

Guides

  • AI (experimental) # AI (Experimental) Lucee 6.2 includes experimental support for AI integration, which will be finalized with the release of Lucee 7. This documentation is subject to change, reflecting Lucee's aim to remain adaptable to future advancements. Feedback is welcome to help tailor functionality to users' needs. ## Configuration In Lucee 6
  • AI Augmentation with Lucene Documentation for augmenting AI queries using Lucene search in Lucee
  • AI Integration for Documentation (Experimental) Guide to configuring AI for use in Lucee's Documentation tab, leveraging retrieval-augmented generation (RAG) and enhanced search functionality.
  • AI Session Serialization Documentation for serializing and deserializing AI sessions in Lucee