Skip to main content
Lucidworks AI Gateway is a specialized service that enables secure and authenticated access to Lucidworks AI, allowing Fusion to seamlessly integrate with both pre- and custom-trained AI models hosted on Lucidworks AI.
This feature is only available for Fusion 5.9.5 and later.
Before you can use Lucidworks AI with self-hosted Fusion, you must configure Lucidworks AI Gateway. Managed Fusion clients can work with their Client Success/Technical Account Manager (CSTAM) team for a Lucidworks AI Gateway integration.
Before you can use Lucidworks AI with Lucidworks Platform, you must configure the Lucidworks AI Gateway to provide a secure, authenticated integration between self-hosted Fusion and your hosted models. This configuration is done through a secret properties file that you can find in the Lucidworks Platform UI.
This feature is available starting in Fusion 5.9.5 and in all subsequent Fusion 5.9 releases.
Integrations are created for you by the Lucidworks team. But as a workspace owner, you can configure those integrations with Lucidworks AI Gateway. Each account can have its own set of credentials and associated scopes, which define the operations it can perform. If configuration properties are not provided at the account level, default settings are used instead.To configure the Lucidworks AI Gateway, navigate to the megamenu and click Models.
  1. On the Integrations tab, click your integration. If you don’t see your integration, contact your Lucidworks representative.
  2. Download or copy the YAML code and paste it into a file called account.yaml. The file for a single integration should look similar to this one:
    lwai-gateway:
     lwai:
      credentials: |
         fusion.lwai.default.baseUrl: https://APPLICATION_ID.applications.lucidworks.com
         fusion.lwai.default.authEndpoint: https://identity.lucidworks.com/oauth2/XXXXXXXXXX/v1/token
         fusion.lwai.account[0].name: ACCOUNT_NAME
         fusion.lwai.account[0].scopes: machinelearning.predict,machinelearning.model
         fusion.lwai.account[0].clientId: *****
         fusion.lwai.account[0].clientSecret: *****
    
    For a configuration with multiple integrations, it should look like this:
    lwai-gateway:
     lwai:
      credentials: |
         fusion.lwai.default.authEndpoint: https://identity.lucidworks.com/oauth2/XXXXXXXXXX/v1/token
         fusion.lwai.account[0].baseUrl: https://APPLICATION_ID.applications.lucidworks.com
         fusion.lwai.account[0].name: ACCOUNT_NAME
         fusion.lwai.account[0].scopes: machinelearning.predict,machinelearning.model
         fusion.lwai.account[0].clientId: *****
         fusion.lwai.account[0].clientSecret: *****
    
         fusion.lwai.account[1].baseUrl: https://APPLICATION_ID2.applications.lucidworks.com
         fusion.lwai.account[1].name: ACCOUNT_NAME
         fusion.lwai.account[1].scopes: machinelearning.predict,machinelearning.model
         fusion.lwai.account[1].clientId: *****
         fusion.lwai.account[1].clientSecret: *****
    
    Non-admin users must have the following permissions to use Lucidworks AI integrations:
    PUT,POST,GET:/LWAI-ACCOUNT-NAME/** where LWAI-ACCOUNT-NAME must match the value of fusion.lwai.account[n].name in the integration YAML.
  3. Apply the file to your Fusion configuration file. For example:
    helm upgrade KUBERNETES_NAMESPACE lucidworks/fusion -f FUSION_VALUES.yaml
    

How Lucidworks AI Gateway works

Lucidworks AI Gateway acts as a bridge between Fusion and Lucidworks AI, handling the complexities of authentication and communication. By managing credentials and other sensitive information behind the scenes, it ensures that Fusion can interact with Lucidworks AI without exposing the details of the underlying accounts or requiring manual authentication. In Lucidworks AI, you have one or more integrations that each represent a set of credentials and a security scope. When you add an integration to Lucidworks AI Gateway, it allows Fusion to seamlessly connect to Lucidworks AI at any time without additional authentication.

Lucidworks AI Gateway process diagram

This diagram displays the interaction between Lucidworks AI and Fusion. Lucidworks AI gateway diagram

Key features of Lucidworks AI Gateway

  • Credential Management: The gateway securely manages credentials through Fusion’s secret management system. It ensures that only the necessary account name is exposed, keeping other sensitive details private.
  • Seamless Model Integration: Fusion services can use the Lucidworks AI Gateway to access both pre-trained and custom-trained AI models, enabling a wide range of AI-driven functionalities within Fusion.
  • Flexible Configuration: The gateway allows for multiple integrations to be configured. Each account can have its own set of credentials and associated scopes, which define the operations it can perform. If certain configuration properties are not provided at the account level, default settings can be used instead.
I