SearchAI Mode

Configure AI Mode in SearchBlox

AI Mode transforms your standard search into a conversational experience powered by AI. Once enabled, users can ask text‑based questions, drill deeper with follow‑ups, and see results that feel like a back‑and‑forth dialogue—not just a list of links.

This guide walks you through enabling the feature in facet.js, connecting to your SearchBlox chatbot, and setting how much content is passed to the language model.

  1. Open the Configuration File
    In your deployed environment, navigate to the following file:
    /hybrid-search/plugin/facet.js

  2. Enable AI Mode
    Find the aiMode configuration block and set "enabled" to true. This activates the AI experience in your front-end search.

    "aiMode": {
      "enabled": true
    }
    
  3. Connect Your Chatbot and Domain
    In the same aiMode block, provide your SearchBlox domain and chatbot name. These values should match what you've configured in your SearchAI backend.

    1. "aiMode": {  
         "enabled": true,  
         "domain": "<https://demo4.searchblox.com">,  
         "chatbot": "ulta_csv"  
       }
    
    • domain: The base URL of your SearchBlox instance.
    • chatbot: The name of the chatbot configured in your SearchAI dashboard.
      Final Example
      Here’s what a complete AI Mode configuration might look like:
    1. "aiMode": {  
         "enabled": true,  
         "domain": "<https://demo4.searchblox.com">,  
         "chatbot": "ulta_csv",  
         "passages": 10  
       }
    

Deploy and Test

Once you've saved your changes to facet.js and redeployed your frontend:

  • You should see the AI Mode toggle or button next to the search bar.
  • Start a new session by typing a question.

  • The AI will return a full response, followed by suggested follow-ups.